File size: 413 Bytes
0f26b04 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from huggingface_hub import HfApi, HfFolder, Repository
# Define your repo ID and local path
repo_id = "nvl-og/llama3-chatbot"
local_dir = "/home/nvl/Llama3-ChatQA-1.5-8B"
# Create a repository instance
repo = Repository(local_dir=local_dir, clone_from=repo_id)
# Add files and commit
repo.git_add(auto_lfs_track=True)
repo.git_commit("Initial commit of my model")
# Push to Hugging Face Hub
repo.git_push()
|