Package-level declarations

Types

Link copied to clipboard

Resolves network DSL module paths to HuggingFace BERT tensor names.

Link copied to clipboard

Resolves network DSL module paths to GGUF tensor names for LLaMA-family models.

Link copied to clipboard

Resolves network DSL module paths to SafeTensors (HuggingFace) tensor names.

Link copied to clipboard
data class MappingConfig(val usePathBasedMatching: Boolean = true, val fallbackToShapeMatching: Boolean = true, val debug: Boolean = false, val nameResolver: WeightNameResolver? = null)

Configuration for weight mapping behavior.

Link copied to clipboard
data class WeightLoadResult<T : DType, V>(val tensors: List<WeightTensor<T, V>>, val skipped: List<String> = emptyList())

Result of loading weight tensors from a model file.

Link copied to clipboard

Unified weight mapping utility for applying loaded weights to SKaiNET modules.

Link copied to clipboard

Resolves module parameter paths (from the DSL module tree) to weight tensor names (from model files like GGUF or SafeTensors).

Link copied to clipboard
data class WeightTensor<T : DType, V>(val name: String, val shape: List<Int>, val tensor: Tensor<T, V>, val isBias: Boolean = name.lowercase().contains("bias"))

Format-agnostic representation of a weight tensor loaded from any model format (ONNX, GGUF, SafeTensors, etc.).