OllamaModelCard

Represents metadata and configuration details about an Ollama model card. This class contains descriptive properties about the model, such as its name, family of models it belongs to, capabilities it supports, and specific technical attributes like parameter count and size.

Properties

Link copied to clipboard

A list of capabilities supported by the model, represented as instances of the LLMCapability class. This provides details on functionalities such as tools , embeddings, and specific processing abilities.

Link copied to clipboard

The maximum context length supported by the model, defining how much text input the model can process at once.

Link copied to clipboard

The size of the embedding vector produced by the model, if applicable.

Link copied to clipboard

A list of family classifications the model belongs to, providing additional grouping information.

Link copied to clipboard

The family classification of the model, typically indicating related models or versions.

Link copied to clipboard

The name of the model.

Link copied to clipboard

Returns the model name without any associated tags. This property extracts and provides a clean version of the name property from the OllamaModelCard by removing any tags or additional decorations.

Link copied to clipboard

The number of parameters in the model, indicating its complexity or capacity.

Link copied to clipboard

The quantization level of the model, describing any compression or optimization techniques applied to the model weights.

Link copied to clipboard
val size: Long

The size of the model, often represented in bytes or other units relevant to deployment.

Functions

Link copied to clipboard

Converts an instance of OllamaModelCard to an LLModel representation.