Skip to content

feat(bootstrap): deterministic weight pattern generator (Wave 45, R-HT-2)#801

Open
gHashTag wants to merge 6 commits into
masterfrom
feat/wave-45/host-weights
Open

feat(bootstrap): deterministic weight pattern generator (Wave 45, R-HT-2)#801
gHashTag wants to merge 6 commits into
masterfrom
feat/wave-45/host-weights

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Wave 45 — R-HT-2: Deterministic weight pattern generator

Closes #799

What changed

  • New file bootstrap/src/host/weights.rs: WeightPattern enum (6 patterns), generate_pattern/generate_weights, parse_pattern, 16 inline tests
  • New CLI: t27c host-weight-gen --neurons=16 --chunks=4 --pattern=alternating
  • Updated mod.rs, main.rs, NOW.md
  • New file bootstrap/tests/host_weights.rs: 19 integration tests

Patterns

all-n, all-z, all-p, alternating, phi-sequence, seeded-random:SEED

Test results

35 new (16 inline + 19 integration). Zero regressions.

claude added 6 commits May 24, 2026 02:34
…-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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(bootstrap): host weight initializer with deterministic test patterns (Wave 45, R-HT-2)

2 participants