pub fn load(
model: &Arc<CmfModel>,
cfg: &Dsv4Cfg,
n_layers: usize,
) -> Result<(Dsv4Globals, Vec<Dsv4Layer>), String>Expand description
Build the runtime weights from a converted .cmf.
Names are the converter’s output (see canon_name’s deepseek_v4 arm):
attention keeps DeepSeek’s own spelling under self_attn., the MoE is
rewritten into the layout every other MoE here uses, and the hyper-
connection tensors ride under the layer prefix.