Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ModelSubdir is the subdirectory within a bundle where model files are stored
ModelSubdir = "model"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
Bundle represents a runtime bundle containing a model and runtime config
func (*Bundle) ChatTemplatePath ¶
ChatTemplatePath return the path to a Jinja chat template file or "" if none is present.
func (*Bundle) GGUFPath ¶
GGUFPath return the path to model GGUF file. If the model is sharded this will be the path to the first shard, containing metadata headers.
func (*Bundle) MMPROJPath ¶
MMPROJPath returns the path to a multi-modal projector file or "" if none is present.
func (*Bundle) RuntimeConfig ¶
RuntimeConfig returns config that should be respected by the backend at runtime.
func (*Bundle) SafetensorsPath ¶
SafetensorsPath returns the path to model safetensors file. If the model is sharded this will be the path to the first shard.
Click to show internal directories.
Click to hide internal directories.