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
configure: make command visible by removing hidden flag (#219)
* fix(configure): make command visible by removing hidden flag
* ci: fix docs-validate Dockerfile target
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
* fix(configure): update command visibility and enhance packaging options for Safetensors
* fix(ci): use current workdir for Validate
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
* Add --host flag to docker model install-runner command
Add clarifying comment about host security for auto-installation
Add tests for --host flag in install-runner command
Signed-off-by: Eric Curtin <eric.curtin@docker.com>
* fix(configure): add host option to docker model install-runner command
---------
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
Signed-off-by: Eric Curtin <eric.curtin@docker.com>
Co-authored-by: Dorin Geman <dorin.geman@docker.com>
Co-authored-by: Eric Curtin <eric.curtin@docker.com>
Copy file name to clipboardExpand all lines: cmd/cli/docs/reference/docker_model_package.yaml
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
1
command: docker model package
2
2
short: |
3
-
Package a GGUF file into a Docker model OCI artifact, with optional licenses.
3
+
Package a GGUF file or Safetensors directory into a Docker model OCI artifact.
4
4
long: |-
5
-
Package a GGUF file into a Docker model OCI artifact, with optional licenses. The package is sent to the model-runner, unless --push is specified.
6
-
When packaging a sharded 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
-
usage: docker model package --gguf <path> [--license <path>...] [--context-size <tokens>] [--push] MODEL
5
+
Package a GGUF file or Safetensors directory into a Docker model OCI artifact, with optional licenses. The package is sent to the model-runner, unless --push is specified.
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
+
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
+
usage: docker model package (--gguf <path> | --safetensors-dir <path>) [--license <path>...] [--context-size <tokens>] [--push] MODEL
8
9
pname: docker model
9
10
plink: docker_model.yaml
10
11
options:
@@ -29,7 +30,7 @@ options:
29
30
swarm: false
30
31
- option: gguf
31
32
value_type: string
32
-
description: absolute path to gguf file (required)
33
+
description: absolute path to gguf file
33
34
deprecated: false
34
35
hidden: false
35
36
experimental: false
@@ -58,6 +59,15 @@ options:
58
59
experimentalcli: false
59
60
kubernetes: false
60
61
swarm: false
62
+
- option: safetensors-dir
63
+
value_type: string
64
+
description: absolute path to directory containing safetensors files and config
Copy file name to clipboardExpand all lines: cmd/cli/docs/reference/model_package.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,20 @@
1
1
# docker model package
2
2
3
3
<!---MARKER_GEN_START-->
4
-
Package a GGUF file into a Docker model OCI artifact, with optional licenses. The package is sent to the model-runner, unless --push is specified.
5
-
When packaging a sharded 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).
4
+
Package a GGUF file or Safetensors directory into a Docker model OCI artifact, with optional licenses. The package is sent to the model-runner, unless --push is specified.
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
+
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.
0 commit comments