ExternalParameterRef

data class ExternalParameterRef(val scope: String, val key: String, val encoding: TensorEncoding, val source: BufferHandle)(source)

Reference to a weight tensor that has been lifted out of the emitted StableHLO text and moved behind an util.global.load reference. The converter produces these; a downstream packager consumes them to write an IREE parameter archive (.irpa).

The converter does not copy bytes — it passes the source handle through unchanged. Callers that back a handle with mmap (planned in PR E for skainet-io-gguf and skainet-io-safetensors) get a true zero-copy path all the way from the source file to the .irpa.

Constructors

Link copied to clipboard
constructor(scope: String, key: String, encoding: TensorEncoding, source: BufferHandle)

Properties

Link copied to clipboard

Physical TensorEncoding (Dense / Q4_K / Q8_0 / TurboQuant / TernaryPacked / Opaque). Preserved so the packager can blit quantized blocks verbatim instead of re-quantizing.

Link copied to clipboard
val key: String

Symbolic name; matches TensorSpec.name by convention so the archive is addressable by tensor identity.

Link copied to clipboard

Parameter-archive scope (@<scope>::@<key> in the emitted MLIR, and the scope name inside the .irpa container).

Link copied to clipboard

BufferHandle backing the tensor bytes. May be an in-memory copy today; PR E replaces these with mmap windows into the source GGUF / safetensors file.