Downloads · 30 days
0
agentlans/how-to-upload-to-huggingface-from-linux
how-to-upload-to-huggingface-from-linux is a machine learning model from agentlans. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc0-1.0.
- Git installed - Git LFS installed - Python with huggingfacehub library - Hugging Face account
Downloads · 30 days
0
Access
Public
Updated Jan 22, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 51%
From the Hugging Face model README
# Install Hugging Face CLI
python -m pip install huggingface_hub
# Login to Hugging Face
huggingface-cli login
git clone https://huggingface.co/<your-username>/<your-model-name>
cd <your-model-name>
# Initialize Git LFS
git lfs install
# Enable large file support
huggingface-cli lfs-enable-largefiles .
# Track safetensor files and tokenizer.json (because they're large)
git lfs track "*.safetensors" "tokenizer.json"
Copy all your model files to repository directory
Then you can run:
git add .
git commit -m "Add model files"
git push
git lfs status to check file trackingREADME.md with model details