Commit f3876d7
committed
fix(input_batch): gate seq_lens_np default with vllm_version_is('0.27.1')
vLLM main (cdc4824a21) added max_query_len: int | None = None to the
InputBatch dataclass (vllm#47808), making the child
AscendInputBatch's non-default seq_lens_np field follow a default
argument, which raises TypeError at class definition time.
Use vllm_version_is('0.27.1') to conditionally give seq_lens_np a
default value on main only, satisfying Python dataclass field ordering
while keeping v0.27.1 behavior unchanged.
Signed-off-by: hfadzxy <starmoon_zhang@163.com>1 parent f502674 commit f3876d7
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
0 commit comments