load_lora_adapters_generic

Function load_lora_adapters_generic 

Source
pub fn load_lora_adapters_generic(
    adapter_store: &WeightStore,
    peft: &PeftAdapterConfig,
    cfg: &ModelConfig,
    gpu: &dyn GpuBackend,
    max_loras: usize,
    max_lora_rank: usize,
) -> Result<LoraWeights>
Expand description

Single-adapter convenience wrapper (packs slot 0 only) — byte-identical to the pre-multi-adapter path. Kept for the unit tests and any single-adapter caller. The name is stamped onto the sole slot.