modelregistry

package
v1.0.0-rc.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("model not found in registry")

Functions

func GeminiModelSupportsVision

func GeminiModelSupportsVision(modelName string) bool

func OpenAIModelSupportsVision

func OpenAIModelSupportsVision(modelName string) bool

Types

type FamilyGroup added in v0.33.0

type FamilyGroup struct {
	Family  string
	Entries []ModelDescriptor
}

func GroupByFamily added in v0.33.0

func GroupByFamily(entries []ModelDescriptor) []FamilyGroup

type ModelDescriptor

type ModelDescriptor struct {
	ID                string `json:"id,omitempty" example:"m1a2b3c4-d5e6-f7g8-h9i0-j1k2l3m4n5o6"`
	Name              string `json:"name" example:"qwen3-8b"`
	SourceURL         string `json:"sourceUrl" example:"https://huggingface.co/Qwen/..."`
	SizeBytes         int64  `json:"sizeBytes" example:"934000000"`
	Curated           bool   `json:"curated" example:"true"`
	Backend           string `json:"backend,omitempty" example:"openvino"`
	Repo              string `json:"repo,omitempty" example:"OpenVINO/Qwen3-8B-int4-ov"`
	ToolProtocol      string `json:"toolProtocol,omitempty" example:"llama:common_chat_tool_parser"`
	ReasoningProtocol string `json:"reasoningProtocol,omitempty" example:"llama:common_chat_reasoning_parser"`
	ReasoningFormat   string `json:"reasoningFormat,omitempty" example:"deepseek"`
	Family            string `json:"family,omitempty" example:"qwen3"`
	DisplayLabel      string `json:"displayLabel,omitempty" example:"Qwen 3 8B"`
	UseCase           string `json:"useCase,omitempty" example:"coding"`
	RecommendedVRAMGB int    `json:"recommendedVramGb,omitempty" example:"8"`
	Vision            bool   `json:"vision,omitempty" example:"true"`
	MMProjURL         string `json:"mmprojUrl,omitempty" example:"https://huggingface.co/.../mmproj-....gguf"`
	MMProjSizeBytes   int64  `json:"mmprojSizeBytes,omitempty" example:"559874816"`
	Notes             string `json:"notes,omitempty" example:"native tool format"`
}

func (ModelDescriptor) BackendType added in v0.32.2

func (d ModelDescriptor) BackendType() string

func (ModelDescriptor) EstimatedResidentBytes added in v0.33.0

func (d ModelDescriptor) EstimatedResidentBytes() int64

func (ModelDescriptor) Label added in v0.33.0

func (d ModelDescriptor) Label() string

func (ModelDescriptor) RecommendedVRAMLabel added in v0.33.0

func (d ModelDescriptor) RecommendedVRAMLabel() string

type Registry

type Registry interface {
	Resolve(ctx context.Context, name string) (*ModelDescriptor, error)
	List(ctx context.Context) ([]ModelDescriptor, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL