You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ Check out the source code for all possible params (we'll create a real doc page
62
62
Uploading a model to the hub is super simple too:
63
63
- create a model repo directly from the website, at huggingface.co/new (models can be public or private, and are namespaced under either a user or an organization)
64
64
- clone it with git
65
-
- install [lfs](https://git-lfs.github.com/)with `git lfs install` if you haven't done that before
65
+
-[download and install git lfs](https://git-lfs.github.com/)if you don't already have it on your machine (you can check by running a simple `git lfs`)
66
66
- add, commit and push your files, from git, as you usually do.
67
67
68
68
**We are intentionally not wrapping git too much, so that you can go on with the workflow you’re used to and the tools you already know.**
@@ -86,17 +86,15 @@ huggingface-cli repo create
86
86
87
87
### Need to upload large (>5GB) files?
88
88
89
-
To upload large files (>5GB 🔥), you need to install the custom transfer agent for git-lfs, bundled in this package. Spec for LFS custom transfer agent is:
To upload large files (>5GB 🔥), you need to install the custom transfer agent for git-lfs, bundled in this package.
91
90
92
91
To install, just run:
93
92
94
93
```bash
95
94
$ huggingface-cli lfs-enable-largefiles
96
95
```
97
96
98
-
This should be executed once for each model repo that contains a model file >5GB. It's documented in the error
99
-
message you get if you just try to git push a 5GB file without enabling it before.
97
+
This should be executed once for each model repo that contains a model file >5GB. If you just try to push a file bigger than 5GB without running that command, you will get an error with a message reminding you to run it.
100
98
101
99
Finally, there's a `huggingface-cli lfs-multipart-upload` command but that one is internal (called by lfs directly) and is not meant to be called by the user.
0 commit comments