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
* feat(builder): add FromModel function to create builders from existing model artifacts
* feat(package): add support for packaging from existing models
* feat(package): implement lightweight model writing for config-only modifications
* make docs
* Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
* feat(package): refactor package model initialization and error handling
* fix(store): update layer identification from DiffID to Digest
* feat(builder): add originalLayers tracking and HasOnlyConfigChanges method
* feat(package): enhance packaging options to include existing models
* test(store): add tests for WriteLightweight method and index integrity
* Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
* feat(builder): enhance FromModel to return error on layer retrieval failure
---------
Co-authored-by: Copilot <[email protected]>
Short: "Package a GGUF file or Safetensors directory into a Docker model OCI artifact.",
32
-
Long: "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.\n"+
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"+
33
34
"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"+
34
-
"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.",
35
+
"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.",
Copy file name to clipboardExpand all lines: cmd/cli/docs/reference/docker_model_package.yaml
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
1
command: docker model package
2
2
short: |
3
-
Package a GGUF file or Safetensors directory into a Docker model OCI artifact.
3
+
Package a GGUF file, Safetensors directory, or existing model into a Docker model OCI artifact.
4
4
long: |-
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.
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.
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
-
usage: docker model package (--gguf <path> | --safetensors-dir <path>) [--license <path>...] [--context-size <tokens>] [--push] MODEL
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
10
pname: docker model
10
11
plink: docker_model.yaml
11
12
options:
@@ -39,6 +40,15 @@ options:
39
40
experimentalcli: false
40
41
kubernetes: false
41
42
swarm: false
43
+
- option: from
44
+
value_type: string
45
+
description: reference to an existing model to repackage
0 commit comments