Documentation
¶
Overview ¶
Package executor describes the supported model executors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupported = errors.New("engine kind is not supported")
ErrUnsupported marks an engine value without an executor.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface {
Kind() Kind
Binary() string // executable name resolved via PATH
BackendDir() string // ggml backend plugins loaded at runtime
ReadyPath() string // HTTP path polled until 200
Address() Address // spellings the merged argv is read back through
Args(p Params) []string
Env(p Params) []string // extra env, appended to the parent env
}
Executor shapes the launch of one family.
type Kind ¶
type Kind string
Kind is a supported executor family (the exedra.engine model field).
type Params ¶
type Params struct {
ModelPath string
Alias string
Capabilities []string // model modalities (llm | vlm | embeddings | asr | tts)
Host string
Port int
APIKey string
NoGPU bool
UI bool // keep the web UI enabled
Ctx int // 0 = executor default
Threads int // 0 = executor default
}
Params is the flat launch data an executor turns into argv/env.
Click to show internal directories.
Click to hide internal directories.