mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-16 14:42:29 -05:00
[PR #1943] [MERGED] fix(design-grammar): Fc incorrectly bundled into sharding's symbols #36553
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1943
Author: @Shashank-Tripathi-07
Created: 7/7/2026
Status: ✅ Merged
Merged: 7/10/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/design-grammar-fc-sharding-symbol📝 Commits (1)
333f760fix(design-grammar): Fc incorrectly bundled into sharding's symbols📊 Changes
1 file changed (+11 additions, -1 deletions)
View changed files
📝
design-grammar/rewrite-rules.yml(+11 -1)📄 Description
Summary
rewrite-rules.yml'sshardingrule listedsymbols: ["Sy", "Fc"], butFcis a distinct primitive ingrammar.yml(id: 31, name: "Factorization"-- low-rank matrix decomposition), not a synonym for sharding.paper.texalso treatsFcas its own transformation independent of sharding (e.g. "Capacity (second pass): Fc (low-rank KV approximation...)" listed as a separate filter-path candidate alongsideSy).factorizationrewrite rule anywhere in the file, soFc's rewrite semantics were silently conflated with Sharding'srelieves/preserves/tradeoffs.Fix
Removed
Fcfromsharding'ssymbolsand added a dedicatedfactorizationrule, usingFc's owngrammar.ymldescription ("Approximating a massive matrix as the product of smaller ones (Low-Rank)") andpaper.tex's capacity framing.Test plan
Fcnow appears exactly once inrewrite-rules.yml, in its ownfactorizationrule.js-yamlto confirm well-formed structure (14 rules total,sharding.symbols == ["Sy"]).node scripts/validate.mjs(grammar.yml's own validator) still passes cleanly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.