Commit b33b53f
fix(xtoken): return cached tuple in get_topk_projection; align HSDP test
get_topk_projection's cache-miss path returned a freshly-built
(indices, likelihoods) tuple instead of the one stored in
_TOPK_PROJECTION_CACHE, so the first (miss) call and subsequent (hit)
calls handed back different tuple objects. This broke
test_repeat_call_hits_cache's identity assertion (a is b). Store and
return the same tuple.
Also update test_dtensor_hsdp_dispatches_distinct_batches: Policy.train
now threads check_dim_skip_keys through common_kwargs (added in this PR
for cross-tokenizer skip-keys plumbing), so the expected
run_all_workers_sharded_data call must include 'check_dim_skip_keys': None.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Adithya Hanasoge <adithyakvh@gmail.com>1 parent 96378e4 commit b33b53f
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
429 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
| |||
0 commit comments