CoolFace
Apppublic

MacLeanLuke/gemma-2b-tool-tuned-code

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
save.py17 linesDownload Raw Back to root
1from huggingface_hub import HfApi2 3repo_id = "MacLeanLuke/gemma-2b-tool-tuned"  # Change to your Hugging Face username & repo name4 5# ✅ Upload model and tokenizer6api = HfApi()7api.create_repo(repo_id, exist_ok=True)8 9# ✅ Push files10model_path = "gemma-2-2B-it-macM3"11api.upload_folder(12    folder_path=model_path,  13    repo_id=repo_id,  14    repo_type="model",15)16 17print(f"Model successfully uploaded to: https://huggingface.co/{repo_id}")