package
0.0.0-20241214180106-a4720edd636e
Repository: https://github.com/helixml/helix.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
See also types/models.go for model name constants.
No description provided by the author
No description provided by the author
rather then keep processing model names from sessions into instances of the model struct (just so we can ask it GetMemoryRequirements()) this gives us an in memory cache of model instances we can quickly lookup from.
NewMockModel creates a new mock instance.
NewMockModelSessionFileManager creates a new mock instance.
No description provided by the author
No description provided by the author
this will handle aliases and defaults.
No description provided by the author
# Constants
define 1 GB as a uint64 number of bytes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
We only need constants for _some_ ollama models that are hardcoded in various places (backward compat).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
the same chunker works for inference and fine tuning.
No description provided by the author
No description provided by the author
No description provided by the author
MockModel is a mock of Model interface.
MockModelMockRecorder is the mock recorder for MockModel.
MockModelSessionFileManager is a mock of ModelSessionFileManager interface.
MockModelSessionFileManagerMockRecorder is the mock recorder for MockModelSessionFileManager.
No description provided by the author
Model struct represents an OpenAPI model.
ModelsList is a list of models, including those that belong to the user or organization.
Permission struct represents an OpenAPI permission.
a configurable text stream to process llm output.
# Interfaces
go:generate mockgen -source $GOFILE -destination types_mocks.go -package $GOPACKAGE.
an interface that allows models to be opinionated about how they manage a sessions files for example, for text fine tuning - we want to download all JSONL files across interactions and then concatenate them into one file a ModelSessionFileManager implmentation will be per session and so have allocated a folder for each session.
# Type aliases
TODO: having a separate ModelName type just so we can put the InferenceRuntime() method on it is silly, we should move the InferenceRuntime logic onto the Model struct maybe.
No description provided by the author
No description provided by the author