chaddy81 commited on
Commit
937abc8
·
verified ·
1 Parent(s): c6c04af

Upload convert_grpo_to_gguf.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. convert_grpo_to_gguf.py +2 -1
convert_grpo_to_gguf.py CHANGED
@@ -119,7 +119,8 @@ print(f" Q8_0: {size_mb:.1f} MB")
119
 
120
  # Step 9: Upload
121
  print("\n Step 8: Uploading to Hub...")
122
- api = HfApi()
 
123
  api.create_repo(repo_id=OUTPUT_REPO, repo_type="model", exist_ok=True)
124
  print(" Repository ready")
125
 
 
119
 
120
  # Step 9: Upload
121
  print("\n Step 8: Uploading to Hub...")
122
+ hf_token = os.environ.get("HF_TOKEN")
123
+ api = HfApi(token=hf_token)
124
  api.create_repo(repo_id=OUTPUT_REPO, repo_type="model", exist_ok=True)
125
  print(" Repository ready")
126