Documentation
¶
Index ¶
- func ConvertHuggingFaceModelNameToOllama(hfModelName string) (string, error)
- type Manager
- func (m *Manager) CreateNewModel(modelName string, spec *ModelSpec) error
- func (m *Manager) DeleteModel(ctx context.Context, modelName string) error
- func (m *Manager) ListModels(ctx context.Context) ([]*v1.Model, error)
- func (m *Manager) PullBaseModel(modelName string) error
- func (m *Manager) Run() error
- func (m *Manager) WaitForReady() error
- type ModelSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertHuggingFaceModelNameToOllama ¶ added in v0.12.0
ConvertHuggingFaceModelNameToOllama converts a HuggingFace model name to an official Ollama model name.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages the Ollama service.
func (*Manager) CreateNewModel ¶
CreateNewModel creates a new model with the given name and spec.
func (*Manager) DeleteModel ¶ added in v0.56.0
DeleteModel deletes the model.
func (*Manager) ListModels ¶ added in v0.56.0
ListModels lists the loaded models.
func (*Manager) PullBaseModel ¶ added in v0.7.0
PullBaseModel pulls the base model from the given path.
func (*Manager) WaitForReady ¶ added in v0.7.0
WaitForReady waits for the Ollama service to be ready.
Click to show internal directories.
Click to hide internal directories.