Skip to main content
Version: v3.9.0

Model fields

Reference for kind: Model. Attach and microservice binding are on AI Model Catalog.

Deploy
apiVersion: datasance.com/v3 # required, string
kind: Model # required, string
metadata:
name: defect-weights # required, string. Lowercase alphanumeric
namespace: my-ecn # no, string
spec:
repo: org/defect-weights # required, string
registry: remote # one of, string. remote is 1, local is 2, or a numeric id as a string. Keep one of registry or registryId, or set both to the same id
registryId: 1 # one of, int
revision: "1.0.0" # no, string. Tag, digest, or sha256
files: # no, list of string
- weights.gguf
format: gguf # no, string

Not deployed​

These fields come back from describe. Leave them out of the file you pass to deploy.

spec:
uuid: "<uuid>" # describe only, string
status:
linkedAgents: [] # describe only

metadata.name is required. Use a lowercase alphanumeric name.

Fields​

FieldTypeRequiredDescription
repostringYesArtifact path. Meaning depends on format and the registry type.
registrystringOne ofremote (id 1), local (id 2), or a numeric id as a string.
registryIdintOne ofNumeric Controller registry id.
revisionstringNoTag, digest, or sha256:….
filesstring listNoSubpaths inside the repo.
formatstringNoFormat hint, such as gguf. The Controller validates it.
uuidstringDescribe onlyOmit on create and update.

When both registry and registryId are set, they must be the same id.

InputId
registry: remote1
registry: local2
registry: "5"5
registryId: 55

Validation​

ConditionError
Missing metadata.nameName must be specified.
Invalid nameLowercase alphanumeric.
Missing reporepo must be specified.
Missing registryspec.registry or spec.registryId must be specified.
Conflicting registry fieldsThe two fields must refer to the same registry.

Describe​

describe model NAME returns spec (uuid, repo, revision, registryId, files, format) and status.linkedAgents.

attach model NAME AGENT… and detach model NAME AGENT… resolve Edgelet node names to fog UUIDs. A 409 or 400 body is printed as returned.

Group 3See anything wrong with the document? Help us improve it!