mirror of
https://github.com/deepseek-ai/DeepInfer.git
synced 2026-11-01 09:16:20 +08:00
generate() silently misaligned results[i] with prompts[i] when sampling_params / multi_modal_data list lengths did not match the number of prompts: extra entries were silently dropped, missing entries raised an uninformative IndexError, and a bare multi_modal_data dict paired with several prompts raised an obscure TypeError/KeyError deep inside the request loop. Now the mismatches raise a clear ValueError up front (matching vLLM upstream behavior), and a bare multi_modal_data dict is only accepted for a single prompt. Also fixes the hidden nesting bug where a str prompt + list multi_modal_data became [[...]]. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| llm.py | ||