Skip to content

docs: design Flint common-owner attachment (#632) - #676

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
Burntgogi:docs/issue632-flint-design
Oct 22, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
Burntgogi:docs/issue632-flint-design

Conversation

@Burntgogi

Copy link
Copy Markdown
Contributor

Scope

Completes the design round requested in #632. Refs #632; does not close it. No Flint reader/body/seat registration, runtime code, kernel, admission row or gate threshold changes.

  • docs/research/flint-attach.md: pinned architecture/numerical contract, all nine common-owner attachment decisions, per-role quant admission, placement/slot/retention formulas, concrete prerequisite lifts, and ordered implementation/acceptance hand-off.
  • docs/research/flint-attach-evidence.json: actual pinned GGUF metadata, tensor shapes/types by layer, header hash and host-probe results. Evidence snapshot, not another capability registry.

Findings that change the implementation plan

  • Real UD-Q4_K_XL: 779 tensors, header 5,470,528 B, payload 25,049,218,176 B; both 49-element masks, four EOG IDs and vocabulary agree with the pinned official config. Original/GGUF templates are byte-identical.
  • No correction-bias tensor. shared_routed currently requires one; the low-level route block already represents an absent bias. Sigmoid256/top6 needs a real instance and explicit normalization policy: current sum+1e-20 differs from mainline's max(sum,2^-14).
  • NoPE currently suppresses the QK-normalization need. Flint still needs QK norm and sinks in all49 layers; there is no complete callable head128/NoPE/SWA/sink program.
  • Routed quant arithmetic exists, including IQ3_S prompt GEMM and Q6_K/Q8_0 down; selected wrapper/loader/down-form integration remains. Layer42 shared IQ4_XS is a separate dense/shared-block gap.
  • The common ring needs 1024, not513, rows for a513-token window with512-row prompt appends. Six-slot F32 tier handoff, paged-plan/load agreement and resident-slot seat plumbing are explicit prerequisites.
  • Actual tokenizer/template APIs refuse Flint pretokenizer, block set, and replace arguments. Preserve the original template; extend the common owners and reuse GLM XML tool parsing. Preserve all four EOG IDs.
  • File23.334GiB is below24GiB: derive device fit from actual packing/KV/scratch/reserves, not file size alone. GGUF other/flint-preview versus official Apache-2.0 remains an explicit provenance/redistribution condition.

Executed verification

At bloomery e53cabebbb9b16249c81b7c26a026da1670f7d9d:

  1. Existing bounded Hub range reader + Python GGUF parser; pinned8MiB prefix, only header interpreted. gguf::inventory_of independently extracted arrays and agreed on tensor bytes.
  2. Config/header mask/EOG/vocabulary assertions; full type/shape/layer census and byte accounting; exact official/GGUF chat-template comparison.
  3. Throwaway host-only Rust probe calling Tokenizer::from_keys, ChatTemplate::parse/render, runtime::stores::{ring_rows,cut_depth_keeps}. Observed all three named chat refusals; nine context boundaries and filled-ring cuts512/513 checked. Temporary project/header removed.
  4. Executed the document's reproduction recipe verbatim: header=5470528 tensors=779 encoded_bytes=25049218176: verified.
  5. Saved evidence checked against observed results; all26 pinned local source anchors and three relative links resolve.
  6. bash tools/check-comments.sh: pass (1213files,160202comment lines).

No full-weight download/hash, mainline execution, inference, GPU, two-card, HTTP-seat or performance evidence. Those are future implementation gates, not implied by this design. No permanent prose/wiring test was added.

Integration notes

Uses already-landed common routed/prompt/app/tier owners and #609's description/coverage boundaries. Records active #666's ownership migration rather than proposing a competing plan/ops layer. Local Claude pre-review CLI is unavailable; upstream automated review is requested normally.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 22, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CLEAN: The design matches the inspected common owners and keeps unsupported runtime paths disabled.

Checked

Duplicates: 0 new functions, types or constants; no existing Flint attachment design found. The reproduction recipe reuses the existing GGUF parser.
Complexity: no Rust functions changed.
Silent failure: 0 new fallback or discarded-error sites.
Tests: no tests added or changed; mutation review is not applicable. The reproduction snippet parses.
Snapshot: tensor counts, per-role bytes, parameter totals, masks, nine KV calculations and the 512/513 rewind boundary agree. All 26 local source anchors resolve.
Gates: no thresholds, tests or admission rows changed. Runtime acceptance remains explicit future work.
Escape catalog: no matching defects; the reproduction heredoc is quoted.

Notes

Dryer and crapper did not run because no Rust files changed. Upstream artifacts and GPU results were not independently reproduced during this review.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@juliankang4
juliankang4 merged commit dadd584 into midagedev:main Oct 22, 2026
6 checks passed
@juliankang4

Copy link
Copy Markdown
Collaborator

@Burntgogi Thanks for the contribution. The review is done, so I'm merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants