StreamingTensorInfo

data class StreamingTensorInfo(val name: String, val shape: List<UInt>, val tensorType: GGMLQuantizationType, val rawTypeValue: Int, val nElements: Long, val nBytes: Int, val relativeOffset: Long, var absoluteDataOffset: Long)(source)

Tensor metadata for streaming access.

Contains all information needed to describe a tensor without loading its actual data. The absoluteDataOffset can be used to load tensor data on demand.

Constructors

Link copied to clipboard
constructor(name: String, shape: List<UInt>, tensorType: GGMLQuantizationType, rawTypeValue: Int, nElements: Long, nBytes: Int, relativeOffset: Long, absoluteDataOffset: Long)

Properties

Link copied to clipboard

Absolute byte offset in file (set after parsing)

Link copied to clipboard

Whether this tensor uses an unknown/unsupported quantization type

Link copied to clipboard

Tensor name (e.g., "model.embed_tokens.weight")

Link copied to clipboard
val nBytes: Int

Size in bytes (estimated for unknown types)

Link copied to clipboard

Total number of elements

Link copied to clipboard

Raw type value from file (useful when tensorType is UNKNOWN)

Link copied to clipboard

Offset relative to data section start

Link copied to clipboard

Tensor dimensions

Link copied to clipboard

GGML quantization type (may be UNKNOWN for unsupported types)