Documentation
¶
Index ¶
- func CreateModelfile(filePath string, modelName string, spec *ModelSpec, ...) error
- func ModelName(modelID string) string
- func ModelfilePath(modelDir string, modelName string) string
- func WriteModelfile(modelName string, spec *ModelSpec, contextLengthsByModelID map[string]int, ...) error
- type ModelSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateModelfile ¶ added in v0.302.0
func CreateModelfile( filePath string, modelName string, spec *ModelSpec, contextLengthsByModelID map[string]int, ) error
CreateModelfile creates a new model file.
func ModelName ¶ added in v0.326.0
ModelName returns the Ollama model name from the model ID used in LLM Operator.
Ollama does not accept more than two ":" while the model ID of the fine-tuning jobs is be "ft:<base-model>:<suffix>".
func ModelfilePath ¶ added in v0.302.0
ModelfilePath returns the model file path.
Types ¶
Click to show internal directories.
Click to hide internal directories.