Array

data class Array(val elementType: GgufValueType, val size: Long, val values: List<GgufValue>?) : GgufValue(source)

ARRAY. Large arrays (tokenizer vocabularies, merges) are skipped rather than kept in memory: values is then null and only elementType and size are known.

Constructors

Link copied to clipboard
constructor(elementType: GgufValueType, size: Long, values: List<GgufValue>?)

Properties

Link copied to clipboard

type of the elements.

Link copied to clipboard
val size: Long

number of elements.

Link copied to clipboard
open override val type: GgufValueType

The stored value type.

Link copied to clipboard

the elements, or null when the array was skipped.