Skip to content

Commit 003371d

Browse files
authored
docs: add the docs for upload command (#220)
Signed-off-by: chlins <[email protected]>
1 parent 2b92adf commit 003371d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/getting-started.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,14 @@ $ modctl attach foo.txt -s registry.com/models/llama3:v1.0.0 -t registry.com/mod
151151
$ modctl attach foo.txt -s registry.com/models/llama3:v1.0.0 -t registry.com/models/llama3:v1.0.1 --output-remote
152152
```
153153

154+
### Upload
155+
156+
The `upload` command allows you to pre-upload a file to a repository. This is useful for saving overall build time by uploading large files in parallel with other tasks. Please note that this command only uploads file blobs in advance; you still need to run the `build` command at the end to create and upload the model's config and manifest. Since the large file data is already in the repository, the final build will be much faster.
157+
158+
```shell
159+
$ modctl upload model-00001-of-00003.safetensors --repo registry.com/models/llama3
160+
```
161+
154162

155163
### Cleanup
156164

0 commit comments

Comments
 (0)