LlamaSafeTensorsNameResolver

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

Module tree paths → HuggingFace naming: "blk.0.attn.q_proj.weight" → "model.layers.0.self_attn.q_proj.weight" "blk.0.ffn.gate_proj.weight" → "model.layers.0.mlp.gate_proj.weight" "token_embd.weight" → "model.embed_tokens.weight" "output_norm.weight" → "model.norm.weight" "output.weight" → "lm_head.weight"

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun resolve(modulePath: String, paramName: String): String?

Resolve a module parameter path to the tensor name in the model file.