Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
ad1878d
feat: add optional corelib ABI loader
chizamd Sep 1, 2026
9c8de1c
feat: add corelib runtime failure handling
chizamd Sep 1, 2026
2344ec6
fix: harden corelib runtime foundation
chizamd Sep 1, 2026
91c32bf
feat: add Phi-4 ONNX manifest tooling
chizamd Sep 1, 2026
aefe2a9
fix: complete Phi-4 manifest verification
chizamd Sep 1, 2026
398a732
feat: load Phi-4 AIE4 model packages
chizamd Sep 1, 2026
2e62127
fix: identify invalid Phi-4 weight components
chizamd Sep 1, 2026
64f5062
feat: derive AIE4 tensor shapes from corelib
chizamd Sep 1, 2026
64c2013
fix: centralize Phi-4 shape contracts
chizamd Sep 1, 2026
eee632f
feat: load Phi-4 weights through corelib
chizamd Sep 1, 2026
b94ba0b
fix: preserve Phi-4 weight error contracts
chizamd Sep 1, 2026
d63ba65
feat: add Phi-4 AIE4 host operations
chizamd Sep 1, 2026
983d190
fix: clarify Phi-4 host operation contracts
chizamd Sep 1, 2026
1367d08
feat: add corelib-backed Phi-4 engine
chizamd Sep 1, 2026
ed2a996
fix: handle divergent AIE4 padding safely
chizamd Sep 1, 2026
d6c1760
feat: route Phi-4 AIE4 models through corelib
chizamd Sep 1, 2026
e52f60e
fix: align Phi-4 AIE4 generation state
chizamd Sep 1, 2026
2fb9302
fix: enforce Phi-4 AIE4 request limits
chizamd Sep 1, 2026
ed97a8e
fix: serialize AIE4 response completion
chizamd Sep 1, 2026
e1bae2d
chore: untrack SDD task report
chizamd Sep 1, 2026
dc15d66
build: package the optional corelib AIE4 runtime
chizamd Sep 2, 2026
e70f270
fix: rebase corelib integration onto e5258d2
chizamd Sep 2, 2026
e43468f
test: validate the corelib adapter against the real library
chizamd Sep 2, 2026
96b0085
fix: route /api/chat through the shared generation limit
chizamd Sep 2, 2026
ac95f54
test: make the 10R guards fire
chizamd Sep 2, 2026
cb7c337
build: derive the AIE4 runtime closure instead of transcribing it
chizamd Sep 2, 2026
a8e4db4
fix: enforce MODEL-2 on the Phi-4 AIE4 overlay config
chizamd Sep 2, 2026
b821450
fix: validate the AIE4 catalog's two provenances separately
chizamd Sep 2, 2026
b05c24f
test: guard the no-import rule and the measured catalog size
chizamd Sep 2, 2026
4c9a9ba
fix: make the AIE4 packaging guards actually fire
chizamd Sep 2, 2026
d069aca
fix: stop the ctest wiring from re-creating the I2 argv defect
chizamd Sep 2, 2026
b993a04
test: validate Phi-4 AIE4 end to end
chizamd Sep 2, 2026
95f6afa
test: let the hardware suite take the target's build inputs
chizamd Sep 2, 2026
71cabef
fix: keep the hardware suite runnable on Windows PowerShell 5.1
chizamd Sep 2, 2026
11ea308
fix: stage dyn_bins.dll for a shared DynamicDispatch too
chizamd Sep 2, 2026
2f3efaa
fix: make the AIE4 catalog and packaging guards survive a fresh clone
chizamd Sep 2, 2026
18319ea
fix: give the standalone test suite the versions it compiles in
chizamd Sep 2, 2026
4824850
test: compose the AIE4 package the suite needs from the shipped overlays
chizamd Sep 2, 2026
1c21752
test: check the engine against itself, not only against the reference
chizamd Sep 2, 2026
32d48cb
fix: stop the host RMSNorm reduction from seeding a BF16 divergence
chizamd Sep 2, 2026
f748f43
fix: give flm_corelib_aie4 its own Boost include, and validate XRT paths
chizamd Sep 2, 2026
c38081f
test: make the AIE4 acceptance claims checks rather than prose
chizamd Sep 2, 2026
58b708c
fix: let the Windows product build find its dependencies anywhere
chizamd Sep 2, 2026
d1db5e6
fix: require only the FFTW precision the product actually calls
chizamd Sep 2, 2026
0db2c3a
fix: declare shared Boost as shared on the Windows non-vcpkg path
chizamd Sep 2, 2026
5c38912
test: run Step 7's four generation endpoints from the suite
chizamd Sep 2, 2026
499bf70
fix: stop the harness from reporting its own defects as findings
chizamd Sep 2, 2026
213daf1
fix: stop an unbounded AIE4 generation from killing the server
chizamd Sep 2, 2026
41a301b
fix: gate on model-state bit-identity, report logit bit-identity
chizamd Sep 2, 2026
859a7a7
fix: prefer the tree's own vendored dependencies, and scope the XRT c…
chizamd Sep 2, 2026
074015b
fix: close the sixth instance of the skipped-work-reads-as-ran pattern
chizamd Sep 2, 2026
8973f66
fix: stop the dependency table from discarding every fallback library…
chizamd Sep 2, 2026
446f738
fix: put the product's own runtime libraries on PATH for Step 7
chizamd Sep 2, 2026
8ebdc6f
docs: propagate the fftw3l retraction into the file that still assert…
chizamd Sep 2, 2026
4260113
feat: implement DETERM-1 and DETERM-2 for run-to-run determinism
chizamd Sep 2, 2026
084e2c4
fix: seal every advertised bound name, and correct the run-to-run units
chizamd Sep 2, 2026
dd9c933
test: require a DETERM-3 baseline before a report may claim one
chizamd Sep 2, 2026
13f6116
feat: count corelib object creations where they happen
chizamd Sep 2, 2026
9c56937
perf: measure the Phi-4 AIE4 baseline, and build the DETERM-3 campaign
chizamd Sep 2, 2026
0ec3c4b
fix: trim the padded CPU SKU, and record the signed memory delta
chizamd Sep 2, 2026
d7f2dbe
fix: publish the DETERM-3 record even when a run in it failed a gate
chizamd Sep 2, 2026
00332b9
fix: do not call a tree with only build output 'dirty'
chizamd Sep 2, 2026
4768058
perf: record the Phi-4 AIE4 baseline
chizamd Sep 2, 2026
f55abc4
docs: say in the document that these are single-run figures
chizamd Sep 2, 2026
4f470cf
docs: re-render the baseline with the single-run caveat in place
chizamd Sep 2, 2026
21ad125
fix: measure the localisation, bracket the crossover, and keep the ev…
chizamd Sep 2, 2026
36e01e5
evidence: commit the DETERM-4 determinism records
chizamd Sep 2, 2026
3c532e8
docs: publish the bracket, the load breakdown and the measured baseline
chizamd Sep 2, 2026
26f2dcb
fix: one decision rule, verdicts that reach the exit code, the findin…
chizamd Sep 2, 2026
1d573e3
docs: publish the bracket margins and the model-body finding
chizamd Sep 2, 2026
a02a2cf
fix: stop the generator asserting more than the data attests
chizamd Sep 2, 2026
90300b0
docs: re-measure with the interleaving attested by the timeline
chizamd Sep 2, 2026
c682eb5
fix: put the bracket's instability where Task 14 will read it
chizamd Sep 2, 2026
5899c4d
fix: make every stability verdict carry its own words and its guidance
chizamd Sep 2, 2026
95d98c6
perf: calibrate Phi-4 continuation routing
chizamd Sep 2, 2026
98eddcc
test: route tests that survive the threshold changing
chizamd Sep 2, 2026
2f49427
evidence: forced-route goldens re-run at the calibrated threshold
chizamd Sep 2, 2026
e6c517b
test: the two document generators must not eat each other
chizamd Sep 2, 2026
85d81c6
fix: the cross-run check was assuming an identity it cannot verify
chizamd Sep 2, 2026
04deff3
fix: a found interpreter that cannot run is worse than none
chizamd Sep 2, 2026
9ccf8ef
fix: the retraction reached the code and the report, not the document
chizamd Sep 2, 2026
66e7cac
fix: the guard read the document but not the report
chizamd Sep 2, 2026
99850ee
test: accept Phi-4 AIE4 on xcomedusad-43
chizamd Sep 3, 2026
a3afaf5
test: make the acceptance record say what actually produced it
chizamd Sep 3, 2026
e7cd8b4
evidence: the Phi-4 AIE4 acceptance record from xcomedusad-43
chizamd Sep 3, 2026
39aefe1
docs: the usable Phi-4 AIE4 context limit is 4095, not 4096
chizamd Sep 3, 2026
f67ed00
fix: two places the acceptance record contradicted its own evidence
chizamd Sep 3, 2026
298960b
fix: the serialization probe was measuring a cold start
chizamd Sep 3, 2026
0b011f2
fix: the console driver hung when a reply ended in emoji
chizamd Sep 3, 2026
fe4bf04
evidence: the acceptance record after review round 1
chizamd Sep 3, 2026
81a01f7
fix: a document that cannot be rendered is a failed run, not a footnote
chizamd Sep 3, 2026
00fe757
evidence: acceptance record and document, both from the same run
chizamd Sep 3, 2026
94b63dc
fix: the gate carrying the branch's biggest finding was a proxy
chizamd Sep 3, 2026
fd6186b
docs: say that output degrades when generation reaches the cap
chizamd Sep 3, 2026
9a972cd
fix: the guard shipped as "verified offline" could not have worked
chizamd Sep 3, 2026
aa51b6d
fix: load the shared guards before anything can need them
chizamd Sep 3, 2026
5debf04
fix: the Step 8 gate could not fire, and the verifier could not see it
chizamd Sep 3, 2026
a975b63
docs: say what round 4 changed, and split the multi-turn finding in two
chizamd Sep 3, 2026
22e3b55
fix: the MSI shipped an empty AIE4 feature, and said so only in a war…
chizamd Sep 3, 2026
2f12a3e
test: prove the fatal-record concurrency properties with two real pro…
chizamd Sep 3, 2026
1b6db54
docs: say what this backend costs, and split the two long-generation …
chizamd Sep 3, 2026
77694e1
fix: the Inno staging script gained twenty bare-LF lines in a CRLF ba…
chizamd Sep 3, 2026
6a516f7
fix: the corelib version probe broke the product build under MSBuild
chizamd Sep 3, 2026
efb42e2
build: the Windows Boost linkage this branch changed, and the guard t…
chizamd Sep 3, 2026
87732ed
test: three packaged-runtime checks that could not fail
chizamd Sep 3, 2026
10fca14
fix: the acceptance record was not a page, and its verdict failed open
chizamd Sep 3, 2026
28a067f
fix: num_predict sentinels, and the irrevocable boundary past a compl…
chizamd Sep 3, 2026
314a635
docs: make the evidence reachable, and stop publishing a claim the da…
chizamd Sep 3, 2026
57a9c9a
chore: the four minors the review asked for
chizamd Sep 3, 2026
609909b
fix: finish the I14 retraction, and make four guards able to fail
chizamd Sep 3, 2026
3db247c
record: 314a6354's message makes a false charge against the branch re…
chizamd Sep 3, 2026
9041291
test: close I14 conditions 3 and 4 -- the untested three, and a dead …
chizamd Sep 3, 2026
f02115b
docs: an implementation overview and a caveats page, and five citatio…
chizamd Sep 3, 2026
5c93aad
docs: the LIB question is recorded, not an open action
chizamd Sep 4, 2026
a92c1f6
Remove the hardware campaign and its records from the branch
chizamd Sep 4, 2026
2979814
docs: record the ctest run on xcomedusad-43 and the configure it needs
chizamd Sep 4, 2026
0355fe4
docs: drop the acceptance record pages, cut the process narration
chizamd Sep 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# The AIE4 model overlays are shipped verbatim and their bytes are hashed.
#
# `model_list.json` records a byte size and a SHA-256 for every file under
# `src/model_overlays/`, and the installer copies those files as they sit in
# the checkout. Git's default `core.autocrlf=true` on Windows rewrites text
# files on checkout, so a fresh clone gets different bytes, a different size
# and a different hash from the ones recorded -- and the catalog then describes
# a file that does not exist on that machine.
#
# Measured on the AIE4 target: `test_model_catalog` failed on
# `record.at("size") == FileSize(path)` for the overlay files, on a clean
# checkout of the same commit that passes on a development box whose worktree
# happened to be LF. Nothing about the product was wrong; the checkout was.
#
# `-text` disables all end-of-line conversion for these paths in both
# directions, which is the only setting that makes the recorded hash a property
# of the commit rather than of the machine that cloned it.
src/model_overlays/** -text

# `corelib_phi4_manifest.json` is 274 KB -- 10,556 lines -- of generated
# per-initializer records, one entry per weight tensor in the ONNX. It is
# written by `tools/generate_phi4_corelib_manifest.py`, consumed by
# `phi4_corelib_manifest.cpp`, and read by no human: reviewing it line by line
# is not a thing anyone does or should do, and at that size it crowds out the
# rest of a diff.
#
# `-diff` makes git treat it as binary for display only. `git diff` reports
# that the file changed without printing its contents, and `git diff --numstat`
# reports `-` instead of a line count. NOTHING about the file's bytes changes:
# the size and SHA-256 recorded in `model_list.json` still describe it, and
# `git log -p -- <path>` with `--text` still shows the contents when someone
# genuinely needs them.
#
# The alternative considered and rejected was re-serialising it compactly to
# one line. That shrinks the diff the same amount but changes every byte,
# which invalidates the recorded hash and forces a matching edit to
# `model_list.json` -- churn in a checked artefact, to buy a presentation fix.
src/model_overlays/phi4-mini-it-aie4/corelib_phi4_manifest.json -text -diff

# The same reasoning for the three AIE4 benchmark records. Together they are
# ~5,900 lines of per-sample timing arrays emitted by the benchmark
# instrument. They are NOT dead evidence -- `test_phi4_continuation_calibration`
# reads all three, and they are the fixtures roughly fifteen of that module's
# assertions are written against, so the calibrator is tested against the real
# measurement rather than against invented numbers. They stay, and they stay
# byte-for-byte, because that test is green and depends on their contents.
#
# But nobody reviews a timing array line by line. `-diff` keeps them out of the
# rendered diff without touching a byte.
docs/docs/benchmarks/phi4_aie4_baseline.json -diff
docs/docs/benchmarks/phi4_aie4_baseline_task15_rerun.json -diff
docs/docs/benchmarks/phi4_aie4_crossover_history.json -diff
19 changes: 12 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
build
build_*/
.vscode
__pycache__
_site
.jekyll-metadata
*.csv
build
build_*/
# Not root-anchored: scratch build trees get dropped next to the sources they
# build, e.g. src/test/phi4_corelib_aie4/.build-task11/.
.build-*/
/src/build-*/
.vscode
__pycache__
_site
.jekyll-metadata
*.csv
/docs/superpowers/
Loading