agentlans commited on
Commit
c660059
·
verified ·
1 Parent(s): 5d17710

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -9
README.md CHANGED
@@ -1,11 +1,16 @@
1
  ---
2
  license: cc0-1.0
 
 
 
 
 
3
  ---
4
- # Uploading Large Files to Hugging Face Models: A Comprehensive Guide
5
 
6
  ## Prerequisites
7
- - Git installed
8
- - Git LFS installed
9
  - Python with `huggingface_hub` library
10
  - Hugging Face account
11
 
@@ -39,16 +44,18 @@ git lfs install
39
  # Enable large file support
40
  huggingface-cli lfs-enable-largefiles .
41
 
42
- # Track safetensor files
43
- git lfs track "*.safetensors" "*.json"
44
  ```
45
 
46
  ### 5. Add and Push Files
 
 
 
 
47
  ```bash
48
- # Copy safetensor files to repository directory
49
- # Then run:
50
  git add .
51
- git commit -m "Add model safetensor files"
52
  git push
53
  ```
54
 
@@ -61,4 +68,4 @@ git push
61
  ## Best Practices
62
  - Use descriptive commit messages
63
  - Keep repository organized
64
- - Include a README.md with model details
 
1
  ---
2
  license: cc0-1.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - tutorial
7
+ - help
8
  ---
9
+ # Uploading Large Files to Hugging Face Hub
10
 
11
  ## Prerequisites
12
+ - [Git](https://git-scm.com/) installed
13
+ - [Git LFS](https://git-lfs.com/) installed
14
  - Python with `huggingface_hub` library
15
  - Hugging Face account
16
 
 
44
  # Enable large file support
45
  huggingface-cli lfs-enable-largefiles .
46
 
47
+ # Track safetensor files and tokenizer.json (because they're large)
48
+ git lfs track "*.safetensors" "tokenizer.json"
49
  ```
50
 
51
  ### 5. Add and Push Files
52
+
53
+ Copy all your model files to repository directory
54
+
55
+ Then you can run:
56
  ```bash
 
 
57
  git add .
58
+ git commit -m "Add model files"
59
  git push
60
  ```
61
 
 
68
  ## Best Practices
69
  - Use descriptive commit messages
70
  - Keep repository organized
71
+ - Include a `README.md` with model details