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