unsloth icon indicating copy to clipboard operation
unsloth copied to clipboard

Updating LoRA Weights VLLM

Open BY571 opened this issue 1 week ago • 0 comments

Hello!

When fine-tuning my unsloth model using fast_inference=True. How can I update my LoRA weights manually, or are those weights getting updated automatically for the vllm_engine of my model?

I found you have the function load_lora. Am I supposed to update the weights like this:

adapter_path = "current_saved_adapter"
lora_request = load_lora(self.policy, adapter_path)
self.policy.vllm_engine.vllm_lora_request = lora_request

BY571 avatar Feb 13 '25 14:02 BY571