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
Short: "Package a GGUF file, Safetensors directory, or existing model into a Docker model OCI artifact.",
33
-
Long: "Package a GGUF file, Safetensors directory, or existing model into a Docker model OCI artifact, with optional licenses. The package is sent to the model-runner, unless --push is specified.\n"+
45
+
Long: "Package a GGUF file, Safetensors directory, or existing model into a Docker model OCI artifact, with optional licenses and multimodal projector. The package is sent to the model-runner, unless --push is specified.\n"+
34
46
"When packaging a sharded GGUF model, --gguf should point to the first shard. All shard files should be siblings and should include the index in the file name (e.g. model-00001-of-00015.gguf).\n"+
35
47
"When packaging a Safetensors model, --safetensors-dir should point to a directory containing .safetensors files and config files (*.json, merges.txt). All files will be auto-discovered and config files will be packaged into a tar archive.\n"+
36
-
"When packaging from an existing model using --from, you can modify properties like context size to create a variant of the original model.",
48
+
"When packaging from an existing model using --from, you can modify properties like context size to create a variant of the original model.\n"+
49
+
"For multimodal models, use --mmproj to include a multimodal projector file.",
Copy file name to clipboardExpand all lines: cmd/cli/docs/reference/docker_model_package.yaml
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,12 @@ command: docker model package
2
2
short: |
3
3
Package a GGUF file, Safetensors directory, or existing model into a Docker model OCI artifact.
4
4
long: |-
5
-
Package a GGUF file, Safetensors directory, or existing model into a Docker model OCI artifact, with optional licenses. The package is sent to the model-runner, unless --push is specified.
5
+
Package a GGUF file, Safetensors directory, or existing model into a Docker model OCI artifact, with optional licenses and multimodal projector. The package is sent to the model-runner, unless --push is specified.
6
6
When packaging a sharded GGUF model, --gguf should point to the first shard. All shard files should be siblings and should include the index in the file name (e.g. model-00001-of-00015.gguf).
7
7
When packaging a Safetensors model, --safetensors-dir should point to a directory containing .safetensors files and config files (*.json, merges.txt). All files will be auto-discovered and config files will be packaged into a tar archive.
8
8
When packaging from an existing model using --from, you can modify properties like context size to create a variant of the original model.
9
-
usage: docker model package (--gguf <path> | --safetensors-dir <path> | --from <model>) [--license <path>...] [--context-size <tokens>] [--push] MODEL
9
+
For multimodal models, use --mmproj to include a multimodal projector file.
10
+
usage: docker model package (--gguf <path> | --safetensors-dir <path> | --from <model>) [--license <path>...] [--mmproj <path>] [--context-size <tokens>] [--push] MODEL
10
11
pname: docker model
11
12
plink: docker_model.yaml
12
13
options:
@@ -69,6 +70,15 @@ options:
69
70
experimentalcli: false
70
71
kubernetes: false
71
72
swarm: false
73
+
- option: mmproj
74
+
value_type: string
75
+
description: absolute path to multimodal projector file
Copy file name to clipboardExpand all lines: cmd/cli/docs/reference/model_package.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
1
# docker model package
2
2
3
3
<!---MARKER_GEN_START-->
4
-
Package a GGUF file, Safetensors directory, or existing model into a Docker model OCI artifact, with optional licenses. The package is sent to the model-runner, unless --push is specified.
4
+
Package a GGUF file, Safetensors directory, or existing model into a Docker model OCI artifact, with optional licenses and multimodal projector. The package is sent to the model-runner, unless --push is specified.
5
5
When packaging a sharded GGUF model, --gguf should point to the first shard. All shard files should be siblings and should include the index in the file name (e.g. model-00001-of-00015.gguf).
6
6
When packaging a Safetensors model, --safetensors-dir should point to a directory containing .safetensors files and config files (*.json, merges.txt). All files will be auto-discovered and config files will be packaged into a tar archive.
7
7
When packaging from an existing model using --from, you can modify properties like context size to create a variant of the original model.
8
+
For multimodal models, use --mmproj to include a multimodal projector file.
8
9
9
10
### Options
10
11
@@ -16,6 +17,7 @@ When packaging from an existing model using --from, you can modify properties li
16
17
|`--from`|`string`|| reference to an existing model to repackage |
17
18
|`--gguf`|`string`|| absolute path to gguf file |
18
19
|`-l`, `--license`|`stringArray`|| absolute path to a license file |
20
+
|`--mmproj`|`string`|| absolute path to multimodal projector file |
19
21
|`--push`|`bool`|| push to registry (if not set, the model is loaded into the Model Runner content store) |
20
22
|`--safetensors-dir`|`string`|| absolute path to directory containing safetensors files and config |
0 commit comments