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}")