verl icon indicating copy to clipboard operation
verl copied to clipboard

Unable to Create Loras of Rank 1

Open rcano-baseten opened this issue 1 year ago • 2 comments

https://github.com/volcengine/verl/blob/798a6f8ba0d56837feaf544fbeb657719b2ba614/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py#L111

In an attempt to follow the Thinking Machines "Lora Without Regret" blogpost, I attempted to use a lora of rank 1 with vllm rollouts. However - this is not possible because vllm does not allow it. I'm wondering if it would be appropriate here to overwrite the lora kwargs we send to vllm (e.g. send max(lora_rank, 8)). I'm a bit a naive here, so let me know if this actually wouldn't help with the memory footprint at all

Edit: Provide Links

rcano-baseten avatar Oct 08 '25 05:10 rcano-baseten

Hi the PR I'm attaching above (which mentions this issue) should help you handle the encountered problem.

listar2000 avatar Oct 20 '25 01:10 listar2000

中文:我查看了当前 main、关联 PR 和 vLLM 代码。#3821 已经合入,并且当前 verl 会通过 get_vllm_max_lora_rank() 按 vLLM 的允许 rank 设置 max_lora_rank;当前 vLLM v0.12.0 的 MaxLoRARanks 已包含 1。同时,当前 async vLLM rollout server 也会在生成请求中传入 LoRARequest。

不过,较旧的 vLLM 版本(例如 v0.11.0)仍然只允许 8, 16, 32, 64, 128, 256, 320, 512,所以我不建议仅凭现有信息关闭这个 issue。如果你在当前 verl main 上仍能复现,请补充:verl commit、vLLM version、完整 LoRA/rollout 配置,以及具体报错堆栈。

English: I checked current main, the linked PR, and vLLM's LoRA configuration. #3821 has been merged, and current verl routes LoRA rank through get_vllm_max_lora_rank() before passing max_lora_rank to vLLM; vLLM v0.12.0 includes 1 in MaxLoRARanks. The current async vLLM rollout server also passes a LoRARequest during generation.

However, older vLLM versions such as v0.11.0 still only allow 8, 16, 32, 64, 128, 256, 320, 512, so I would not close this issue based only on the current evidence. If this still reproduces on current verl main, please share the verl commit, vLLM version, full LoRA/rollout config, and the exact traceback.

This response was generated by a scheduled Codex GPT5.5 issue processing task.

Kirrito-k423 avatar Jul 20 '26 01:07 Kirrito-k423