Commit 36a10af
committed
Simplify comment, add CPU unit test for compute_topk_scores
- Shorten verbose comment in gpu_model_runner.py
- Add test_compute_topk_scores_logits_mode: CPU-only test that
verifies logits_mode returns raw values while default returns
log_softmax, with matching token_ids and ranks
Signed-off-by: Allen Shen <aoshen@inferact.ai>1 parent df65310 commit 36a10af
3 files changed
Lines changed: 35 additions & 11 deletions
File tree
- csrc/cpu
- tests/v1/sample
- vllm/v1/worker
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
641 | | - | |
642 | | - | |
| 641 | + | |
643 | 642 | | |
644 | 643 | | |
645 | 644 | | |
646 | | - | |
647 | | - | |
| 645 | + | |
| 646 | + | |
648 | 647 | | |
649 | 648 | | |
650 | 649 | | |
651 | | - | |
652 | | - | |
| 650 | + | |
| 651 | + | |
653 | 652 | | |
654 | | - | |
655 | | - | |
| 653 | + | |
| 654 | + | |
656 | 655 | | |
657 | 656 | | |
658 | 657 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
187 | 214 | | |
188 | 215 | | |
189 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5566 | 5566 | | |
5567 | 5567 | | |
5568 | 5568 | | |
5569 | | - | |
5570 | | - | |
5571 | | - | |
| 5569 | + | |
5572 | 5570 | | |
5573 | 5571 | | |
5574 | 5572 | | |
| |||
0 commit comments