# Ensure git-lfs is installed.
REPO_ID=<label>
# create a repo with your account in model hub
huggingface-cli repo create $REPO_ID
# clone the newly-created repo (git clone command will be printed)
git clone https://huggingface.co/<hf-userid>/<repo_id>
cd $REPO_ID
# Initialize git lfs for the repo, model hub requires file larger than 10MB to be tracked via git-lfs
git lfs install
# put content in the local repo directory
# filter file size > 10MB
find . -type f -size +10M
# track with lfs for file size > 10MB
git lfs track [file path]
# To enable upload of files > 5GB.
huggingface-cli lfs-enable-largefiles .
# commit and push like standard process of github
Last active
December 26, 2023 20:54
-
-
Save vuiseng9/a5fd66645c6e3dcd66480911c8aa2523 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create private repo using python api