ModelHeaderInfo

sealed class ModelHeaderInfo(source)

Summary of a model file from its header, without loading weights.

Inheritors

Types

Link copied to clipboard
class Gguf(val header: GgufModelHeader) : ModelHeaderInfo

A GGUF file.

Link copied to clipboard

A whisper.cpp ggml file.

Properties

Link copied to clipboard
abstract val contextLength: Long?

training context (LLMs) or text context (Whisper), or null.

Link copied to clipboard

pre-load peak RAM estimate with default options.

Link copied to clipboard
abstract val format: ModelFormat

the file format.

Link copied to clipboard
abstract val parameterCount: Long

total tensor elements.

Link copied to clipboard
abstract val quantization: String?

quantization label (for example Q4_K_M, F16), or null if unknown.