[Async VLLM] LoRA support?
currently, LoRA seems to be supported only for the vLLMRollout (sync. one)
https://github.com/volcengine/verl/blob/7737bf06e5c598a8ff4c05d07b713450d4cf308d/verl/workers/sharding_manager/fsdp_vllm.py#L266
inference_engine for the async worker doesn't have the attribute llm_engine, and thus an error is raised.
is anyone working on this issue? if not, I'd love to contribute!
Hi! Any updates on this? Would love to see this feature implemented.
Bump!
Bump again
I have a working version based on a fork of verl in May. It might be beneficial if you want to patch it yourself.
Hi @sanxing-chen -- thanks a lot for sharing this! The markdown and async LoRA details within Verl were especially helpful. From my testing, the latest main branch of Verl seems to have resolved all the crashing issues when training LoRA in async mode (with vLLM + FSDP). However, I’m still seeing a large performance gap between async LoRA and sync LoRA — while sync LoRA and full FT perform similarly on my debug dataset. Example run: wandb log.
After exploring possible failure modes, my intuition is that either:
- LoRA weights in the rollout engine aren’t being updated correctly from the actor, or
- Verl is querying the base model instead of the LoRA-adapted one during rollout.
Either case would make the training unintentionally off-policy.
(1) Rollout syncing
The current VERL version removes rollout_sharding_manager (#3499) and instead uses the unified trainer/rollout_mode for weight syncing, so I don't think there should have a huge problem here. Older versions can be patched easily as well.
(2) LoRA model usage
Your working version seems to address this by explicitly passing the model argument to the vLLM request (ensuring the LoRA model, e.g. "123", is used):
# in init_engine
if self.lora_rank > 0:
lora_request = LoRARequest(lora_name="123", lora_int_id=123, lora_path='simon_lora_path')
self.openai_serving_chat.models.lora_requests.append(lora_request)
# ...
if self.lora_rank > 0:
request_json["model"] = "123"
I’ve manually patched both of the above, but the performance gap remains. At this point, I’m not sure whether this reflects an inherent limitation of async RL with LoRA, or if there’s still an unaddressed issue in Verl implementation. Do you happen to have any additional insights or observations from your own experiments?
Again, really appreciate your patch -- it’s been a big help.
@listar2000 my implemention was using async vLLM to handle multi-turn trajectories, the RL is always on-policy. The performance degration of async RL sounds like a different question that I wasn't trying to solve. My suggestion is perhaps to compare the KL between the rollout generator and the trainer (like this). The model name change was indeed a must for the version of verl I was patching. btw, I noticed the pg_loss for two of the three selected runs in your experiment log were near zero all the time.
Thanks again for the response. I think you have implicitly solved the issue by patching the "chat_completions" function (through adding the lora model) -- I've patched that as well in the new version (which uses slightly different API but same logic works) thanks to your help. Will probably send a PR to Verl soon.
that's cool! while you might not be affected by this, but there is a bug in the fused linear layer that would hinder gradients calcs w/ LoRA, I created a PR to fix it https://github.com/volcengine/verl/pull/3765
中文
根据本次定时任务对 comments 和 timeline 的检查,这个 issue 命中默认超时关闭规则:最近一次非当前运行账号(Kirrito-k423)的公开回复或公开引用是 2025-10-14T22:54:43Z,已经超过 6 个月。证据:latest_non_self_reply_or_reference_at=2025-10-14T22:54:43Z; kind=comment; actor=sanxing-chen; reference=https://github.com/verl-project/verl/issues/2048#issuecomment-3403872578。检查来源:https://api.github.com/repos/verl-project/verl/issues/2048/comments 和 https://api.github.com/repos/verl-project/verl/issues/2048/timeline。因此按定时清理标准先关闭;如果作者或社区成员仍能提供新的复现、证据或需求背景,可以继续评论请求重开或创建新 issue。
English
In this scheduled pass, I checked the issue comments and timeline. This issue matches the default stale-issue closure rule: the latest public reply or public reference from an account other than the current runner (Kirrito-k423) was at 2025-10-14T22:54:43Z, which is more than 6 months ago. Evidence: latest_non_self_reply_or_reference_at=2025-10-14T22:54:43Z; kind=comment; actor=sanxing-chen; reference=https://github.com/verl-project/verl/issues/2048#issuecomment-3403872578. Checked sources: https://api.github.com/repos/verl-project/verl/issues/2048/comments and https://api.github.com/repos/verl-project/verl/issues/2048/timeline. I am closing it under the scheduled cleanup rule. If the author or community can provide a fresh reproduction, evidence, or requirement context, please comment to request reopening or open a new issue.
This response was generated by a scheduled Codex GPT5.5 issue processing task.