You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The inference results are not in the same order as the inputs #1887
Sorry on the delay. I could not reproduce this on the current release. model.fast_generate is vLLM's LLM.generate itself, and vLLM collects finished requests and sorts them by request id before returning (source, still the case in the latest vLLM). So outputs[i] always lines up with prompts[i], even when later prompts finish first.
I checked this with unsloth/Qwen3-0.6B and fast_inference = True on 48 prompts with a different max_tokens per prompt, so later prompts finish first. I also tried sampling with n = 2, fast_generate_batches, a LoRA request and chat templated prompts. In every case outputs[i].prompt == prompts[i].
A quick way to check your own run is [o.prompt for o in outputs] == prompts. If that prints False, please reopen with a small script and your unsloth, unsloth_zoo and vllm versions, and we will take another look.
Activity
Pin bitsandbytes to continuous-release_main on ROCm (4-bit decode fix) (
fix(install): add bitsandbytes ROCm install for Windows (mirrors inst…
pip: require bitsandbytes>=0.50.0 in the amd extra
amd: cite the 0.50.0 ROCm work accurately in the bnb floor comment
pip: cite the 0.50.0 ROCm work accurately in the bnb floor comment
amd: require bitsandbytes>=0.50.0 in the amd extra (fixes ROCm 4-bit …
tests: pin the amd/huggingfacenotorch extras and name the audit failu…
tests: pin the amd/huggingfacenotorch extras and name the audit failu…
danielhanchen commentedon Oct 8, 2026
Sorry on the delay. I could not reproduce this on the current release.
model.fast_generateis vLLM'sLLM.generateitself, and vLLM collects finished requests and sorts them by request id before returning (source, still the case in the latest vLLM). Sooutputs[i]always lines up withprompts[i], even when later prompts finish first.I checked this with
unsloth/Qwen3-0.6Bandfast_inference = Trueon 48 prompts with a differentmax_tokensper prompt, so later prompts finish first. I also tried sampling withn = 2,fast_generate_batches, a LoRA request and chat templated prompts. In every caseoutputs[i].prompt == prompts[i].A quick way to check your own run is
[o.prompt for o in outputs] == prompts. If that prints False, please reopen with a small script and yourunsloth,unsloth_zooandvllmversions, and we will take another look.