Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """Upload GGUF file to Hugging Face."""
- from huggingface_hub import HfApi
- WORK_DIR = "/content/gguf_workspace"
- FILENAME = "Qwen3.5-27B-merged-Q8_0.gguf"
- FILEPATH = f"{WORK_DIR}/{FILENAME}"
- UPLOAD_REPO = "your-username/your-repo-name"
- api = HfApi()
- api.create_repo(repo_id=UPLOAD_REPO, repo_type="model", exist_ok=True)
- api.upload_file(path_or_fileobj=FILEPATH, path_in_repo=FILENAME, repo_id=UPLOAD_REPO, repo_type="model")
- print(f"Done: https://huggingface.co/{UPLOAD_REPO}/blob/main/{FILENAME}")
Advertisement
Add Comment
Please, Sign In to add comment