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
{{ message }}
This repository was archived by the owner on Jul 14, 2025. It is now read-only.
* Add inferencing asset fields
* Include model asset in JSON schema & examples
* Use Compose file instead of Docker image asset
* Rename Inferencing Images -> Inferencing Runtimes
* Add rel type for Docker image links
* Clarify media and relation types
Copy file name to clipboardExpand all lines: README.md
+60-9Lines changed: 60 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,57 @@ these models for the following types of use-cases:
59
59
| ml-model:prediction_type| string |**REQUIRED.** The type of prediction that the model makes. It is STRONGLY RECOMMENDED that you use one of the values described below, but other values are allowed. |
60
60
| ml-model:architecture| string |**REQUIRED.** Identifies the architecture employed by the model (e.g. RCNN, U-Net, etc.). This may be any string identifier, but publishers are encouraged to use well-known identifiers whenever possible. |
61
61
62
+
## Asset Objects
63
+
64
+
### Roles
65
+
66
+
| Role Name | Description |
67
+
| ------------------------ | ----------- |
68
+
| ml-model:inference-runtime| Represents a file containing instructions for running a containerized version of the model to generate inferences. See the [Inference Runtimes](#inference-runtimes) section below for details on related fields. |
69
+
70
+
### Inference Runtimes
71
+
72
+
An Asset with the `ml-model:inference-runtime` role represents a file containing instructions for running a containerized version of the model to
73
+
generate inferences. Currently, only [Compose files](https://github.com/compose-spec/compose-spec/blob/master/spec.md#compose-file) are supported,
74
+
but support is planned for other formats, including [Common Workflow Language (CWL)](https://www.commonwl.org/) and [Workflow Description Language
75
+
(WDL)](https://openwdl.org/).
76
+
77
+
The `"type"` field should be used to indicate the format of this asset. Assets in the Compose format should have a `"type"` value of
78
+
`"text/x-yaml; application=compose"`.
79
+
80
+
While the Compose file defines nearly all of the parameters required to run the containerized model image, we still need a way to define which host
81
+
directory containing input data should be mounted to the container and to which host directory the output predictions should be written. The Compose
82
+
file MUST define volume mounts for input and output data using the Compose
83
+
[Interpolation syntax](https://github.com/compose-spec/compose-spec/blob/master/spec.md#interpolation). The input data volume MUST be defined by an
84
+
`INPUT_VOLUME` variable and the output data volume MUST be defined by an `OUTPUT_DATA` variable.
85
+
86
+
For example, the following Compose file snippet would mount the host input directory to `/var/data/input` in the container and would mount the host
87
+
output data directory to `/var/data/output` in the host container. In this contrived example, the script to run the model takes 2 arguments: the
88
+
location to the input data directory and the location to the output data directory.
| ml-model:image | Links with this relation type refer to Docker images built using the model. The `href` value for links of this type should contain a fully-qualified URI for the image as would be required for a command like `docker pull`. These URIs should be of the form `<registry_domain>/<user_or_organization_name>/<image_name>:<tag>`. Links with this relation type should have a `"type"` value of `"docker-image"` to indicate a Docker image. |
144
+
85
145
## Interpretation of STAC Fields
86
146
87
147
The semantics of ML model metadata can sometimes differ significantly from the use-cases for which STAC was originally intended (Earth observation
@@ -108,15 +168,6 @@ It is RECOMMENDED that following STAC Extensions be used in conjunction with the
108
168
- [Scientific Citation Extension](https://github.com/stac-extensions/scientific): This extension should be used to describe how the model should
109
169
cited in publications, as well as to reference any existing publications associated with the model.
110
170
111
-
## Relation types
112
-
113
-
The following types should be used as applicable `rel` types in the
0 commit comments