Repository navigation
build: run the three bounded top-k selection tests in a fast host step - #4095
Conversation
|
Thanks @jschmied for restoring focused coverage of these three tests. The new host step is rooted at The fourth imported The three-line build-only diff applies cleanly to current main and changes no inference source. I found no remaining issue. It goes on a landing train now.
|
|
Independent M5 Max check with Zig 0.17.0 on a clean trial merge of zig build test-lanes-topk-host test-qwen35-metal-host -Dcpu=apple_m1 -j5 --summary allAll 14 tests passed. I ran the focused binary directly to confirm it includes all three named selection cases and the grammar import block. The existing Qwen Metal host target still passed 10/10. The new command runs without a checkpoint or a GPU workload on macOS. Igor Lessio - AIFLOW LABS |
561f5e3 to
44af3a3
Compare
|
Thank you @jschmied. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
What and why
Follow-up to #3214, from ashhart's comment: the three selection tests #3214 moved into
core/lanes/sampling_row_topk.zigran only in the fullzig build testaftertest-qwen35-metal-hostdropped them by name. This adds one filtered host step that runs exactly those three, next to the step that used to run them (zig/build/qwen35_cache_host.zig, +3 lines). No source change.Part of #2460 (item 3).
Step
zig build test-lanes-topk-host: rooted atzig/src/core/lanes/sampling_row_topk.zig, host target, debug, filters:bounded BF16 keysthe blocked selectiona non-finite word insideRun on head 561f5e3 (aarch64 Linux, zig 0.17.0)
The 3 named tests run. The fourth is
grammar.zig's unnamedtest {}import block, which Zig runs under any matching filter; it has no assertions of its own.test-qwen35-metal-hoststill passes (10 of 10).Planted control
Changing the expected error at
sampling_row_topk.zig:136toerror.OutOfMemoryfails the step by name, exit 1:Plant reverted before the commit.
Not applicable: no opt-in path, kernel, refusal, served path or speed change; the step only runs existing tests.
python3 tools/pr_check.py --base origin/main: 0 errors (the one warning asks for the PR number for the Unreleased line).Proposed CHANGELOG line
zig build test-lanes-topk-hostruns the three bounded top-k selection tests fromcore/lanesin a fast host step (RFC: families compose core blocks: a conformance kit first, then sampler, config, drafter and format loaders #2460).