Week 2 Day 2: packed W4 decode matvec - #318
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Extract Week 2 Day 2 from the reviewed five-day Draft #316 onto the merged Day 1 course. The active lesson teaches packed W4 weights and the
quantized-matveccheckpoint after the Day 1 capacity cache. Starter, reference code, supplied tests, CLI, benchmarks, profiler, and shipped-day CI expose the Day 2 contract while reserving later kernels and checkpoint names for later PRs.The lesson retains the signed-affine W4 derivation, eight-nibble packing, BF16 metadata, Apple bandwidth and roofline example, matched benchmark method, and historical Week 2 URLs. Readable text accompanies the displayed equations. The preface identifies Day 1 as the dense control and Day 2 as the packed path; the 4B comparison is optional.
Local evidence
fabba526returned factual/preservation PASS, math/command correctness GO, learner WALKABLE, and static accessibility PASS. These verdicts are local evidence; this public PR still requires fresh exact-head reviews.Open gates
Hosted macOS run 35950765030 succeeded on exact head
fabba526: both native extensions built and the shipped-day manifest collected 351 tests (349 passed, 2 skipped). The runner's skip count differs from the local author run's one skip.This PR is Draft. Fresh public-head factual, correctness, learner, and accessibility reviews and all current repository gates remain required before Ready or merge. No Qwen model inference or performance benchmark was run for this Day 2 slice, and this PR makes no speed claim. The separate full-course Draft #316 performance screen does not validate Day 2 performance.
The current main-branch workflow deploys GitHub Pages on push. Merging this PR would trigger publication, so the Day 2 publication decision remains separate from the approval used for Day 1. No release, tag, settings, visibility, or later-day work is part of this PR.