Conversation
Implements #142 behaviour fresh on the epic base: header-only pin-file loader (ggml/src/hydra-pins.h, one format, one parser for every consult path) with hard fail on fopen error and on any unparseable line, load-time dedupe with counts, one-line load summary (file, layers, total pins, per-layer min/max, dups removed). Engagement counter exposed, incremented only via the E1 hook. Attach-time VRAM fit check fails loudly with required, free, and shortfall arithmetic. Dedupe substance of #146 absorbed here (Refs #146); range-check moves to the E1 validate hook hydra_pins_validate_range. Assisted-by: Muse Spark
Implements #143 behaviour: per-(layer, site) rings (last 1024) reporting n, p50, p99, mean microseconds per branch, with gpu, cpu, and combine branches never merged. Kernel-launch attribution kept apart from event-measured time. GPU branch values must come from lazily harvested CUDA events (host timers measure launch, not execution); CPU branch uses host wall time. Instrument cost documented in the block contract. Assisted-by: Muse Spark
Implements #144 behaviour: hits over lookups on the k-per-token lookup basis, recorded per (layer, site) with h = hits/lookups plus totals. Exactly one path records by construction on this base, so no blended semantics are possible. Every dump line labelled decode-only; callers documented as decode-gated. Assisted-by: Muse Spark
This was referenced Sep 19, 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.
E0 measurement foundation for epic #148, built fresh on the rebased epic base (86af0c9, contains upstream 90e0f5c). The gather pilot (PR #134) is NOT ported; only the concepts of #142/#143/#144 survive, per the epic ruling.
Closes #142, closes #143, closes #144. Dedupe substance of #146 absorbed into the #142 commit (range-check moves to the E1 validate hook).
Commits (one per issue):
Verification (certified base build-e0, stamp be4676f11 clean):
No effect numbers in this PR (gate closed until E1 opens it).