mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 15:58:53 +00:00
Made by tools/layout/move_0216.py (the commit before this one) on db8e0be9c, the final code head of 0.2.16:
- 75 git mv (renames, so `git log --follow` and blame keep working; packaging/acceptance_matrix.md shows as delete + add because its links
changed too) and 3 removals: SETUP.bat, UPDATE.bat and update.sh (setup.py --update pulls the code now);
- 1,425 path edits in 307 files: root-relative paths in CI, Docker, .gitignore and the release scripts; Markdown links; Python and
Node joins from a root that moved with its folder; explicit edits for code that computes a root or names a moved path; tables of
repository paths inside tests.
engine/ holds what CMake builds (src, include, cmake, metal, sycl, spark, third_party, the C++ tests and benches). app/ is the desktop
app and its host (was apps/). terminal/ is the Terminal in the layout of the installed one (strata.py, setup.py, strata_cli,
strata_control, serve, bin, data, ref, crates, the Python tools and tests). docs/ has the documentation, docs/lang/ the translated
READMEs, docs/history and docs/bench-results. tools/ has the repository's own checks, packaging, docker, research and nix.
tests/core/test_tqp_ref.py is a pytest file and stays with the Python tests (terminal/tests/core/).
AGENTS.md, README.md, LICENSE, setup.sh and START-HERE.bat stay at the root.
No behaviour change: the same command lines, the same sources. For this head a replay of the script gave the same numbers and the path
scan (tools/layout/checks/path_scan.py) reports no hit; the suites and the builds run on this commit next.
DFlash2 acceptance experiment
Research tooling, not shipped with the app. It measures how many tokens per round the incoai DFlash2 drafter for Qwen3.8-Flash-Next would accept on Strata's quantized target. The measurement is offline, from hidden states the engine dumps. It is for developers who want to repeat or extend the experiment.
The scripts keep the paths of the original run (C:\dflash2-work on the development PC, C:\strata-test\dflash2 on
the test box). Edit the paths before you reuse them. The method and results are in the project's internal notes
and are not part of this tree.
Engine variables
Both are off unless set.
| Variable | Effect |
|---|---|
STRATA_TAP_FILE=<file> |
Writes pos, token, taps records. Verifier::record_window copies each verified row's completed layer output (the mean of the 4 hyper-connection streams, the quantity the drafter was trained on) and Verifier::run appends it. |
STRATA_TAP_LAYERS |
Layers to tap, default 5,15,25,35,45. Used with STRATA_TAP_FILE. |
STRATA_SPEC_T_CYCLE=1,2,...,8 |
CLI bench only. The verify window size cycles; the report line window cost (ms/round) gives the cost of each width. |
Scripts
| Script | Purpose |
|---|---|
mk_prompts.py |
Builds chat-template prompt ids with the server's own tokenizer and template. |
orch.py <prompt> <max_new> [gen,genf,genfm,tap] |
Drives run_one.ps1 on the test box: free generation (ids and MTP statistics), the same text with MTP only, and the teacher-forced tap dump with oracle drafts (--spec 8 --spec-oracle --spec-follow, a 2-token prompt, because a native pack never starts the speculative loop from a 1-token prompt). |
dflash2_ref.py |
Plain-torch port of z-lab's DFlash2DraftModel, with the target's embedding and head dequantized from the GGUF. test_port.py checks it against the original. |
run_eval.py |
Walks the tap file with a few block sizes. |
run_all2.py |
Evaluates every position, resumable: per-anchor correctness and the selector's confidences. |
analyze2.py, final_tables.py |
Moved to history/tools/dflash2: policies, and speed estimates from the measured window costs. They read result files that only exist in C:\dflash2-work on the original PC. |