Versions in this module Expand all Collapse all v1 v1.0.11 Jan 12, 2026 Changes in this version + const MediaTypeModelConfigV1 + const MediaTypePrefix + const MediaTypeWeightGGUF + const MediaTypeWeightSafetensors + func ConvertToDockerConfig(rawConfig []byte) (*types.ConfigFile, error) + func IsModelPackConfig(raw []byte) bool + func IsModelPackMediaType(mediaType string) bool + func MapLayerMediaType(mediaType string) string + type Model struct + Config ModelConfig + Descriptor ModelDescriptor + ModelFS ModelFS + func (m *Model) GetArchitecture() string + func (m *Model) GetContextSize() *int32 + func (m *Model) GetFormat() types.Format + func (m *Model) GetParameters() string + func (m *Model) GetQuantization() string + func (m *Model) GetSize() string + type ModelCapabilities struct + InputTypes []string + KnowledgeCutoff *time.Time + Languages []string + OutputTypes []string + Reasoning *bool + Reward *bool + ToolUsage *bool + type ModelConfig struct + Architecture string + Capabilities *ModelCapabilities + Format string + ParamSize string + Precision string + Quantization string + type ModelDescriptor struct + Authors []string + CreatedAt *time.Time + DatasetsURL []string + Description string + DocURL string + Family string + Licenses []string + Name string + Revision string + SourceURL string + Title string + Vendor string + Version string + type ModelFS struct + DiffIDs []digest.Digest + Type string