validate_peft_config

Function validate_peft_config 

Source
pub fn validate_peft_config(
    peft: &PeftAdapterConfig,
    max_lora_rank: usize,
) -> Result<()>
Expand description

2026-09-25: Adapter-config checks that need --max-lora-rank: the rank fits the pool, and every target module is one LoraModule or the router (gate). The parse-time checks are in metrale_config::parse_peft_adapter_config.