feat(bootstrap): deterministic weight pattern generator (Wave 45, R-HT-2)#801
Open
gHashTag wants to merge 6 commits into
Open
feat(bootstrap): deterministic weight pattern generator (Wave 45, R-HT-2)#801gHashTag wants to merge 6 commits into
gHashTag wants to merge 6 commits into
Conversation
…-HS-2, Closes #786) Wave 40 adds IrqHandler callback registry, IrqDrivenDriver with wait_done_irq, and host-poll-vs-irq CLI that runs both completion paths against MockMmio and compares write/read counts. 32 new tests (11 inline + 21 integration). Zero regressions.
…loses #789) Wave 41 adds InferenceEngine with per-layer DMA prefetch -> inference -> DMA drain cycle, wait_irq_mask generic IRQ wait, and host-inference CLI. 36 new tests (16 inline + 20 integration). Zero regressions.
…loses #791) Wave 42 adds EngineConfig with cycle/DMA/BRAM/throughput estimation, LayerEstimate per-layer breakdown, and host-perf CLI that prints total_cycles, bram_pct, dma_beats, throughput at a given clock freq. 42 new tests (19 inline + 23 integration). Zero regressions.
…#795) Wave 43 adds --json to host-smoke, host-poll-vs-irq, host-inference, and host-perf. Emits structured JSON via serde_json when set; default human-readable output unchanged. 23 new integration tests. Zero regressions.
…format (R-HT-1, Closes #797) Wave 44 adds Trit enum, pack_word/unpack_word, host-pack and host-unpack CLI commands. Encoding: 2'b00=-1, 2'b01=0, 2'b10=+1, LSB-first, 27 trits per 54-bit word. Matches trit_stdlib.rs. 36 new tests (17 inline + 19 integration). Zero regressions.
#799) Wave 45 adds WeightPattern enum with 6 patterns (all-N/Z/P, alternating, phi-sequence, seeded-random), host-weight-gen CLI that emits packed hex words for a given (neurons, chunks) config. 35 new tests (16 inline + 19 integration). Zero regressions.
This was referenced May 23, 2026
This was referenced May 24, 2026
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.
Wave 45 — R-HT-2: Deterministic weight pattern generator
Closes #799
What changed
bootstrap/src/host/weights.rs: WeightPattern enum (6 patterns), generate_pattern/generate_weights, parse_pattern, 16 inline testst27c host-weight-gen --neurons=16 --chunks=4 --pattern=alternatingbootstrap/tests/host_weights.rs: 19 integration testsPatterns
all-n, all-z, all-p, alternating, phi-sequence, seeded-random:SEED
Test results
35 new (16 inline + 19 integration). Zero regressions.