fn
replace_lora_weights_loftq
→Nonereplace_lora_weights_loftq(peft_model: nn.Module, model_path: str | None = None, adapter_name: str = 'default', callback: Callable[[nn.Module, str], bool] | None = None)Refused with NotImplementedError: 4-bit quantised LoRA layers are not implemented yet.
Provided for API parity with the reference adapter library.
Parameters
peft_ modelnn.ModuleQuantised PEFT model whose LoRA weights would be replaced.
model_ pathstr= NonePath to the unquantised safetensors weights.
adapter_ namestr= "default"Adapter name to update.
callbackcallable= NonePer-module acceptance callback
(model, module_name) -> bool.Raises
NotImplementedErrorAlways raised; 4-bit quantised LoRA layers are not implemented yet.