Method RemoveLoraAdapter
RemoveLoraAdapter(LoraAdapter)
Removes a previously applied LoRA adapter from this model instance.
public bool RemoveLoraAdapter(LoraAdapter loraAdapter)
Parameters
loraAdapter
LoraAdapterThe LoraAdapter instance to remove. Must be one of the adapters returned by the Adapters property.
Returns
- bool
true
if the adapter was successfully removed; otherwise,false
if the adapter was not found.
Exceptions
- InvalidModelException
Thrown if this model does not support LoRA adapters (i.e., the underlying weights are not LLamaWeights).