File size: 498 Bytes
fd9a78c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
from huggingface_hub import HfApi
import os
# Your model details
model_path = "/workspace/distillation/gpt-oss-distilled/results/checkpoint-171"
repo_name = "sidcraftscode/smollm2-1.7b-distilled-gpt-oss-20b"
# Initialize HF API
api = HfApi()
# Create repository
api.create_repo(repo_id=repo_name, exist_ok=True)
# Upload the model
api.upload_folder(
folder_path=model_path,
repo_id=repo_name,
repo_type="model"
)
print(f"✅ Model uploaded to: https://huggingface.co/{repo_name}")
|