GgufModelHeader
Parsed GGUF header: metadata key/values and tensor descriptors. Tensor data is never read.
Types
Constants and factory functions of GgufModelHeader.
Properties
general.architecture (for example llama, qwen2, gemma3).
Transformer block count (<arch>.block_count).
Training context window (<arch>.context_length).
absolute file offset at which tensor data starts.
The tensor type that holds the most bytes (for example Q4_K in a Q4_K_M file).
Embedding width (<arch>.embedding_length).
general.file_type (llama_ftype), or null if absent.
KV head count (<arch>.attention.head_count_kv), defaulting to headCount (no GQA).
Total number of parameters (sum of tensor element counts).
Human-readable quantization label: the llama_ftype name (for example Q4_K_M) from general.file_type, or the dominantTensorType name if that key is absent or unknown.
Bytes of tensor data, from the tensor types and shapes. Tensors of unknown type count as 0.
every tensor descriptor, in file order.
Value head size (<arch>.attention.value_length), defaulting to embeddingLength / headCount.
Vocabulary size (<arch>.vocab_size, else the length of tokenizer.ggml.tokens).