GGUFReader

class GGUFReader(source: Source, loadTensorData: Boolean = true, decodeF16ToFloat: Boolean = true, decodeBF16ToFloat: Boolean = true)(source)

Constructors

Link copied to clipboard
constructor(source: Source, loadTensorData: Boolean = true, decodeF16ToFloat: Boolean = true, decodeBF16ToFloat: Boolean = true)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Toggle decoding of BF16 payloads into Float values; if false, preserves UShort raw words.

Link copied to clipboard

Toggle decoding of F16 payloads into Float values; if false, preserves UShort raw words.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Lazily materialize the raw payload for the given tensor, honoring its ggml quantization. Returns a typed Kotlin List corresponding to the underlying storage: