pub fn classify_overlay_key(key: &str) -> Option<OverlayTensor>Expand description
2026-09-25: Classify a PEFT tensor name as an overlay tensor. None for a
name without the base_model.model. prefix, a lora_A/lora_B weight
(for super::classify_key), or a name matching no overlay form. Only the
module name and suffix are matched, so model.embed_tokens and
model.language_model.embed_tokens both work. The token_adapter and
lora_embedding suffixes are tested before the bare .weight form, so
…token_adapter.base_layer.weight is not taken for a full table.