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: docs/getting-started.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,8 @@ The ModelPack specification is designed to integrate seamlessly with existing cl
27
27
28
28
This section lists the core infrastructure components that ModelPack is working with.
29
29
30
-
-**[OCI Registries](https://github.com/opencontainers/distribution-spec)**: Store model artifacts using the same proven infrastructure as container images. One example of such implementation of an OCI registry is **[Harbor](https://goharbor.io/)**, which provides enterprise-grade OCI registry service that can host model artifacts with security scanning, policy management, and RBAC.
31
-
- Model distribution service: Provide efficient model artifacts distribution. One example of such implementation is **[Dragonfly](https://d7y.io/)**, a P2P-based file distribution system at scale.
30
+
-**[OCI Registries](https://github.com/opencontainers/distribution-spec)**: Store model artifacts using the same proven infrastructure as container images. One example of such an implementation of an OCI registry is **[Harbor](https://goharbor.io/)**, which provides enterprise-grade OCI registry service that can host model artifacts with security scanning, policy management, and RBAC.
31
+
- Model distribution service: Provides efficient model artifacts distribution. One example of such an implementation is **[Dragonfly](https://d7y.io/)**, a P2P-based file distribution system at scale.
32
32
33
33
### Model Management Tools
34
34
@@ -96,7 +96,7 @@ spec:
96
96
modelRef: "myregistry.com/mymodel:v1.0"
97
97
```
98
98
99
-
This example shows how to mount a model artifact directly into a Kubernetes pod using the model CSI driver. The contents of the model is available within the /model directory within the running pod.
99
+
This example shows how to mount a model artifact directly into a Kubernetes pod using the model CSI driver. The contents of the model are available within the /model directory within the running pod.
Copy file name to clipboardExpand all lines: docs/spec.md
+26-26Lines changed: 26 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ The image manifest of model artifacts follows the [OCI Image Manifest Specificat
30
30
31
31
-**`config`**_[descriptor](config.md)_
32
32
33
-
This REQUIRED property references a configuration object for a AI/ML model, by digest.
33
+
This REQUIRED property references a configuration object for an AI/ML model, by digest.
34
34
35
35
-**`mediaType`**_string_
36
36
@@ -44,43 +44,43 @@ The image manifest of model artifacts follows the [OCI Image Manifest Specificat
44
44
45
45
-`application/vnd.cncf.model.weight.v1.raw`: The layer is an unarchived, uncompressed model weights file.
46
46
47
-
-`application/vnd.cncf.model.weight.v1.tar`: The layer is a [tar archive][tar-archive] that contains the model weight file. If the model has multiple weight files, they SHOULD be packaged into separate layers.
47
+
-`application/vnd.cncf.model.weight.v1.tar`: The layer is a [tar archive][tar-archive] that contains the model weights file. If the model has multiple weight files, they SHOULD be packaged into separate layers.
48
48
49
-
-`application/vnd.cncf.model.weight.v1.tar+gzip`: The layer is a [tar archive][tar-archive] that includes the configuration file for the model weights. The archive is compressed with [gzip][rfc1952_2].
49
+
-`application/vnd.cncf.model.weight.v1.tar+gzip`: The layer is a [tar archive][tar-archive] that contains the model weights file. The archive is compressed with [gzip][rfc1952_2].
50
50
51
-
-`application/vnd.cncf.model.weight.v1.tar+zstd`: The layer is a [tar archive][tar-archive] that includes the configuration file for the model weights. The archive is compressed with [zstd][rfc8478].
51
+
-`application/vnd.cncf.model.weight.v1.tar+zstd`: The layer is a [tar archive][tar-archive] that contains the model weights file. The archive is compressed with [zstd][rfc8478].
52
52
53
-
-`application/vnd.cncf.model.weight.config.v1.raw`: The layer is an unarchived, uncompressed config of the model weights like tokenizer.json, config.json, etc.
53
+
-`application/vnd.cncf.model.weight.config.v1.raw`: The layer is an unarchived, uncompressed configuration file of the model weights like tokenizer.json, config.json, etc.
54
54
55
-
-`application/vnd.cncf.model.weight.config.v1.tar`: The layer is a [tar archive][tar-archive] that includes config of the model weights like tokenizer.json, config.json, etc.
55
+
-`application/vnd.cncf.model.weight.config.v1.tar`: The layer is a [tar archive][tar-archive] that contains configuration files of the model weights like tokenizer.json, config.json, etc.
56
56
57
-
-`application/vnd.cncf.model.weight.config.v1.tar+gzip`: The layer is a [tar archive][tar-archive] that includes config of the model weights like tokenizer.json, config.json, etc. The archive is compressed with [gzip][rfc1952_2].
57
+
-`application/vnd.cncf.model.weight.config.v1.tar+gzip`: The layer is a [tar archive][tar-archive] that contains configuration files of the model weights like tokenizer.json, config.json, etc. The archive is compressed with [gzip][rfc1952_2].
58
58
59
-
-`application/vnd.cncf.model.weight.config.v1.tar+zstd`: The layer is a [tar archive][tar-archive] that includes config of the model weights like tokenizer.json, config.json, etc. The archive is compressed with [zstd][rfc8478].
59
+
-`application/vnd.cncf.model.weight.config.v1.tar+zstd`: The layer is a [tar archive][tar-archive] that contains configuration files of the model weights like tokenizer.json, config.json, etc. The archive is compressed with [zstd][rfc8478].
60
60
61
61
-`application/vnd.cncf.model.doc.v1.raw`: The layer is an unarchived, uncompressed documentation file.
62
62
63
-
-`application/vnd.cncf.model.doc.v1.tar`: The layer is a [tar archive][tar-archive] that includes documentation files like `README.md`, `LICENSE`, etc.
63
+
-`application/vnd.cncf.model.doc.v1.tar`: The layer is a [tar archive][tar-archive] that contains documentation files like `README.md`, `LICENSE`, etc.
64
64
65
-
-`application/vnd.cncf.model.doc.v1.tar+gzip`: The layer is a [tar archive][tar-archive] that includes documentation files like `README.md`, `LICENSE`, etc. The archive is compressed with [gzip][rfc1952_2].
65
+
-`application/vnd.cncf.model.doc.v1.tar+gzip`: The layer is a [tar archive][tar-archive] that contains documentation files like `README.md`, `LICENSE`, etc. The archive is compressed with [gzip][rfc1952_2].
66
66
67
-
-`application/vnd.cncf.model.doc.v1.tar+zstd`: The layer is a [tar archive][tar-archive] that includes documentation files like `README.md`, `LICENSE`, etc. The archive is compressed with [zstd][rfc8478].
67
+
-`application/vnd.cncf.model.doc.v1.tar+zstd`: The layer is a [tar archive][tar-archive] that contains documentation files like `README.md`, `LICENSE`, etc. The archive is compressed with [zstd][rfc8478].
68
68
69
69
-`application/vnd.cncf.model.code.v1.raw`: The layer is an unarchived, uncompressed code artifact.
70
70
71
-
-`application/vnd.cncf.model.code.v1.tar`: The layer is a [tar archive][tar-archive] that includes code artifacts like scripts, code files etc.
71
+
-`application/vnd.cncf.model.code.v1.tar`: The layer is a [tar archive][tar-archive] that contains code artifacts like scripts, code files, etc.
72
72
73
-
-`application/vnd.cncf.model.code.v1.tar+gzip`: The layer is a [tar archive][tar-archive] that includes code artifacts like scripts, code files etc. The archive is compressed with [gzip][rfc1952_2].
73
+
-`application/vnd.cncf.model.code.v1.tar+gzip`: The layer is a [tar archive][tar-archive] that contains code artifacts like scripts, code files, etc. The archive is compressed with [gzip][rfc1952_2].
74
74
75
-
-`application/vnd.cncf.model.code.v1.tar+zstd`: The layer is a [tar archive][tar-archive] that includes code artifacts like scripts, code files etc. The archive is compressed with [zstd][rfc8478].
75
+
-`application/vnd.cncf.model.code.v1.tar+zstd`: The layer is a [tar archive][tar-archive] that contains code artifacts like scripts, code files, etc. The archive is compressed with [zstd][rfc8478].
76
76
77
-
-`application/vnd.cncf.model.dataset.v1.raw`: The layer is an unarchived, uncompressed dataset.
77
+
-`application/vnd.cncf.model.dataset.v1.raw`: The layer is an unarchived, uncompressed dataset file.
78
78
79
-
-`application/vnd.cncf.model.dataset.v1.tar`: The layer is a [tar archive][tar-archive] that includes datasets that may be needed for the lifecycle of AI/ML models.
79
+
-`application/vnd.cncf.model.dataset.v1.tar`: The layer is a [tar archive][tar-archive] that contains dataset files that may be needed for the lifecycle of AI/ML models.
80
80
81
-
-`application/vnd.cncf.model.dataset.v1.tar+gzip`: The layer is a [tar archive][tar-archive] that includes datasets that may be needed for the lifecycle of AI/ML models. The archive is compressed with [gzip][rfc1952_2].
81
+
-`application/vnd.cncf.model.dataset.v1.tar+gzip`: The layer is a [tar archive][tar-archive] that contains dataset files that may be needed for the lifecycle of AI/ML models. The archive is compressed with [gzip][rfc1952_2].
82
82
83
-
-`application/vnd.cncf.model.dataset.v1.tar+zstd`: The layer is a [tar archive][tar-archive] that includes datasets that may be needed for the lifecycle of AI/ML models. The archive is compressed with [zstd][rfc8478].
83
+
-`application/vnd.cncf.model.dataset.v1.tar+zstd`: The layer is a [tar archive][tar-archive] that contains dataset files that may be needed for the lifecycle of AI/ML models. The archive is compressed with [zstd][rfc8478].
84
84
85
85
-**`annotations`**_string-string map_
86
86
@@ -127,7 +127,7 @@ The image manifest of model artifacts follows the [OCI Image Manifest Specificat
127
127
128
128
This section describes how to serialize AI/ML artifacts into a blob called a layer.
129
129
130
-
**Implementers' note**: It is recommended to package weight files without compression to avoid unnecessary overhead of decompression by the container runtime as model weight files are typically incompressible.
130
+
**Implementers’ note**: It is recommended to package model weights files without compression to avoid unnecessary overhead of decompression by the container runtime as model weights files are typically incompressible.
131
131
132
132
### `+gzip` Media Types
133
133
@@ -139,22 +139,22 @@ The `application/vnd.cncf.model.weight.v1.tar+zstd` represents an `application/v
139
139
140
140
### File Attributes
141
141
142
-
Where supported, MUST include file attributes
142
+
Where supported, MUST include file attributes:
143
143
144
144
- Modification Time (`mtime`)
145
145
- User ID (`uid`)
146
-
- User Name (`uname`) should be ignored on platforms that support User ID (`uid`)
146
+
- User Name (`uname`) SHOULD be ignored on platforms that support User ID (`uid`)
147
147
- Group ID (`gid`)
148
-
- Group Name (`gname`) should be ignored on platforms that support Group ID (`gid`)
148
+
- Group Name (`gname`) SHOULD be ignored on platforms that support Group ID (`gid`)
149
149
- Mode (`mode`)
150
150
151
151
### Reproducibility
152
152
153
-
To ensure tar layers are packaged in a reproducible way, implementation SHOULD adhere to the following guidance:
153
+
To ensure tar layers are packaged in a reproducible way, implementations SHOULD adhere to the following guidance:
154
154
155
-
- If the archive includes multiple files, files should be added to the archive in lexicographical order.
156
-
- File metadata (such as modification time, owner/group id) should be set to known, constant values rather than the current values on disk.
157
-
- Platform/implementation specific metadata should be omitted from the archive.
155
+
- If the archive includes multiple files, files SHOULD be added to the archive in lexicographical order.
156
+
- File metadata (such as modification time, owner/group ID) SHOULD be set to known, constant values rather than the current values on disk.
157
+
- Platform/implementation specific metadata SHOULD be omitted from the archive.
0 commit comments