GgufTensorInfo

data class GgufTensorInfo(val name: String, val dimensions: List<Long>, val typeId: Int, val offset: Long)(source)

One tensor descriptor from the GGUF header.

Constructors

Link copied to clipboard
constructor(name: String, dimensions: List<Long>, typeId: Int, offset: Long)

Properties

Link copied to clipboard

Data size in bytes, or null if type is unknown.

Link copied to clipboard

ne[0..n_dims).

Link copied to clipboard

Number of elements (product of dimensions).

Link copied to clipboard

tensor name (for example blk.0.attn_q.weight).

Link copied to clipboard

offset of the tensor data relative to GgufModelHeader.dataOffset.

Link copied to clipboard

The element type, or null if typeId is unknown.

Link copied to clipboard
val typeId: Int

the raw ggml_type; type is null if it is unknown to this parser.