Publish KLIK real-agent Coder390 and TURBO-Fable replacement study with all failures
Browse files- .gitignore +7 -0
- CITATION.cff +14 -0
- LICENSE +27 -0
- README.md +105 -0
- REPRODUCIBILITY.md +62 -0
- RESULTS.md +14 -0
- SHA256SUMS +29 -0
- code/export_results.py +40 -0
- code/make_figures.py +44 -0
- code/pi_measure.py +149 -0
- code/public_evidence.py +41 -0
- code/requirements.txt +3 -0
- code/test_export.py +27 -0
- code/test_pi_measure.py +156 -0
- code/test_public_evidence.py +29 -0
- paper/figures/task-wall.pdf +0 -0
- paper/figures/task-wall.png +3 -0
- paper/figures/visible-rates.pdf +0 -0
- paper/figures/visible-rates.png +3 -0
- paper/klik-paper.sty +63 -0
- paper/main.pdf +0 -0
- paper/main.tex +139 -0
- paper/results-table.tex +11 -0
- protocol.md +26 -0
- results/processed/artifact-environment.json +13 -0
- results/processed/provenance.json +92 -0
- results/processed/runs.json +156 -0
- results/processed/vision-fixture.png +3 -0
- results/processed/vision.json +78 -0
- tools/xelatex +19 -0
.gitignore
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__pycache__/
|
| 2 |
+
*.pyc
|
| 3 |
+
.DS_Store
|
| 4 |
+
*.log
|
| 5 |
+
*.synctex.gz
|
| 6 |
+
*.aux
|
| 7 |
+
*.out
|
CITATION.cff
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cff-version: 1.2.0
|
| 2 |
+
message: "Cite the paper and pinned artifact revision. Results are configuration-level descriptive tests, not a global model ranking."
|
| 3 |
+
title: "Fast on the Card, Slow in the Agent: A Vision and Speculation Study of Coder390 and TURBO-Fable on Apple Silicon"
|
| 4 |
+
authors:
|
| 5 |
+
- family-names: Xu
|
| 6 |
+
given-names: Chengyi
|
| 7 |
+
orcid: "https://orcid.org/0009-0008-1277-6670"
|
| 8 |
+
- name: KLIK team
|
| 9 |
+
version: 1.0.0
|
| 10 |
+
date-released: 2026-10-09
|
| 11 |
+
type: software
|
| 12 |
+
url: "https://huggingface.co/datasets/ChengyiX/coder390-fable-m4max-agent-study"
|
| 13 |
+
license: MIT
|
| 14 |
+
abstract: "AI-assisted experimental report, sanitized evidence and measurement code for thinking-enabled local model replacement trials. Code MIT, manuscripts/data CC BY 4.0; no model weights."
|
LICENSE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Artifact licensing notice
|
| 2 |
+
|
| 3 |
+
Original code in code/ and tools/ is MIT, as below. Original manuscript text,
|
| 4 |
+
protocol documents, generated figures, synthetic vision fixture and sanitized
|
| 5 |
+
numerical evidence are CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
|
| 6 |
+
No model weights or third-party source trees are distributed. Referenced model
|
| 7 |
+
and runtime licenses remain separate. No unrestricted rights to third-party
|
| 8 |
+
checkpoints are granted by this artifact.
|
| 9 |
+
|
| 10 |
+
MIT License
|
| 11 |
+
Copyright (c) 2026 Chengyi Xu and KLIK team
|
| 12 |
+
|
| 13 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 14 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 15 |
+
the Software without restriction, including without limitation the rights to
|
| 16 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
| 17 |
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
| 18 |
+
subject to the following conditions:
|
| 19 |
+
The above copyright notice and this permission notice shall be included in all
|
| 20 |
+
copies or substantial portions of the Software.
|
| 21 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 22 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 23 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 24 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 25 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 26 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 27 |
+
SOFTWARE.
|
README.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: klik-research-artifact
|
| 4 |
+
license_link: LICENSE
|
| 5 |
+
pretty_name: Coder390 and TURBO-Fable on Apple Silicon — Real-Agent Replacement Study
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- apple-silicon
|
| 10 |
+
- local-inference
|
| 11 |
+
- agent-evaluation
|
| 12 |
+
- qwen
|
| 13 |
+
- ornith
|
| 14 |
+
- speculative-decoding
|
| 15 |
+
- vision
|
| 16 |
+
- reproducibility
|
| 17 |
+
---
|
| 18 |
+
# Fast on the Card, Slow in the Agent
|
| 19 |
+
|
| 20 |
+
## A Vision and Speculation Study of Coder390 and TURBO-Fable on Apple Silicon
|
| 21 |
+
|
| 22 |
+
**Chengyi Xu and KLIK team — KLIK Research, October 2026**
|
| 23 |
+
|
| 24 |
+
[](paper/main.pdf)
|
| 25 |
+
[](paper/main.tex)
|
| 26 |
+
[]()
|
| 27 |
+
|
| 28 |
+
An AI-assisted experimental deployment report comparing two requested Qwen3.8-27B replacements against an installed normal/abliterated Ornith-1.5-35B-A3B pair on **Apple M4 Max, 40-core GPU, 64 GiB unified memory**.
|
| 29 |
+
|
| 30 |
+
**Public hosting is not peer review or journal acceptance. No DOI is claimed. No model weights are redistributed.**
|
| 31 |
+
|
| 32 |
+
## Download the paper
|
| 33 |
+
|
| 34 |
+
- [Paper PDF](paper/main.pdf)
|
| 35 |
+
- [LaTeX source](paper/main.tex), using the same `klik-paper.sty` style as earlier KLIK reports
|
| 36 |
+
- [Numerical results](results/processed/runs.json)
|
| 37 |
+
- [Pinned model/runtime provenance](results/processed/provenance.json)
|
| 38 |
+
- [Vision probe results](results/processed/vision.json)
|
| 39 |
+
|
| 40 |
+
## Main result: do not replace the working deployment yet
|
| 41 |
+
|
| 42 |
+
Both requested candidates loaded with thinking and vision; **all seven small llama.cpp vision probes answered a known diagram correctly**. That did not establish coding-agent usability.
|
| 43 |
+
|
| 44 |
+
| Model/configuration | Whole task | Final visible stream | Full final-cycle visible rate | Repair result |
|
| 45 |
+
|---|---:|---:|---:|---|
|
| 46 |
+
| Installed normal Ornith, thinking low | 218.08 s | 30.57 tok/s | 23.86 tok/s | Independent gate + 275 tests passed, 1 skipped |
|
| 47 |
+
| Installed abliterated Ornith, thinking low | 204.68 s | 32.33 tok/s | 28.38 tok/s | Independent gate + 275 tests passed, 1 skipped |
|
| 48 |
+
| Coder390, five tested configurations | ~900 s each | Unknown: no completed final answer | Unknown | Five timeouts; injected defect remained |
|
| 49 |
+
| Fable, b11036 MTP4 | 889.64 s | 4.32 tok/s | 2.44 tok/s | Independent gate + 274 tests passed, 1 skipped |
|
| 50 |
+
| Fable, b11538 MTP2 | 892.05 s | 8.38 tok/s | 6.22 tok/s | Independent gate + 274 tests passed, 1 skipped |
|
| 51 |
+
| Fable, b11538 no speculation | 795.80 s | 6.50 tok/s | 3.15 tok/s | Independent gate + 274 tests passed, 1 skipped |
|
| 52 |
+
|
| 53 |
+
The task was a **real Pi repository repair**, routed through Magpie with normal extensions and tools, in a fresh isolated clone for every run. Initial requests were approximately **25k tokens**, not blank prompts. A deliberately injected regression failed before the task; the parent checked the repaired source, independent gate, and full suite afterward.
|
| 54 |
+
|
| 55 |
+
These are **configuration-level descriptive results**, not a causal ranking of model intelligence. There is one trial per configuration, different sampling and engines, and variable workstation load. Candidate cold first-turn waits of roughly **365–579 seconds** dominated the deadline. Coder390 may complete with different runtime/settings or more time; these failures are not proof that it cannot solve the task.
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
|
| 59 |
+

|
| 60 |
+
|
| 61 |
+
## Important compatibility findings
|
| 62 |
+
|
| 63 |
+
- The publishers' headline speed measurements used **NVIDIA RTX PRO 6000 / RTX 5090**, not this Mac.
|
| 64 |
+
- Coder390's static FP8 headline scores differ from its Q4 GGUF table. We did not independently rerun GPQA/MMLU/LCB.
|
| 65 |
+
- Author recipe `-c 409600 -np 4` means **102400 tokens per slot**, not 409k per individual session. Native config declares262144 positions.
|
| 66 |
+
- SGLang does support Apple MLX, but its inspected **in-tree DFLASH handler excludes MPS**. No unsupported SGLang+DFlash2 result is invented.
|
| 67 |
+
- Native Splash admits only about208889 context tokens for Coder390 at28GiB;32GiB admits262144 startup. That is allocation readiness, **not actual256k qualification**.
|
| 68 |
+
- The tested Coder390 native DFlash2 path was **text-only**, using a compatible BF16 draft, not the author's FP8 draft or requested Q8 projector. Vision proof from llama.cpp does not transfer to it.
|
| 69 |
+
- The existing native importer rejected Fable's BF16 output head. No hidden requantization or unverified kernel patch was used.
|
| 70 |
+
- MTP acceptance is not whole-task speed. In Fable's measured newer-build runs, no-MTP completed the whole task sooner than MTP2 despite lower final-stream speed.
|
| 71 |
+
|
| 72 |
+
## Reproducibility and privacy
|
| 73 |
+
|
| 74 |
+
See [REPRODUCIBILITY.md](REPRODUCIBILITY.md), [RESULTS.md](RESULTS.md), and [protocol.md](protocol.md).
|
| 75 |
+
|
| 76 |
+
The public ledger is a whitelist-only export. **Private repository source, raw source-bearing transcripts, tool arguments/results, secrets and local user paths are withheld.** The original private task cannot be reproduced byte-for-byte publicly. Using your own authorized repository is a new method replication, not identical evidence.
|
| 77 |
+
|
| 78 |
+
No failed run is dropped. `null` means unknown, not zero. Visible-stream rates exclude preceding reasoning/prefill; full final-cycle rates include waiting and reasoning. Neither is whole-task visible throughput. Tool-only parser bursts are not decode evidence.
|
| 79 |
+
|
| 80 |
+
Selected method tests:
|
| 81 |
+
|
| 82 |
+
```sh
|
| 83 |
+
cd code
|
| 84 |
+
python3 -m unittest test_export test_pi_measure test_public_evidence
|
| 85 |
+
python3 make_figures.py
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
The tests validate export/privacy and measurement logic, not model inference. Figures and the LaTeX numerical table are regenerated from all ten public ledger rows.
|
| 89 |
+
|
| 90 |
+
## Published checkpoints evaluated
|
| 91 |
+
|
| 92 |
+
- [nerkyor Coder390 EfficientThink](https://huggingface.co/nerkyor/Qwen3.8-27B-Coder390-EfficientThink-Opus5.5-GPT6Astra-Grok4.7-DSV4Pro-K3-SFT-RLOO-MTP-DFlash2)
|
| 93 |
+
- [DavidAU TURBO-Fable Cold-Fusion](https://huggingface.co/DavidAU/Qwen3.8-27B-TURBO-Fable-Cold-Fusion-735-882-Heretic-Uncensored-NEO-CODER-MAX-MTP-GGUF)
|
| 94 |
+
- [Normal Ornith GGUF](https://huggingface.co/ornith-ai/Ornith-1.5-35B-A3B-GGUF)
|
| 95 |
+
- [Separate abliterated Ornith GGUF](https://huggingface.co/PocketAiHub/Ornith-1.5-35B-A3B-Abliterated-GGUF)
|
| 96 |
+
|
| 97 |
+
Full revisions, hashes, actual formats and publisher-evidence scope are in the provenance ledger. Terms such as "distilled," "uncensored," and "Heretic" describe publisher lineage, not proprietary-model identity or a guarantee of particular behavior. No harmful-generation/refusal benchmark was performed.
|
| 98 |
+
|
| 99 |
+
## Outcome and disclosures
|
| 100 |
+
|
| 101 |
+
Neither candidate was promoted or permanently registered in Magpie. Temporary test providers were removed and the prior service restored. Old Ornith weights were preserved. No cloud defaults or image workflow were changed. No monitors or delegated agents were used.
|
| 102 |
+
|
| 103 |
+
AI tools materially assisted research, code, experiments, source comparison, analysis and drafting. No independent human manuscript review, funding/conflict attestation, contributor-role declaration or peer acceptance is asserted. Attribution follows the project owner's requested authorship.
|
| 104 |
+
|
| 105 |
+
Original code is MIT; original manuscript and sanitized numerical evidence are CC BY4.0. See [LICENSE](LICENSE) for mixed-artifact terms. Referenced models/software retain their own licenses. Use [CITATION.cff](CITATION.cff) to cite this artifact and the specific published revision.
|
REPRODUCIBILITY.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Reproducibility
|
| 2 |
+
|
| 3 |
+
## Artifact contents and limits
|
| 4 |
+
|
| 5 |
+
This package contains the PDF/LaTeX, generated plots/table, numerical trial ledger, hashes/provenance, a neutral known-ground-truth vision fixture, and selected measurement/export code. It does not include model weights, private repository source, full provider payloads, source-bearing chats, or credential-bearing local launch scripts.
|
| 6 |
+
|
| 7 |
+
The original task ran in isolated copies of a private Klik repository at commit `45f075409a47aa8834c3b166bbb57b64194ca13a`. Withheld inputs prevent byte-identical public reproduction of this private task. The following protocol is a method-replication guide; substituting your authorized repository is a new experiment.
|
| 8 |
+
|
| 9 |
+
## Download integrity
|
| 10 |
+
|
| 11 |
+
Read `results/processed/provenance.json`. Use Hugging Face CLI to download the exact target/projector at the recorded revision. Verify both exact byte size and full SHA-256 before loading. Publisher availability and filenames may change; pinned commits and hashes are the evidence identity.
|
| 12 |
+
|
| 13 |
+
## Runtime identity
|
| 14 |
+
|
| 15 |
+
- llama.cpp b11036: recorded version0.4.1-dev, abbreviated commit911f6cdc8.
|
| 16 |
+
- llama.cpp b11538: version0.6.0-dev, commit79e2e74eb; official macOS-arm64 release archive and extracted binary SHA in provenance.json.
|
| 17 |
+
- Splash: commitc64a578fcfaa059023a2ca57230d4aead134b73b, local patches acceptingQ4_KGDNalpha/beta and512-rowprefill. See earlier public artifact for method context. This package does not imply that an unpatched arbitrary Splash release is equivalent.
|
| 18 |
+
- SGLang: source compatibility inspected at72eab59bf6395c342a60967ec2a31761c505e151. NoSGLanginference trial was run; do not invent one from the documentation.
|
| 19 |
+
|
| 20 |
+
## Configuration
|
| 21 |
+
|
| 22 |
+
llama.cpp candidate: fullMetaloffload, FlashAttentionon, Q8_0K/Vcache, plain `--load-mode none`, one262144slot, `--jinja`, suppliedmmproj, thinkingon/effortlow, reasoning budget-1, temperature0.6/top_p0.95/top_k20. Run `--spec-type none` or `--spec-type draft-mtp --spec-draft-n-max N`, never combine algorithms. Common trials used GGML_METAL_NO_RESIDENCY=1; one labelled b11036MTP4 trial removed that override. Record exact installed `--help` and version, not merely an assumed flag.
|
| 23 |
+
|
| 24 |
+
NativeCoder390DFlash2: architecture-compatible local BF16denseQwen draft,32GiBMetal/8GiBdiskcache/512-rowprefill, text-only262144. It does not load theQ8projector or the author'sFP8SGLangdraft. Native28GiBstartup is recorded as rejected at208889capacity; do not force it.
|
| 25 |
+
|
| 26 |
+
InstalledOrnith baselines: sparse35B/3Btargets using nativeSplash/DFlash2,28GiBMetal/8GiBSSD/512rows, lowthinking, backenddefaults temperature1.0/top_p0.95. Sampling/runtime/architecture differences are explicit confounders. Do not describe this as a matched fine-tuning-only comparison.
|
| 27 |
+
|
| 28 |
+
Magpie is an additional gateway hop to the local backend. Candidate providers were temporary; they were removed after every run. Existing cloud/default selection was preserved. No removed budget hook or task-specific JSON constraint was re-enabled.
|
| 29 |
+
|
| 30 |
+
## Fixed task and gates
|
| 31 |
+
|
| 32 |
+
`protocol.md` contains the task instruction. In your own isolated checkout, introduce a clearly disclosed cap inversion in a bounded-retry implementation. Prove the independent gate fails before model work. Verify that the installed Python module is imported from that checkout rather than a shared reference environment. The gate must cover delay counts, exponential growth, maximum caps, an over-cap initial delay, one-attempt behavior, and validation/status invariants.
|
| 33 |
+
|
| 34 |
+
Give Pi ordinary tools and instructions, not an empty system prompt. Use the same task across configurations and fresh clones. Record repository revision and diffs. Parent checks should rerun independent gates/full suite even after a model timeout; final text saying "passed" is not evidence of a repair.
|
| 35 |
+
|
| 36 |
+
Task deadline:900seconds from Pi invocation, not a900secondgeneration limit. Timed-out trials retain partial work and are not successes. A pending request must be cancelled and the owned test server shut down before restoring another engine. Never stop unrelated user jobs.
|
| 37 |
+
|
| 38 |
+
## Vision probe
|
| 39 |
+
|
| 40 |
+
Use `results/processed/vision-fixture.png` (384x256). Expected printed textVISION42; two blue circles; red rectangle. Send it as an image_url data URI with thinking low and max_completion_tokens2048. Inspect the visible answer separately from reasoning content. Correctness on one diagram is not a general vision score. The native text-only run is explicitly untested for vision.
|
| 41 |
+
|
| 42 |
+
## Measurement
|
| 43 |
+
|
| 44 |
+
The harness timestamps PiJSONevents with a monotonic clock. It closes stdin for one-shot tests and uses a separate process group for bounded cancellation. For completed final text, retokenize through the target tokenizer with the same special-token settings; identify its first nonempty text_delta and message_end. Final-visible streaming excludes earlier thinking/prefill. Full final-cycle rate uses turn_start to message_end and includes any setup before stream creation. Whole task includes all turns/tools/waiting. Counts for reasoning/tool syntax are not silently reused as visible text.
|
| 45 |
+
|
| 46 |
+
ToolUse bursts have unknown client decodeTPS. Tiny buffered windows below0.1s are not accepted speed evidence. Unknowns are null, not zero. Record errors, retries, timeouts, failures, host memory/swap and cold/warm prefix counts.
|
| 47 |
+
|
| 48 |
+
## Regenerate public outputs
|
| 49 |
+
|
| 50 |
+
```sh
|
| 51 |
+
cd code
|
| 52 |
+
python3 -m unittest test_export test_pi_measure test_public_evidence
|
| 53 |
+
python3 make_figures.py
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
Figure generation requires matplotlib; recorded publication environment and dependency versions are under results/processed/artifact-environment.json. Figures/table derive from all10publicruns. Do not replace the ledger with selected successes.
|
| 57 |
+
|
| 58 |
+
The host build uses the existing LaTeX skill compile.py driver and the explicittools/xelatexadapter toTectonic--untrusted, with shell escape disabled. A conventional trusted build may use XeLaTeX/latexmk with shell escape disabled. The adapter is clearly labelled, not pretending a systemTeXdistribution is installed. Source/table/figures should be compiled together.
|
| 59 |
+
|
| 60 |
+
## Privacy and licenses
|
| 61 |
+
|
| 62 |
+
Export only whitelisted scalar metrics. The private comparison-reviewed file also contains tool error excerpts and local paths: do not upload it directly. Public code's fixture boundaries are synthetic; they are not private repository excerpts. No publisher gallery, third-party full source tree or model weights are bundled. SeeLICENSE for originalcode/manuscript/data terms. Public hosting is notpeerreview.
|
RESULTS.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Results and claim boundaries
|
| 2 |
+
|
| 3 |
+
- Eight candidate configurations and two installed thinking-enabled baselines.
|
| 4 |
+
- Coder390:0/5completedrepairs within900s; nofinalvisible-outputTPS.
|
| 5 |
+
- TURBO-Fable:3/3completedrepair/gate/fullsuite,795.80–892.05s; finalvisible4.32–8.38tok/s.
|
| 6 |
+
- Ornithnormal:218.08s,30.57visible-stream/23.86final-cycle;275passed/1skipped.
|
| 7 |
+
- Ornithabliterated:204.68s,32.33visible-stream/28.38final-cycle;275passed/1skipped.
|
| 8 |
+
- Vision:7known-diagramprobes passed;1nativeDFlash2text-only rununtestedforvision.
|
| 9 |
+
- SGLangAppleMLXexists;inspectedin-treeDFLASHrejectsMPS. NoSGLangbenchmark.
|
| 10 |
+
- NativeCoder39028GiBstartuprejects262k;32GiBready. Noactual256kcandidatequalification.
|
| 11 |
+
- One trial perconfiguration;differentengine/architecture/quant/sampling andhostload. No causal/globalintelligence ranking oruniversalTPSfloor.
|
| 12 |
+
- Candidateprovidersremoved;productionOrnithpreserved. Alltimeouterror/failure recordsretained inpublicledger,private traceswithheld.
|
| 13 |
+
|
| 14 |
+
See paper/main.pdf and results/processed/runs.json for per-run values and REPRODUCIBILITY.md for definitions.
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
f290ec11d7b0798cd47e2b074f57856ba7cdc5ef489f33134bdb3a7bb20bc56f .gitignore
|
| 2 |
+
5fa8697250627d89be3de5a2b082a76ee793f19d1f96f900f9901390b2afc466 CITATION.cff
|
| 3 |
+
53a646895f362d51afbc31b430b05548c8a9afa1947529e6baeb2ffaacce7ca3 LICENSE
|
| 4 |
+
29be0f41b8d4c962afa5a1ebab78f1e14a0b29519346017a43bdd46cca90816a README.md
|
| 5 |
+
a0239fa44dda85931e370fd37b825e8a287f3a6d2e1dbbceed366c16f0c67f5b REPRODUCIBILITY.md
|
| 6 |
+
fe55ac9d2571a5252bf2856c172a9827dfee5dfde26a83122aede89b80ee319f RESULTS.md
|
| 7 |
+
b1cf8c8db36eb508896b748bc1c945872cf1bba9962f5e55b703ee6bd8133ff9 code/export_results.py
|
| 8 |
+
f74a94160cc7897e3479ac4266ae2aabfb0f033afe2275272def07814b17073d code/make_figures.py
|
| 9 |
+
3f63c9340acacf773d9c3b02183fe7f3b4fc59a939e5ef48537c0e9ff05d9d59 code/pi_measure.py
|
| 10 |
+
bd69b491ed72c0fa76e66a7cb8e14581c19adb98e1a97e334676ee6340928ffe code/public_evidence.py
|
| 11 |
+
6403a7f4697824fda6dfcaf75de2a6c89dc70d402ce3fb87c97ce72aeda6ef8d code/requirements.txt
|
| 12 |
+
a85dd415f9120a44d05f9cef131a7b1e5b2c8f54101cc73315a97d816e151bca code/test_export.py
|
| 13 |
+
e6d3879f633fb8f6c58215803c94894babfb80f80a3382729dadc4dbb3ed10e3 code/test_pi_measure.py
|
| 14 |
+
03b958c717724e8f0c17705efcce9a0206c0d528cf3d05d3924bac54326d4f24 code/test_public_evidence.py
|
| 15 |
+
f6753357ec81220f112a6c031566b84affadd7365b3c4a10c5ef1d0621477649 paper/figures/task-wall.pdf
|
| 16 |
+
e8f47b554e0d788247b56976732d367ff08e30c982f34dcc999a1f38b79d0c1b paper/figures/task-wall.png
|
| 17 |
+
acc1e9c3a764177eda29213dd1b8ce1ca3b9994646b5acf56907b98c454168b0 paper/figures/visible-rates.pdf
|
| 18 |
+
73a8f9ebc335a4751ccbf7dd92f491721804c94cd4f328f375df8d767c49611a paper/figures/visible-rates.png
|
| 19 |
+
b35af2c949c67321489dbe6fd174c890e20197cf792a84f58ed00e5f940086cf paper/klik-paper.sty
|
| 20 |
+
134b2be87992f381575df6cf597880f2bbec58f9ddb8870549f2d11a156487bc paper/main.pdf
|
| 21 |
+
6c637023adea971d9c9f5ebb87543db4b7a05d216b77e9c0310f92d1e3cfa63a paper/main.tex
|
| 22 |
+
53030101094440be3a5a472e82f0279ebc2797902ce3f350941e7860dac55872 paper/results-table.tex
|
| 23 |
+
4fa8e065458afda23c424e0cb71a2629469759637388a967f91cf21c0c333b05 protocol.md
|
| 24 |
+
568b7f2788a7d53cb8bf3b8fcbfaa6349e0056db848ddd275e7d1616d201bed3 results/processed/artifact-environment.json
|
| 25 |
+
4c32c0c39c69aaee7f0ef8418061487876bcf093d4b9e0b31171830f9e54b1ab results/processed/provenance.json
|
| 26 |
+
4b9beee4c1d7c467809ea89aeebc3bbb8cbd8b36713a282c5bcb3c7ccfd01b01 results/processed/runs.json
|
| 27 |
+
e56d6a2dae70d53ee0c1f29584dab845f8d305562387d4e6dd836350ff109bef results/processed/vision-fixture.png
|
| 28 |
+
358d74f3bd7281f64bc707bfc03353c88420d56b551db1546afda724d1b76429 results/processed/vision.json
|
| 29 |
+
2a88b28832d8267840ff67429d50e1bceff307876aee808bcd7a4b0986b49411 tools/xelatex
|
code/export_results.py
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Whitelist-only export of descriptive model/runtime trial metrics."""
|
| 2 |
+
import json
|
| 3 |
+
import math
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
import re
|
| 6 |
+
import sys
|
| 7 |
+
|
| 8 |
+
NUMBERS=['elapsed_s','initial_input_tokens','initial_ttft_s','tool_calls','tool_errors','visible_stream_tps','visible_cycle_tps']
|
| 9 |
+
FLAGS=['completed','gate_pass','full_suite_pass','repair_verified']
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def public_run(source):
|
| 13 |
+
identifier=source.get('run_id')
|
| 14 |
+
if not isinstance(identifier,str) or not re.fullmatch(r'[A-Za-z0-9_-]{1,100}',identifier):
|
| 15 |
+
raise ValueError('Invalid run identifier')
|
| 16 |
+
out={'run_id':identifier}
|
| 17 |
+
for key in NUMBERS:
|
| 18 |
+
value=source.get(key)
|
| 19 |
+
if value is not None and (type(value) not in (int,float) or not math.isfinite(value)):
|
| 20 |
+
raise ValueError('Invalid numeric metric')
|
| 21 |
+
out[key]=value
|
| 22 |
+
for key in FLAGS:
|
| 23 |
+
value=source.get(key)
|
| 24 |
+
if value is not None and type(value) is not bool:raise ValueError('Invalid boolean metric')
|
| 25 |
+
out[key]=value
|
| 26 |
+
return out
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def main():
|
| 30 |
+
source=Path(sys.argv[1]);dest=Path(sys.argv[2]);raw=json.loads(source.read_text())
|
| 31 |
+
result={'schema_version':1,'scope':'Single-run-per-configuration descriptive task measurements; failed/timeout records retained. No private source/transcript is exported.',
|
| 32 |
+
'prompt_sha256':raw['prompt_sha256'],'repository_revision':raw['repository_revision'],
|
| 33 |
+
'candidate_sampling':raw['candidate_sampling'],
|
| 34 |
+
'baseline_sampling_caveat':raw['baseline_sampling_caveat'],
|
| 35 |
+
'actual256k_candidate_proof':False,'production_replaced':False,
|
| 36 |
+
'runs':[public_run(row) for row in raw['runs']]}
|
| 37 |
+
dest.parent.mkdir(parents=True,exist_ok=True);dest.write_text(json.dumps(result,indent=2)+'\n')
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
if __name__=='__main__':main()
|
code/make_figures.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Render paper figures and tables directly from the public numerical ledger."""
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
import json
|
| 4 |
+
import matplotlib
|
| 5 |
+
matplotlib.use('Agg')
|
| 6 |
+
import matplotlib.pyplot as plt
|
| 7 |
+
|
| 8 |
+
ROOT=Path(__file__).resolve().parents[1]
|
| 9 |
+
rows=json.loads((ROOT/'results/processed/runs.json').read_text())['runs']
|
| 10 |
+
labels={
|
| 11 |
+
'ornith-normal-thinking-repair':'Ornith normal',
|
| 12 |
+
'ornith-uncensored-thinking-repair':'Ornith abliterated',
|
| 13 |
+
'coder390-none-0-repair':'Coder390: none / b11036',
|
| 14 |
+
'coder390-mtp-4-repair':'Coder390: MTP4 / b11036',
|
| 15 |
+
'coder390-mtp-4-wired-repair':'Coder390: MTP4 / residency',
|
| 16 |
+
'coder390-mtp-4-b11538-repair':'Coder390: MTP4 / b11538',
|
| 17 |
+
'coder390-dflash-0-repair':'Coder390: DFlash2 / Splash',
|
| 18 |
+
'fable-mtp-4-repair':'Fable: MTP4 / b11036',
|
| 19 |
+
'fable-mtp-2-b11538-repair':'Fable: MTP2 / b11538',
|
| 20 |
+
'fable-none-0-b11538-repair':'Fable: none / b11538'}
|
| 21 |
+
order=list(labels);byid={r['run_id']:r for r in rows};ordered=[byid[n] for n in order]
|
| 22 |
+
plt.rcParams.update({'font.size':9,'axes.spines.top':False,'axes.spines.right':False,'pdf.fonttype':42})
|
| 23 |
+
fig,ax=plt.subplots(figsize=(8.6,4.4))
|
| 24 |
+
colors=['#1f4e79' if r['run_id'].startswith('ornith') else '#b7443d' if not r['completed'] else '#cb983b' for r in ordered]
|
| 25 |
+
y=list(range(len(ordered)));ax.barh(y,[r['elapsed_s'] for r in ordered],color=colors)
|
| 26 |
+
ax.set_yticks(y,[labels[r['run_id']] for r in ordered]);ax.invert_yaxis();ax.set_xlabel('Whole-task elapsed (seconds)');ax.set_xlim(0,1080)
|
| 27 |
+
for i,r in enumerate(ordered):ax.text(r['elapsed_s']+10,i,f"{r['elapsed_s']:.0f}s"+(' · timeout' if not r['completed'] else ''),va='center',fontsize=8)
|
| 28 |
+
ax.axvline(900,color='#777',linestyle='--',linewidth=.8);fig.tight_layout();fig.savefig(ROOT/'paper/figures/task-wall.pdf');fig.savefig(ROOT/'paper/figures/task-wall.png',dpi=180);plt.close(fig)
|
| 29 |
+
completed=[r for r in ordered if r['completed']]
|
| 30 |
+
fig,ax=plt.subplots(figsize=(8.6,3.3));positions=list(range(len(completed)));width=.36
|
| 31 |
+
ax.bar([p-width/2 for p in positions],[r['visible_stream_tps'] for r in completed],width,label='Visible streaming',color='#1f4e79')
|
| 32 |
+
ax.bar([p+width/2 for p in positions],[r['visible_cycle_tps'] for r in completed],width,label='Visible / full final-cycle time',color='#cb983b')
|
| 33 |
+
ax.set_xticks(positions,[labels[r['run_id']].replace(': ','\n') for r in completed],fontsize=8)
|
| 34 |
+
ax.set_ylabel('Visible tokens/s');ax.axhline(20,color='#777',linestyle='--',linewidth=.8);ax.legend(frameon=False);fig.tight_layout();fig.savefig(ROOT/'paper/figures/visible-rates.pdf');fig.savefig(ROOT/'paper/figures/visible-rates.png',dpi=180);plt.close(fig)
|
| 35 |
+
with (ROOT/'paper/results-table.tex').open('w') as f:
|
| 36 |
+
for r in ordered:
|
| 37 |
+
elapsed=f"{r['elapsed_s']:.2f}"
|
| 38 |
+
stream=f"{r['visible_stream_tps']:.2f}" if r['visible_stream_tps'] is not None else '--'
|
| 39 |
+
cycle=f"{r['visible_cycle_tps']:.2f}" if r['visible_cycle_tps'] is not None else '--'
|
| 40 |
+
outcome='Pass' if r['repair_verified'] and r['completed'] else 'Timeout'
|
| 41 |
+
name=labels[r['run_id']].replace('/','/')
|
| 42 |
+
f.write(f'{name} & {elapsed} & {r["initial_ttft_s"]:.2f} & {stream} & {cycle} & {outcome}\\\\\n')
|
| 43 |
+
with (ROOT/'paper/results-table.tex').open('a') as f:f.write('\\bottomrule\n')
|
| 44 |
+
print('Rendered two figures and numerical table from all ten runs.')
|
code/pi_measure.py
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Measure timestamped Pi JSON events without conflating chunks with tokens."""
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
import argparse
|
| 4 |
+
import json
|
| 5 |
+
import os
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
import selectors
|
| 8 |
+
import signal
|
| 9 |
+
import subprocess
|
| 10 |
+
import time
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def summarize(rows, elapsed, returncode, timed_out):
|
| 14 |
+
turns, current = [], None
|
| 15 |
+
turn_start = None
|
| 16 |
+
tool_calls, tool_errors, compactions, retries = 0, 0, 0, 0
|
| 17 |
+
settled = False
|
| 18 |
+
for row in rows:
|
| 19 |
+
t, e = row['t_s'], row['event']
|
| 20 |
+
kind = e.get('type')
|
| 21 |
+
if kind == 'turn_start':
|
| 22 |
+
turn_start = t
|
| 23 |
+
elif kind == 'message_start' and e.get('message', {}).get('role') == 'assistant':
|
| 24 |
+
current = {'start_s': t, 'turn_start_s': turn_start, 'first_delta_s': None, 'text_chars': 0,
|
| 25 |
+
'thinking_chars': 0, 'tool_chars': 0}
|
| 26 |
+
elif kind == 'message_update' and current is not None:
|
| 27 |
+
part = e.get('assistantMessageEvent', {})
|
| 28 |
+
delta = part.get('delta')
|
| 29 |
+
tag = part.get('type')
|
| 30 |
+
field = {'text_delta':'text_chars','thinking_delta':'thinking_chars','toolcall_delta':'tool_chars'}.get(tag)
|
| 31 |
+
if field and isinstance(delta, str) and delta:
|
| 32 |
+
if current['first_delta_s'] is None: current['first_delta_s'] = t
|
| 33 |
+
current[field] += len(delta)
|
| 34 |
+
elif kind == 'message_end' and e.get('message', {}).get('role') == 'assistant':
|
| 35 |
+
msg = e['message']
|
| 36 |
+
if current is None:
|
| 37 |
+
current = {'start_s':None, 'first_delta_s':None}
|
| 38 |
+
usage = msg.get('usage', {})
|
| 39 |
+
tokens = usage.get('output')
|
| 40 |
+
tokens = tokens if isinstance(tokens,(int,float)) and tokens > 0 else None
|
| 41 |
+
first, start = current['first_delta_s'], current['start_s']
|
| 42 |
+
decode = t-first if first is not None else None
|
| 43 |
+
duration = t-start if start is not None else None
|
| 44 |
+
cycle_start = current.get('turn_start_s')
|
| 45 |
+
cycle = t-cycle_start if cycle_start is not None else None
|
| 46 |
+
current.update(end_s=t, usage=usage, output_tokens=tokens, stop_reason=msg.get('stopReason'),
|
| 47 |
+
inference_cycle_s=cycle,
|
| 48 |
+
inference_cycle_tps=tokens/cycle if tokens and cycle and cycle>0 else None,
|
| 49 |
+
request_scope='assistant stream start to end; inference_cycle includes earlier turn/preflight',
|
| 50 |
+
ttft_s=first-start if first is not None and start is not None else None,
|
| 51 |
+
request_s=duration, decode_s=decode,
|
| 52 |
+
decode_tps=tokens/decode if tokens and decode is not None and decode>=.1 and msg.get('stopReason')!='toolUse' else None,
|
| 53 |
+
request_tps=tokens/duration if tokens and duration and duration>0 else None,
|
| 54 |
+
decode_timing_warning=('tool_parser_timing_not_backend_decode' if msg.get('stopReason')=='toolUse'
|
| 55 |
+
else 'burst_or_buffered' if decode is not None and decode < .1 else None))
|
| 56 |
+
turns.append(current); current = None
|
| 57 |
+
elif kind == 'tool_execution_start': tool_calls += 1
|
| 58 |
+
elif kind == 'tool_execution_end' and e.get('isError'): tool_errors += 1
|
| 59 |
+
elif kind == 'compaction_start': compactions += 1
|
| 60 |
+
elif kind == 'auto_retry_start': retries += 1
|
| 61 |
+
elif kind == 'agent_settled': settled = True
|
| 62 |
+
all_known = bool(turns) and all(t['output_tokens'] is not None for t in turns)
|
| 63 |
+
total = sum(t['output_tokens'] for t in turns) if all_known else None
|
| 64 |
+
return {'turns':turns, 'elapsed_s':elapsed, 'returncode':returncode, 'timed_out':timed_out,
|
| 65 |
+
'tool_calls':tool_calls,'tool_errors':tool_errors,'compactions':compactions,'retries':retries,
|
| 66 |
+
'incomplete_turns':int(current is not None),
|
| 67 |
+
'total_output_tokens':total,
|
| 68 |
+
'task_generated_tps':total/elapsed if total is not None and elapsed>0 and current is None else None,
|
| 69 |
+
'visible_text_tps':None,
|
| 70 |
+
'token_scope':'provider-reported completion tokens (may include reasoning and tool syntax); not visible-text TPS',
|
| 71 |
+
'completed':settled and returncode==0 and not timed_out and current is None and bool(turns)
|
| 72 |
+
and turns[-1]['stop_reason'] not in ('error','aborted','length')}
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
def command_args(args):
|
| 76 |
+
prompt = ('@'+str(Path(args.prompt).resolve())) if args.prompt_file else Path(args.prompt).read_text()
|
| 77 |
+
return ['pi','--offline',
|
| 78 |
+
*([] if getattr(args,'enable_extensions',False) else ['--no-extensions']),
|
| 79 |
+
'--mode','json','--no-session',
|
| 80 |
+
*([] if getattr(args,'default_tools',False) else ['--tools',args.tools]),
|
| 81 |
+
'--provider',args.provider,'--model',args.model,'--thinking',args.thinking,
|
| 82 |
+
*(['--approve'] if getattr(args,'approve',False) else []),prompt,
|
| 83 |
+
*([args.task_instruction] if getattr(args,'task_instruction',None) else [])]
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
def run(args):
|
| 87 |
+
output = Path(args.output).resolve()
|
| 88 |
+
output.parent.mkdir(parents=True,exist_ok=True)
|
| 89 |
+
cmd = command_args(args)
|
| 90 |
+
env = os.environ.copy()
|
| 91 |
+
env.update(NO_PROXY='127.0.0.1,localhost',no_proxy='127.0.0.1,localhost',PI_TELEMETRY='0')
|
| 92 |
+
if args.agent_dir: env['PI_CODING_AGENT_DIR'] = str(Path(args.agent_dir).resolve())
|
| 93 |
+
start = time.monotonic(); rows = []; timed_out=False
|
| 94 |
+
with output.with_suffix('.stderr').open('wb') as err, output.with_suffix('.events.jsonl').open('w') as raw:
|
| 95 |
+
proc = subprocess.Popen(cmd,cwd=args.workspace,env=env,stdin=subprocess.DEVNULL,
|
| 96 |
+
stdout=subprocess.PIPE,stderr=err,start_new_session=True)
|
| 97 |
+
sel = selectors.DefaultSelector(); sel.register(proc.stdout,selectors.EVENT_READ); buf=b''
|
| 98 |
+
try:
|
| 99 |
+
while True:
|
| 100 |
+
if time.monotonic()-start > args.timeout:
|
| 101 |
+
timed_out=True; os.killpg(proc.pid,signal.SIGTERM); break
|
| 102 |
+
for key,_ in sel.select(1):
|
| 103 |
+
data=os.read(key.fd,65536)
|
| 104 |
+
if not data: sel.unregister(key.fileobj); continue
|
| 105 |
+
buf+=data
|
| 106 |
+
while b'\n' in buf:
|
| 107 |
+
line,buf=buf.split(b'\n',1)
|
| 108 |
+
if not line: continue
|
| 109 |
+
try: event=json.loads(line)
|
| 110 |
+
except ValueError: event={'type':'non_json','line':line.decode(errors='replace')}
|
| 111 |
+
row={'t_s':time.monotonic()-start,'event':event}; rows.append(row)
|
| 112 |
+
raw.write(json.dumps(row,ensure_ascii=False)+'\n'); raw.flush()
|
| 113 |
+
if event.get('type') in ('tool_execution_start','tool_execution_end','agent_settled'):
|
| 114 |
+
print(f"{row['t_s']:.3f} {event['type']} {event.get('toolName','')}",flush=True)
|
| 115 |
+
if event.get('type')=='message_end' and event.get('message',{}).get('role')=='assistant':
|
| 116 |
+
print(f"{row['t_s']:.3f} assistant_end {event['message'].get('usage')} {event['message'].get('stopReason')}",flush=True)
|
| 117 |
+
if proc.poll() is not None and not sel.get_map(): break
|
| 118 |
+
finally:
|
| 119 |
+
sel.close()
|
| 120 |
+
try:proc.wait(timeout=10)
|
| 121 |
+
except subprocess.TimeoutExpired:os.killpg(proc.pid,signal.SIGKILL);proc.wait()
|
| 122 |
+
result=summarize(rows,time.monotonic()-start,proc.returncode,timed_out)
|
| 123 |
+
result.update(provider=args.provider,model=args.model,workspace=str(Path(args.workspace).resolve()),
|
| 124 |
+
thinking=args.thinking,
|
| 125 |
+
tools=('normal Pi discovery; actual request tools require trace review'
|
| 126 |
+
if getattr(args,'default_tools',False) else args.tools),
|
| 127 |
+
extensions=('enabled via normal Pi discovery; actual loading requires trace review'
|
| 128 |
+
if getattr(args,'enable_extensions',False) else 'disabled for controlled comparison'),
|
| 129 |
+
task_quality_verified=False)
|
| 130 |
+
output.with_suffix('.summary.json').write_text(json.dumps(result,indent=2)+'\n')
|
| 131 |
+
print(json.dumps({k:v for k,v in result.items() if k!='turns'},indent=2))
|
| 132 |
+
return 0 if result['completed'] else 1
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
if __name__=='__main__':
|
| 136 |
+
p=argparse.ArgumentParser()
|
| 137 |
+
for name in ('workspace','provider','model','prompt','output'):p.add_argument('--'+name,required=True)
|
| 138 |
+
p.add_argument('--timeout',type=float,default=600)
|
| 139 |
+
p.add_argument('--thinking',default='off')
|
| 140 |
+
p.add_argument('--tools',default='read,grep,find,ls')
|
| 141 |
+
p.add_argument('--agent-dir')
|
| 142 |
+
p.add_argument('--default-tools',action='store_true',
|
| 143 |
+
help='Do not restrict Pi tool discovery with an explicit --tools list')
|
| 144 |
+
p.add_argument('--enable-extensions',action='store_true',
|
| 145 |
+
help='Use normal Pi extension discovery; controlled runs disable extensions by default')
|
| 146 |
+
p.add_argument('--prompt-file',action='store_true',help='Pass large prompts as Pi file attachments')
|
| 147 |
+
p.add_argument('--approve',action='store_true',help='Trust this isolated benchmark project configuration')
|
| 148 |
+
p.add_argument('--task-instruction',help='Direct user instruction after a reference-file attachment')
|
| 149 |
+
raise SystemExit(run(p.parse_args()))
|
code/public_evidence.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Whitelist-only metrics export. Private transcripts and source are never copied."""
|
| 2 |
+
import math
|
| 3 |
+
import re
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
def number(value):
|
| 7 |
+
if value is None:return None
|
| 8 |
+
if type(value) not in (int,float) or not math.isfinite(value):
|
| 9 |
+
raise ValueError('Metric must be a finite number or null')
|
| 10 |
+
return value
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def flag(value):
|
| 14 |
+
if value is not None and type(value) is not bool:raise ValueError('Flag must be boolean or null')
|
| 15 |
+
return value
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
def public_row(run_id,summary):
|
| 19 |
+
if not isinstance(run_id,str) or not re.fullmatch(r'[A-Za-z0-9_-]{1,100}',run_id):
|
| 20 |
+
raise ValueError('Invalid public run identifier')
|
| 21 |
+
turns=summary.get('turns',[])
|
| 22 |
+
counts=[number(t.get('usage',{}).get('input',0))+number(t.get('usage',{}).get('cacheRead',0)) for t in turns]
|
| 23 |
+
return {
|
| 24 |
+
'run_id':run_id,
|
| 25 |
+
'completed':flag(summary.get('completed')),
|
| 26 |
+
'timed_out':flag(summary.get('timed_out')),
|
| 27 |
+
'bounded_quality_pass':flag(summary.get('task_quality_verified')),
|
| 28 |
+
'elapsed_s':number(summary.get('elapsed_s')),
|
| 29 |
+
'initial_input_tokens':counts[0] if counts else None,
|
| 30 |
+
'max_input_tokens':max(counts) if counts else None,
|
| 31 |
+
'initial_cache_read_tokens':number(turns[0].get('usage',{}).get('cacheRead')) if turns else None,
|
| 32 |
+
'first_ttft_s':number(turns[0].get('ttft_s')) if turns else None,
|
| 33 |
+
'tool_calls':number(summary.get('tool_calls')),
|
| 34 |
+
'tool_errors':number(summary.get('tool_errors')),
|
| 35 |
+
'compactions':number(summary.get('compactions')),
|
| 36 |
+
'visible_final_tokens':number(summary.get('final_visible_text_tokens')),
|
| 37 |
+
'visible_stream_tps':number(summary.get('final_visible_stream_tps')),
|
| 38 |
+
'visible_cycle_tps':number(summary.get('final_visible_cycle_tps')),
|
| 39 |
+
'visible_assistant_request_tps':number(summary.get('final_visible_request_tps')),
|
| 40 |
+
'task_completion_tps_including_reasoning_and_tools':number(summary.get('task_generated_tps')),
|
| 41 |
+
}
|
code/requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
matplotlib==3.10.9
|
| 2 |
+
Pillow==11.3.0
|
| 3 |
+
PyYAML==6.0.3
|
code/test_export.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import importlib.util
|
| 2 |
+
import json
|
| 3 |
+
import unittest
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
|
| 6 |
+
class ExportTests(unittest.TestCase):
|
| 7 |
+
def module(self):
|
| 8 |
+
self.assertIsNotNone(importlib.util.find_spec('export_results'))
|
| 9 |
+
import export_results
|
| 10 |
+
return export_results
|
| 11 |
+
|
| 12 |
+
def test_whitelist_excludes_private_source_and_paths(self):
|
| 13 |
+
src={'run_id':'fixture','completed':False,'elapsed_s':900,'errors':[{'error':'PRIVATE SOURCE /Users/person SECRET'}],'workspace':'SECRET','initial_input_tokens':25000,'visible_stream_tps':None}
|
| 14 |
+
row=self.module().public_run(src)
|
| 15 |
+
self.assertNotIn('SECRET',json.dumps(row));self.assertNotIn('/Users',json.dumps(row))
|
| 16 |
+
self.assertFalse(row['completed']);self.assertIsNone(row['visible_stream_tps'])
|
| 17 |
+
self.assertEqual(row['initial_input_tokens'],25000)
|
| 18 |
+
|
| 19 |
+
def test_invalid_metric_or_identifier_rejected(self):
|
| 20 |
+
m=self.module()
|
| 21 |
+
for value in ['SECRET',float('nan'),True]:
|
| 22 |
+
with self.assertRaises(ValueError):m.public_run({'run_id':'fixture','elapsed_s':value})
|
| 23 |
+
with self.assertRaises(ValueError):m.public_run({'run_id':'/private/path'})
|
| 24 |
+
|
| 25 |
+
def test_success_not_inferred_from_tests_only(self):
|
| 26 |
+
r=self.module().public_run({'run_id':'fixture','completed':False,'gate_pass':True,'full_suite_pass':True})
|
| 27 |
+
self.assertFalse(r['completed']);self.assertIsNone(r['visible_stream_tps'])
|
code/test_pi_measure.py
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import unittest
|
| 2 |
+
import json
|
| 3 |
+
import os
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
import subprocess
|
| 6 |
+
import sys
|
| 7 |
+
import tempfile
|
| 8 |
+
from types import SimpleNamespace
|
| 9 |
+
import pi_measure
|
| 10 |
+
from pi_measure import summarize
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def event(t, kind, **data):
|
| 14 |
+
return {'t_s': t, 'event': {'type': kind, **data}}
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
class MeasureTests(unittest.TestCase):
|
| 18 |
+
def test_reports_prefill_and_task_time_not_just_decode(self):
|
| 19 |
+
rows = [event(0, 'message_start', message={'role':'assistant'}),
|
| 20 |
+
event(10, 'message_update', assistantMessageEvent={'type':'text_delta','delta':'abc'}),
|
| 21 |
+
event(15, 'message_end', message={'role':'assistant','usage':{'input':123,'output':100},'stopReason':'stop'}),
|
| 22 |
+
event(17, 'agent_settled')]
|
| 23 |
+
out = summarize(rows, 20, 0, False)
|
| 24 |
+
self.assertEqual(out['turns'][0]['ttft_s'], 10)
|
| 25 |
+
self.assertEqual(out['turns'][0]['decode_tps'], 20)
|
| 26 |
+
self.assertAlmostEqual(out['turns'][0]['request_tps'],100/15)
|
| 27 |
+
self.assertEqual(out['task_generated_tps'],5)
|
| 28 |
+
self.assertIsNone(out['visible_text_tps'])
|
| 29 |
+
|
| 30 |
+
def test_full_turn_timing_includes_request_preflight_before_stream_start(self):
|
| 31 |
+
rows=[event(0,'turn_start'),event(2,'message_start',message={'role':'assistant'}),
|
| 32 |
+
event(3,'message_update',assistantMessageEvent={'type':'text_delta','delta':'answer'}),
|
| 33 |
+
event(5,'message_end',message={'role':'assistant','usage':{'output':40},'stopReason':'stop'})]
|
| 34 |
+
turn=summarize(rows,6,0,False)['turns'][0]
|
| 35 |
+
self.assertEqual(turn.get('turn_start_s'),0)
|
| 36 |
+
self.assertEqual(turn.get('inference_cycle_s'),5)
|
| 37 |
+
self.assertEqual(turn.get('inference_cycle_tps'),8)
|
| 38 |
+
self.assertEqual(turn['request_s'],3)
|
| 39 |
+
|
| 40 |
+
def test_does_not_count_empty_tool_delta_as_first_token(self):
|
| 41 |
+
rows = [event(0,'message_start',message={'role':'assistant'}),
|
| 42 |
+
event(1,'message_update',assistantMessageEvent={'type':'toolcall_delta','delta':''}),
|
| 43 |
+
event(2,'message_update',assistantMessageEvent={'type':'toolcall_delta','delta':'{"path"'}),
|
| 44 |
+
event(3,'message_end',message={'role':'assistant','usage':{'output':10},'stopReason':'toolUse'})]
|
| 45 |
+
self.assertEqual(summarize(rows,4,0,False)['turns'][0]['ttft_s'],2)
|
| 46 |
+
|
| 47 |
+
def test_tool_only_chunks_do_not_prove_backend_decode_speed(self):
|
| 48 |
+
rows = [event(0,'message_start',message={'role':'assistant'}),
|
| 49 |
+
event(10,'message_update',assistantMessageEvent={'type':'toolcall_delta','delta':'{"path":"src"}'}),
|
| 50 |
+
event(10.2,'message_end',message={'role':'assistant','usage':{'output':100},'stopReason':'toolUse'})]
|
| 51 |
+
out=summarize(rows,11,0,False)
|
| 52 |
+
self.assertIsNone(out['turns'][0]['decode_tps'])
|
| 53 |
+
self.assertAlmostEqual(out['turns'][0]['request_tps'],100/10.2)
|
| 54 |
+
|
| 55 |
+
def test_one_token_length_cutoff_burst_is_not_decode_speed_evidence(self):
|
| 56 |
+
rows=[event(0,'message_start',message={'role':'assistant'}),
|
| 57 |
+
event(8,'message_update',assistantMessageEvent={'type':'thinking_delta','delta':'Now'}),
|
| 58 |
+
event(8.005,'message_end',message={'role':'assistant','usage':{'output':1,'reasoning':1},'stopReason':'length'})]
|
| 59 |
+
out=summarize(rows,8.1,0,False)
|
| 60 |
+
self.assertIsNone(out['turns'][0]['decode_tps'])
|
| 61 |
+
self.assertEqual(out['turns'][0]['decode_timing_warning'],'burst_or_buffered')
|
| 62 |
+
self.assertEqual(out['turns'][0]['output_tokens'],1)
|
| 63 |
+
self.assertFalse(out['completed'])
|
| 64 |
+
|
| 65 |
+
def test_unknown_usage_never_becomes_zero_or_chunk_token_count(self):
|
| 66 |
+
rows = [event(0,'message_start',message={'role':'assistant'}),
|
| 67 |
+
event(1,'message_update',assistantMessageEvent={'type':'text_delta','delta':'hello'}),
|
| 68 |
+
event(2,'message_end',message={'role':'assistant','stopReason':'stop'})]
|
| 69 |
+
out=summarize(rows,3,0,False)
|
| 70 |
+
self.assertIsNone(out['turns'][0]['decode_tps'])
|
| 71 |
+
self.assertIsNone(out['total_output_tokens'])
|
| 72 |
+
|
| 73 |
+
def test_timeout_or_compaction_cannot_pass(self):
|
| 74 |
+
out=summarize([event(0,'compaction_start'), event(1,'agent_settled')], 2,143,True)
|
| 75 |
+
self.assertFalse(out['completed'])
|
| 76 |
+
self.assertEqual(out['compactions'],1)
|
| 77 |
+
self.assertEqual(out['incomplete_turns'],0)
|
| 78 |
+
|
| 79 |
+
def test_runner_closes_child_stdin_when_parent_input_is_open(self):
|
| 80 |
+
with tempfile.TemporaryDirectory() as tmp:
|
| 81 |
+
root=Path(tmp); script=root/'pi'
|
| 82 |
+
script.write_text('#!'+sys.executable+'\nimport sys,json\nfrom pathlib import Path\nsys.stdin.read()\n'
|
| 83 |
+
'Path("child-args.json").write_text(json.dumps(sys.argv[1:]))\n'
|
| 84 |
+
'events=[{"type":"message_start","message":{"role":"assistant"}},'
|
| 85 |
+
'{"type":"message_end","message":{"role":"assistant","usage":{"output":1},"stopReason":"stop"}},'
|
| 86 |
+
'{"type":"agent_settled"}]\n'
|
| 87 |
+
'for e in events: print(json.dumps(e),flush=True)\n')
|
| 88 |
+
script.chmod(0o755); (root/'prompt.txt').write_text('fixture task')
|
| 89 |
+
env={**os.environ,'PATH':str(root)+os.pathsep+os.environ['PATH']}
|
| 90 |
+
cmd=[sys.executable,str(Path(__file__).with_name('pi_measure.py')),
|
| 91 |
+
'--workspace',tmp,'--provider','fixture','--model','fixture',
|
| 92 |
+
'--prompt',str(root/'prompt.txt'),'--output',str(root/'result'),'--timeout','10']
|
| 93 |
+
p=subprocess.Popen(cmd,stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE,env=env)
|
| 94 |
+
try:
|
| 95 |
+
p.wait(timeout=25)
|
| 96 |
+
result=json.loads((root/'result.summary.json').read_text())
|
| 97 |
+
self.assertTrue(result['completed'],'Child inherited open stdin and never began its task')
|
| 98 |
+
self.assertEqual(result['extensions'],'disabled for controlled comparison')
|
| 99 |
+
self.assertIn('--no-extensions',json.loads((root/'child-args.json').read_text()))
|
| 100 |
+
enabled=subprocess.run(cmd+['--enable-extensions'],stdin=subprocess.DEVNULL,
|
| 101 |
+
capture_output=True,env=env,timeout=25)
|
| 102 |
+
self.assertEqual(enabled.returncode,0,enabled.stderr.decode())
|
| 103 |
+
enabled_result=json.loads((root/'result.summary.json').read_text())
|
| 104 |
+
self.assertTrue(enabled_result['completed'])
|
| 105 |
+
self.assertEqual(enabled_result['extensions'],
|
| 106 |
+
'enabled via normal Pi discovery; actual loading requires trace review')
|
| 107 |
+
self.assertNotIn('--no-extensions',json.loads((root/'child-args.json').read_text()))
|
| 108 |
+
finally:
|
| 109 |
+
if p.poll() is None:p.kill();p.wait()
|
| 110 |
+
p.stdin.close();p.stdout.close();p.stderr.close()
|
| 111 |
+
|
| 112 |
+
def test_large_prompt_uses_pi_attachment_not_os_argument_payload(self):
|
| 113 |
+
self.assertTrue(hasattr(pi_measure,'command_args'),'Runner needs a file-attachment command path')
|
| 114 |
+
with tempfile.TemporaryDirectory() as tmp:
|
| 115 |
+
prompt=Path(tmp)/'corpus.txt';prompt.write_text('x'*1000000)
|
| 116 |
+
args=SimpleNamespace(tools='read,bash,edit,write',provider='local',model='model',thinking='low',prompt=str(prompt),prompt_file=True)
|
| 117 |
+
cmd=pi_measure.command_args(args)
|
| 118 |
+
self.assertEqual(cmd[-1],'@'+str(prompt.resolve()))
|
| 119 |
+
self.assertLess(sum(map(len,cmd)),10000)
|
| 120 |
+
self.assertIn('read,bash,edit,write',cmd)
|
| 121 |
+
self.assertNotIn('--approve',cmd)
|
| 122 |
+
args.approve=True
|
| 123 |
+
self.assertIn('--approve',pi_measure.command_args(args))
|
| 124 |
+
args.task_instruction='Use the current repository, not the attachment directory.'
|
| 125 |
+
self.assertEqual(pi_measure.command_args(args)[-2:],['@'+str(prompt.resolve()),args.task_instruction])
|
| 126 |
+
args.task_instruction=None
|
| 127 |
+
args.prompt_file=False; prompt.write_text('small task')
|
| 128 |
+
self.assertEqual(pi_measure.command_args(args)[-1],'small task')
|
| 129 |
+
|
| 130 |
+
def test_full_extensions_are_explicit_opt_in_without_changing_tools(self):
|
| 131 |
+
with tempfile.TemporaryDirectory() as tmp:
|
| 132 |
+
prompt=Path(tmp)/'prompt.txt';prompt.write_text('Read the isolated checkout')
|
| 133 |
+
args=SimpleNamespace(tools='read,bash,edit,write',provider='local',model='model',
|
| 134 |
+
thinking='low',prompt=str(prompt),prompt_file=True)
|
| 135 |
+
controlled=pi_measure.command_args(args)
|
| 136 |
+
self.assertIn('--no-extensions',controlled)
|
| 137 |
+
args.enable_extensions=True
|
| 138 |
+
production=pi_measure.command_args(args)
|
| 139 |
+
self.assertNotIn('--no-extensions',production)
|
| 140 |
+
self.assertEqual(production,[v for v in controlled if v!='--no-extensions'])
|
| 141 |
+
args.enable_extensions=False
|
| 142 |
+
self.assertEqual(pi_measure.command_args(args),controlled)
|
| 143 |
+
args.enable_extensions=True
|
| 144 |
+
args.default_tools=True
|
| 145 |
+
discovered=pi_measure.command_args(args)
|
| 146 |
+
self.assertNotIn('--tools',discovered)
|
| 147 |
+
self.assertNotIn('read,bash,edit,write',discovered)
|
| 148 |
+
self.assertNotIn('--no-extensions',discovered)
|
| 149 |
+
|
| 150 |
+
def test_incomplete_generation_reported(self):
|
| 151 |
+
out=summarize([event(0,'message_start',message={'role':'assistant'})],5,143,True)
|
| 152 |
+
self.assertEqual(out['incomplete_turns'],1)
|
| 153 |
+
self.assertIsNone(out['task_generated_tps'])
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
if __name__ == '__main__': unittest.main()
|
code/test_public_evidence.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import importlib.util
|
| 2 |
+
import unittest
|
| 3 |
+
import json
|
| 4 |
+
|
| 5 |
+
def export(summary):
|
| 6 |
+
assert importlib.util.find_spec('public_evidence') is not None, 'Missing whitelist-only public evidence exporter'
|
| 7 |
+
return importlib.import_module('public_evidence').public_row('fixture',summary)
|
| 8 |
+
|
| 9 |
+
class PublicEvidenceTests(unittest.TestCase):
|
| 10 |
+
def test_omits_private_text_paths_credentials_and_unknown_fields(self):
|
| 11 |
+
row=export({'completed':True,'elapsed_s':10.5,'workspace':'/private/secret/repo',
|
| 12 |
+
'api_key':'SECRET','task_quality_evidence':'PRIVATE SOURCE','arbitrary':'SECRET',
|
| 13 |
+
'turns':[{'usage':{'input':256222,'cacheRead':0},'ttft_s':5.0}],
|
| 14 |
+
'final_visible_stream_tps':30.0})
|
| 15 |
+
encoded=json.dumps(row)
|
| 16 |
+
self.assertNotIn('SECRET',encoded);self.assertNotIn('/private',encoded);self.assertNotIn('PRIVATE SOURCE',encoded)
|
| 17 |
+
self.assertEqual(row['initial_input_tokens'],256222);self.assertEqual(row['visible_stream_tps'],30.0)
|
| 18 |
+
self.assertIsNone(row['visible_cycle_tps'])
|
| 19 |
+
|
| 20 |
+
def test_rejects_non_numeric_metrics_instead_of_exporting_arbitrary_text(self):
|
| 21 |
+
with self.assertRaises(ValueError):export({'elapsed_s':'SECRET'})
|
| 22 |
+
with self.assertRaises(ValueError):export({'elapsed_s':float('nan')})
|
| 23 |
+
with self.assertRaises(ValueError):export({'elapsed_s':True})
|
| 24 |
+
|
| 25 |
+
def test_failure_and_unknown_quality_never_become_a_pass(self):
|
| 26 |
+
row=export({'completed':False,'timed_out':True,'elapsed_s':3600,'task_quality_verified':False})
|
| 27 |
+
self.assertFalse(row['completed']);self.assertFalse(row['bounded_quality_pass'])
|
| 28 |
+
self.assertIsNone(row['visible_stream_tps']);self.assertTrue(row['timed_out'])
|
| 29 |
+
self.assertIsNone(export({})['bounded_quality_pass'])
|
paper/figures/task-wall.pdf
ADDED
|
Binary file (13.4 kB). View file
|
|
|
paper/figures/task-wall.png
ADDED
|
Git LFS Details
|
paper/figures/visible-rates.pdf
ADDED
|
Binary file (12.4 kB). View file
|
|
|
paper/figures/visible-rates.png
ADDED
|
Git LFS Details
|
paper/klik-paper.sty
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
\NeedsTeXFormat{LaTeX2e}
|
| 2 |
+
\ProvidesPackage{klik-paper}[2026/09/22 KLIK research paper style]
|
| 3 |
+
|
| 4 |
+
\newif\ifklikbenchmark
|
| 5 |
+
\klikbenchmarkfalse
|
| 6 |
+
\DeclareOption{benchmark}{\klikbenchmarktrue}
|
| 7 |
+
\ProcessOptions\relax
|
| 8 |
+
|
| 9 |
+
\ifklikbenchmark\else
|
| 10 |
+
\RequirePackage[margin=0.9in,headheight=15pt]{geometry}
|
| 11 |
+
\RequirePackage{amsmath,amssymb,amsfonts}
|
| 12 |
+
\RequirePackage{booktabs}
|
| 13 |
+
\RequirePackage{tabularx}
|
| 14 |
+
\RequirePackage{graphicx}
|
| 15 |
+
\RequirePackage{enumitem}
|
| 16 |
+
\RequirePackage{float}
|
| 17 |
+
\RequirePackage[numbers,sort&compress]{natbib}
|
| 18 |
+
\fi
|
| 19 |
+
\RequirePackage{xcolor}
|
| 20 |
+
\RequirePackage{microtype}
|
| 21 |
+
\RequirePackage{fancyhdr}
|
| 22 |
+
\RequirePackage{hyperref}
|
| 23 |
+
|
| 24 |
+
\definecolor{klikblue}{HTML}{1F4E79}
|
| 25 |
+
\definecolor{klikgray}{HTML}{5B6573}
|
| 26 |
+
\hypersetup{
|
| 27 |
+
colorlinks=true,
|
| 28 |
+
linkcolor=blue!55!black,
|
| 29 |
+
citecolor=blue!55!black,
|
| 30 |
+
urlcolor=blue!65!black,
|
| 31 |
+
pdfcreator={KLIK Research},
|
| 32 |
+
pdfproducer={KLIK Research}
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
\pagestyle{fancy}
|
| 36 |
+
\fancyhf{}
|
| 37 |
+
\lhead{\small\textcolor{klikgray}{KLIK Research}}
|
| 38 |
+
\rhead{\small\textcolor{klikgray}{\thepage}}
|
| 39 |
+
\renewcommand{\headrulewidth}{0.3pt}
|
| 40 |
+
\renewcommand{\footrulewidth}{0pt}
|
| 41 |
+
\setlength{\headheight}{15pt}
|
| 42 |
+
\setlength{\emergencystretch}{3em}
|
| 43 |
+
\Urlmuskip=0mu plus 2mu\relax
|
| 44 |
+
|
| 45 |
+
\ifklikbenchmark\else
|
| 46 |
+
\setlist{leftmargin=1.6em,itemsep=2pt,topsep=4pt}
|
| 47 |
+
\setlength{\parindent}{1.2em}
|
| 48 |
+
\setlength{\parskip}{0pt}
|
| 49 |
+
\renewcommand{\arraystretch}{1.08}
|
| 50 |
+
\makeatletter
|
| 51 |
+
\renewenvironment{abstract}{%
|
| 52 |
+
\small
|
| 53 |
+
\begin{center}%
|
| 54 |
+
{\bfseries\color{klikblue}\abstractname\vspace{-.4em}\vspace{0pt}}%
|
| 55 |
+
\end{center}%
|
| 56 |
+
\quotation
|
| 57 |
+
}{\endquotation}
|
| 58 |
+
\makeatother
|
| 59 |
+
\fi
|
| 60 |
+
\urlstyle{same}
|
| 61 |
+
|
| 62 |
+
\newcommand{\klikteam}{KLIK team}
|
| 63 |
+
\newcommand{\klikresearchnote}[1]{\thanks{KLIK Research. #1}}
|
paper/main.pdf
ADDED
|
Binary file (96 kB). View file
|
|
|
paper/main.tex
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
\documentclass[11pt]{article}
|
| 2 |
+
\usepackage{klik-paper}
|
| 3 |
+
\hypersetup{pdftitle={Fast on the Card, Slow in the Agent: A Vision and Speculation Study of Coder390 and TURBO-Fable on Apple Silicon},pdfauthor={Chengyi Xu and KLIK team},pdfsubject={Real-workspace local model replacement evaluation},pdfkeywords={Apple Silicon, Coder390, Fable, Ornith, MTP, DFlash2, agent evaluation}}
|
| 4 |
+
\title{\textbf{Fast on the Card, Slow in the Agent:\\A Vision and Speculation Study of Coder390 and TURBO-Fable on Apple Silicon}}
|
| 5 |
+
\author{Chengyi Xu and KLIK team\\\small KLIK Research}
|
| 6 |
+
\date{October 2026 --- experimental deployment report}
|
| 7 |
+
\begin{document}
|
| 8 |
+
\maketitle
|
| 9 |
+
\begin{abstract}
|
| 10 |
+
Model-card speed and reasoning-efficiency claims do not establish the usability of a local coding agent. We examine two proposed replacements for a working Apple M4 Max deployment: nerkyor's Qwen3.8-27B Coder390 EfficientThink Q4 LynnStyle checkpoint and DavidAU's Qwen3.8-27B TURBO-Fable Cold-Fusion Q4\_K\_M checkpoint. Both are downloaded at pinned revisions, fully hashed, and tested with thinking enabled and their vision projectors. Seven small image-comprehension probes answer a known diagram correctly. However, actual Pi sessions routed through Magpie in fresh copies of a real software repository reveal substantially worse task latency than the installed Ornith-1.5-35B-A3B pair. All five Coder390 configurations time out near 900 seconds without repairing the injected defect. Fable completes three configurations and passes independent tests, but takes 796--892 seconds and streams its final visible answer at only 4.32--8.38 tokens/s. Thinking-enabled Ornith baselines complete in 205--218 seconds with 30.57--32.33 visible tokens/s. Candidate first-turn waits of 365--579 seconds on approximately 25,000-token agent inputs dominate the deadline. Current SGLang documentation supports Apple MLX, but the inspected in-tree DFlash handler excludes MPS; its NVIDIA recipe cannot be assumed portable. We publish the negative outcomes, vision checks, memory-admission failure and sanitized numerical evidence. These descriptive configuration tests support retaining the existing deployment, not a global intelligence ranking or a 256k-context qualification of the candidates.
|
| 11 |
+
\end{abstract}
|
| 12 |
+
|
| 13 |
+
\section{Introduction}
|
| 14 |
+
A proposed local-model upgrade often arrives with three attractive ingredients: a stronger teacher-model lineage, shorter reasoning traces and a speculative decoder. Each can be useful. None alone answers the operational question: will this configuration complete a useful coding task through the user's actual agent, on the user's workstation, with acceptable latency and correct tools?
|
| 15 |
+
|
| 16 |
+
The two candidates studied here were requested as replacements for normal and abliterated Ornith deployments. Coder390 emphasizes suppression of unproductive long reasoning through successive supervised and RLOO stages; TURBO-Fable emphasizes a multi-stage fine-tune/merge with reduced thinking and an embedded MTP head. Their publishers report strong benchmarks and NVIDIA speed~\cite{coder,fable}. We do not reproduce those benchmark claims. Instead, we conduct a narrower deployment comparison on a 64\,GiB Apple Silicon workstation with thinking, vision, an actual agent client and independent repair gates.
|
| 17 |
+
|
| 18 |
+
Our contributions are: (i) a pinned, failure-preserving comparison of eight candidate configurations and two installed baselines; (ii) separate vision and coding-workflow evidence; (iii) a source-level check of an apparently portable SGLang recipe; (iv) a native memory-plan rejection rather than an inflated context promise; and (v) a public artifact that excludes private source-bearing transcripts while exposing its reproducibility limits.
|
| 19 |
+
|
| 20 |
+
\section{Candidates and upstream claims}
|
| 21 |
+
\subsection{Coder390 EfficientThink}
|
| 22 |
+
The requested repository is nerkyor's Qwen3.8-27B Coder390 EfficientThink release, pinned at \texttt{a3a1170a0c8fcb7a5f119ce16c70e7c54ea006ff}. Its card describes successive SFT and RLOO stages on an earlier SFT/SimPO EfficientThink descendant of Qwen3.8, with teacher traces from several frontier-labelled systems. Teacher names identify the claimed data lineage; they do not mean that the local checkpoint is the named proprietary model.
|
| 23 |
+
|
| 24 |
+
The publisher's headline static-FP8 measurements are 178/198 GPQA, 450/500 MMLU and 90/100 LCB, using a 100k context and a 94,208-token generation ceiling on RTX PRO 6000 hardware. Its Q4 LynnStyle GGUF table instead reports 175/198, 448/500 and 89/100. The MMLU 500-question and LCB 100-question sets are finite evaluation sets, not evidence that an independent full standard benchmark was replicated. The reported 180.3-token/s DFlash2 and 91.1-token/s MTP single-request figures use a Blackwell RTX PRO 6000 with 96\,GB and a 32k context~\cite{coder}. They are not M4 Max measurements.
|
| 25 |
+
|
| 26 |
+
We use the requested Q4 LynnStyle GGUF with its embedded MTP head and the separate Q8\_0 multimodal projector. The target file is 19,620,406,592 bytes; the projector is 629,247,008 bytes. Both pass pinned full-file SHA-256 verification. The main GGUF mixes Q4\_K, Q5\_K, Q6\_K, Q8\_0, BF16 and F32 tensors, with Q4\_0 in the embedded MTP component; nominal ``Q4'' does not describe every tensor.
|
| 27 |
+
|
| 28 |
+
\subsection{TURBO-Fable Cold-Fusion}
|
| 29 |
+
The DavidAU target is pinned at \texttt{ceb55042229d17dcf45df52ad84698339e63d4c5}. Its card describes multi-stage fine-tuning and merging, Heretic ARA lineage, reduced reasoning-token claims and high-detail output. Its quoted approximately 75--90 tokens/s uses an RTX 5090 with Windows/LM Studio~\cite{fable}. That result does not establish Metal throughput or a same-protocol improvement over Ornith.
|
| 30 |
+
|
| 31 |
+
We use its MTP Q4\_K\_M file (18,498,573,856 bytes) and its BF16 projector (931,145,920 bytes). The quantization includes a BF16 output head and Q8\_0 MTP tensors, making it different from the Coder390 mixed-precision layout. The publisher recommends at least Q4\_K\_M for tool use. All downloaded components are fully hashed. Labels such as ``uncensored'' or ``Heretic'' are provenance descriptors here; no harmful-generation or refusal-removal benchmark is performed.
|
| 32 |
+
|
| 33 |
+
\subsection{Installed baselines}
|
| 34 |
+
The retained baselines are normal Ornith-1.5-35B-A3B Q4\_K\_M and a separately pinned PocketAiHub abliterated Ornith Q4\_K\_M. These are sparse 35B-total/approximately-3B-active targets, whereas the proposed replacements are dense 27B targets. This architectural difference is central to hardware fit and prevents interpreting the comparison as a controlled test of fine-tuning alone. Exact repositories, revisions, file hashes and runtimes are provided in the public provenance ledger.
|
| 35 |
+
|
| 36 |
+
\section{Hardware, serving systems and portability}
|
| 37 |
+
The host is an Apple M4 Max with 40 GPU cores and 64\,GiB unified memory. The native planner observed macOS 27.2.0. The workstation is concurrently used, not a quiet laboratory appliance. A sampled state had roughly 17--18\,GB of swap and elevated background load; power was AC with no reported thermal or power-saving warning. Unrelated processes were not killed. We do not infer that host contention caused a particular failed task.
|
| 38 |
+
|
| 39 |
+
Candidate llama.cpp runs use pinned build b11036 (commit \texttt{911f6cdc8}) or b11538 (\texttt{79e2e74eb}), with full Metal offload, Flash Attention, Q8\_0 KV, one 262,144-token slot, plain loading, the projector, temperature 0.6/top-p 0.95, thinking enabled at low effort and an unrestricted reasoning budget. Speculation is either absent or embedded MTP with two or four draft tokens. The ordinary runs set \texttt{GGML\_METAL\_NO\_RESIDENCY=1}; one labelled run enables residency. Logs confirm M4 Max offload, so the result is not assumed to be CPU-only inference.
|
| 40 |
+
|
| 41 |
+
The native DFlash2 comparison uses Splash, pinned at commit\\
|
| 42 |
+
\texttt{c64a578fcfaa059023a2ca57230d4aead134b73b}, with existing local Q4\_K GDN alpha/beta support and a 512-row prefill cap. It uses an architecture-compatible local dense-Qwen DFlash2 draft, not the publisher's FP8 SGLang draft. The run uses 32\,GiB Metal and an 8\,GiB SSD tier and is text-only. The baseline Ornith pair uses the installed native 28\,GiB/8\,GiB/512-row preset with DFlash2. Candidates and baselines are therefore comparisons of deployable configurations, not equivalent engines or precision paths.
|
| 43 |
+
|
| 44 |
+
\subsection{Why the pasted context command is misleading}
|
| 45 |
+
The publisher's \texttt{-c 409600 -np 4} command splits the pool into four slots of 102,400 tokens each~\cite{coder}. It is not a proof of a 409,600-token individual session. The downloaded Coder390 config declares 262,144 native positions. We use one slot and this truthful configured capacity without implicit RoPE scaling. No candidate request in this study approaches 256k; actual first requests are approximately 25k. Allocation and config metadata are not long-context competence evidence.
|
| 46 |
+
|
| 47 |
+
\subsection{SGLang: Apple support does not imply DFlash support}
|
| 48 |
+
Current SGLang documentation describes an Apple MLX runtime~\cite{sglangmetal}. It would be incorrect to dismiss SGLang as entirely unavailable on Apple Silicon. However, the inspected source at \texttt{72eab59bf6395c342a60967ec2a31761c505e151}, \texttt{speculative\_hook.py}, permits in-tree DFLASH only for CUDA, NPU or XPU and raises an error for other devices~\cite{sglangsource}. Generic MPS/MLX support therefore does not provide the requested SGLang+DFlash2 deployment. An out-of-tree platform could declare additional support, but none is installed or tested here. We do not invent a SGLang benchmark or equate MLX-format loading with these GGUF files.
|
| 49 |
+
|
| 50 |
+
\subsection{Native memory admission and quantization constraints}
|
| 51 |
+
At the existing 28\,GiB limit, Splash rejects Coder390's 262k startup. Its memory plan permits a maximum context of approximately 208,889 tokens, with 18,585.52\,MiB target weights, 1,207.39\,MiB draft weights and a 21,701.08\,MiB fixed runtime. Q8 KV pages occupy 1,064,960 bytes per 32 tokens. Increasing the declared allocation to 32\,GiB admits a 262,144-token startup. This is readiness, not actual near-limit processing.
|
| 52 |
+
|
| 53 |
+
The existing native importer also rejects Fable's BF16 \texttt{output.weight}. We do not silently requantize the author's output head or add an unverified kernel patch. Its measured llama.cpp vision path loads, while the tested native Splash path cannot be substituted for it. Likewise, Coder390's text-only Splash result does not inherit the Q8-projector proof from llama.cpp.
|
| 54 |
+
|
| 55 |
+
\section{Workload and evidence}
|
| 56 |
+
\subsection{Real repository repair}
|
| 57 |
+
The same fixed repair prompt is used across configurations in fresh isolated clones of a real private Klik LLM client repository, revision \texttt{45f075409a47aa8834c3b166bbb57b64194ca13a}. The test deliberately inverts a retry-delay cap from minimum to maximum; it is not represented as a discovered production bug. The independent gate fails before model work. The agent must inspect implementation and tests, add regression coverage for an initial delay exceeding the cap, restore the implementation without altering the public API or status policy, and run offline tests.
|
| 58 |
+
|
| 59 |
+
Each run is an actual Pi session routed through a temporary Magpie provider for the candidate or the installed Magpie route for the baseline. Normal extensions and default tool discovery are enabled. There is no request-budget hook, task-specific JSON schema or post-generation answer repair. The agent's actions occur only in isolated clones. Parent checks examine the restored source, remaining tracked diff, independent gate and full suite.
|
| 60 |
+
|
| 61 |
+
\subsection{Small vision probes}
|
| 62 |
+
Before each candidate llama.cpp repair run, a hand-drawn 384$\times$256 diagram supplies known ground truth: the text \texttt{VISION 42}, two blue circles and a red rectangle. The request is image input, not generation, with thinking enabled. Seven llama.cpp configurations answer those three facts correctly and return separate reasoning content. The Splash run is explicitly text-only. One diagram per condition is a functional probe, not a broad vision benchmark, OCR score or estimate of population accuracy.
|
| 63 |
+
|
| 64 |
+
\subsection{Thinking and sampling}
|
| 65 |
+
Low reasoning is enabled through runtime/template controls and observed in actual responses. ``EfficientThink'' may reduce a model's output trajectory, but it does not make prefill or dense verification free. Candidate temperature 0.6 differs from baseline backend temperature 1.0, while top-p is 0.95. Request counts, initial cache state and generated tool paths vary. This non-randomized single-run-per-configuration design supports an operational decision on the tested task, not a causal estimate of model superiority. Small differences among speculation modes should not be treated as statistically established effects.
|
| 66 |
+
|
| 67 |
+
\section{Metrics and timeout treatment}
|
| 68 |
+
Whole-task time runs from Pi invocation through completion or the 900-second deadline; wrapper shutdown adds small measured overhead. Timeouts retain partial output and tool traces. They are right-censored observations, not completed 900-second answers. Failed gates are rerun on the final checkout state even after timeout.
|
| 69 |
+
|
| 70 |
+
For a completed final answer, let $N_v$ be its visible text retokenized by the running target tokenizer, $t_v$ the first nonempty visible text delta, $t_e$ message end and $t_c$ the agent turn start. We report
|
| 71 |
+
\[
|
| 72 |
+
R_{\mathrm{visible}}=\frac{N_v}{t_e-t_v},\qquad
|
| 73 |
+
R_{\mathrm{cycle}}=\frac{N_v}{t_e-t_c}.
|
| 74 |
+
\]
|
| 75 |
+
The first excludes preceding reasoning and waiting. The second includes the entire final turn. Neither is whole-task visible throughput. All tool work and prefill remain in whole-task elapsed. Initial TTFT is measured from assistant-stream start and can omit small pre-stream setup; it is not a pure kernel-only prefill duration. The relevant first-turn waits are preserved rather than subtracted as warmup.
|
| 76 |
+
|
| 77 |
+
Provider-reported completion counts may include reasoning and tool syntax. Tool parsers can buffer tool calls, so a tool-only client burst is not a backend decode measurement. Characters and SSE chunks are not tokens. Candidate timeouts have no usable final visible rate; the table uses a dash, never an invented zero or extrapolated speed. Native-log decode observations are separate from client final-visible metrics.
|
| 78 |
+
|
| 79 |
+
\section{Results}
|
| 80 |
+
\begin{table}[H]\centering\scriptsize
|
| 81 |
+
\setlength{\tabcolsep}{3pt}
|
| 82 |
+
\begin{tabular}{lrrrrl}\toprule
|
| 83 |
+
Configuration & Wall(s) & TTFT(s) & $R_{\rm visible}$ & $R_{\rm cycle}$ & Repair\\\midrule
|
| 84 |
+
\input{results-table.tex}
|
| 85 |
+
\end{tabular}
|
| 86 |
+
\caption{All ten task runs. Rates are visible tokens/s only for completed final answers. Wall time includes the whole task; TTFT is the initial assistant request. ``Pass'' requires completion and parent repair/test verification. There is one run per configuration.}
|
| 87 |
+
\label{tab:results}
|
| 88 |
+
\end{table}
|
| 89 |
+
|
| 90 |
+
\begin{figure}[H]\centering
|
| 91 |
+
\includegraphics[width=\linewidth]{figures/task-wall.pdf}
|
| 92 |
+
\caption{Whole-task elapsed, with Coder390 timeouts retained. The dashed line marks the nominal 900-second task deadline; shutdown produces small overruns. There is no confidence interval or pooled throughput estimate.}
|
| 93 |
+
\end{figure}
|
| 94 |
+
\begin{figure}[H]\centering
|
| 95 |
+
\includegraphics[width=\linewidth]{figures/visible-rates.pdf}
|
| 96 |
+
\caption{Only completed answers have final visible rates. Coder390 timeouts are intentionally absent from this rate chart but remain in Table~\ref{tab:results} and the wall-time chart. Final-cycle rates include waiting and reasoning.}
|
| 97 |
+
\end{figure}
|
| 98 |
+
|
| 99 |
+
\subsection{Thinking-enabled Ornith baselines}
|
| 100 |
+
Normal Ornith completes in 218.08 seconds with 13 tools and no tool errors; its final visible rate is 30.57 tokens/s and full final-cycle rate 23.86. The abliterated target completes in 204.68 seconds with 12 tools and no errors, with 32.33 and 28.38 tokens/s respectively. Parent checks confirm the original implementation restored, new retry tests added and no unrelated tracked source changes. Both full suites report 275 passed and one skipped. Initial first-turn waits are approximately 56--58 seconds. These current baselines are not borrowed from older headline measurements.
|
| 101 |
+
|
| 102 |
+
\subsection{Coder390: five timeouts}
|
| 103 |
+
Coder390 fails to finish or restore the injected defect within the deadline in all five configurations: b11036 without speculation, b11036 with four-token MTP, the same with Metal residency, b11538 with four-token MTP, and native Splash/DFlash2 at 32\,GiB. Their initial requests contain 25,247--25,254 tokens. First-turn TTFT is approximately 400--579 seconds; subsequent reads, reasoning and tool processing consume the remaining deadline. Parent gates and full-suite failures confirm the defect remains at cutoff.
|
| 104 |
+
|
| 105 |
+
Native logs show roughly 4--10 completion tokens/s in the examined llama.cpp segments and 6--14 in the Splash segments. These are observations, not accepted final-visible task rates. MTP acceptance is useful, but the task still does not complete. The newer build and residency experiment do not justify promoting the configuration. We do not infer that Coder390 is incapable of repairing the defect with more time, a different prompt, a different quant or another runtime.
|
| 106 |
+
|
| 107 |
+
\subsection{Fable: correct repairs but poor task latency}
|
| 108 |
+
Fable finishes all three tested conditions and passes the independent gate, restores the original implementation and adds over-cap regression tests. Each full suite reports 274 passed and one skipped. Its times are 889.64 seconds with four-token MTP on b11036, 892.05 with two-token MTP on b11538, and 795.80 without MTP on b11538. The two MTP runs each include one failed pre-repair pytest tool result from the TDD workflow; that is not a transport fault. The no-MTP run has no tool errors.
|
| 109 |
+
|
| 110 |
+
The newer two-token MTP condition has a higher final visible rate (8.38 versus 6.50 tokens/s without MTP), but a slower complete task. Four-token MTP on the older build delivers only 4.32 final visible tokens/s. The shorter no-MTP task cannot be attributed solely to speculation: the configurations are single stochastic trials with different tool paths and first-turn waits. All are substantially slower than the current installed baseline on this workload.
|
| 111 |
+
|
| 112 |
+
\section{Interpretation and limitations}
|
| 113 |
+
The result is a deployment veto for these measured combinations, not an intrinsic intelligence ranking. Dense target compute, hybrid prefill kernels, quantization-specific kernels, vision buffers, cache state, host pressure, unrestricted reasoning and speculative verification may all contribute. The experiment does not isolate every factor. Quantization differs between candidates and sparse baselines; runtime differs; sampling differs. Full candidate prompt bodies and source-bearing traces are withheld because the repository is private.
|
| 114 |
+
|
| 115 |
+
The candidates' vision probes pass, but that does not rescue a failed coding workflow. Speculative acceptance is not absolute speed. A 262k-ready runtime does not prove near-limit correctness or practical cold latency. No actual candidate 256k request is accepted as a result in this study; ordinary-task failures were sufficient to reject immediate replacement under the operational target. Likewise, no official GPQA/MMLU/LCB benchmark or refusal evaluation was rerun locally.
|
| 116 |
+
|
| 117 |
+
A future experiment could test a validated MLX conversion, a Metal-compatible vision/draft runtime, a smaller truthful working-context preset or a different quant, with matched sampling and repeated tasks. These are research directions, not completed results. Replacing a known-working deployment solely to match a popular model name would conflate desired capability with verified usability.
|
| 118 |
+
|
| 119 |
+
\section{Artifacts and deployment outcome}
|
| 120 |
+
Neither candidate was permanently registered in Magpie, and temporary candidate entries were removed after each foreground run. The existing normal and abliterated Ornith profiles remained installed; the previously active abliterated service was restored. No cloud defaults, image workflow or unrelated machine was changed. No monitor or delegated agent was used. Candidate weights, projectors, source metadata and private records remain local for further investigation.
|
| 121 |
+
|
| 122 |
+
The public artifact contains the PDF/LaTeX in the same KLIK style as prior reports, whitelist-only numerical records, vision fixture and answers, model/runtime provenance, measurement code/tests, figures regenerated from the ledger, and a protocol. Model weights and third-party source trees are not redistributed. Private repository source, raw chats, credentials and local machine paths are excluded. The corpus cannot therefore be reproduced byte-for-byte publicly; an authorized substitute repository is a new replication, not identical evidence.
|
| 123 |
+
|
| 124 |
+
\section{Conclusion}
|
| 125 |
+
On this M4 Max, with thinking and an actual full-extension coding-agent workload, the tested Coder390 and TURBO-Fable configurations do not justify replacing the working Ornith pair. Coder390's five timeouts and Fable's correct but slow repairs are as important as the successful image probes. The measured deployment decision is to retain the existing models until an alternative configuration demonstrates usable complete-task behavior. NVIDIA model-card speed, reduced reasoning-token claims and a successful health endpoint are insufficient evidence for a local upgrade.
|
| 126 |
+
|
| 127 |
+
\section*{Disclosure and publication status}
|
| 128 |
+
This report is AI-assisted: tools assisted research, implementation, experiments, source comparison, analysis and manuscript drafting. No independent human manuscript review, peer acceptance, funding declaration, contributor-role attestation or conflict declaration is invented. Attribution follows the project owner's requested name, Chengyi Xu and KLIK team. Public hosting is not journal acceptance or a DOI assignment. Model and runtime licenses remain separate; no model weights are published with this artifact.
|
| 129 |
+
|
| 130 |
+
\begin{thebibliography}{7}
|
| 131 |
+
\bibitem{coder} nerkyor. Coder390 EfficientThink model card, pinned revision a3a1170a0c8fcb7a5f119ce16c70e7c54ea006ff. Repository identity and direct link in artifact \texttt{provenance.json}.
|
| 132 |
+
\bibitem{fable} DavidAU. TURBO-Fable Cold-Fusion model card, pinned revision ceb55042229d17dcf45df52ad84698339e63d4c5. Repository identity and direct link in artifact \texttt{provenance.json}.
|
| 133 |
+
\bibitem{sglangmetal} SGLang. Apple Silicon with Metal documentation. \url{https://docs.sglang.io/docs/hardware-platforms/apple_metal}.
|
| 134 |
+
\bibitem{sglangsource} SGLang. Speculative algorithm platform validation, inspected commit 72eab59bf6395c342a60967ec2a31761c505e151. \url{https://github.com/sgl-project/sglang}.
|
| 135 |
+
\bibitem{llama} llama.cpp. Metal serving, multimodal and speculative decoding implementation. \url{https://github.com/ggml-org/llama.cpp}.
|
| 136 |
+
\bibitem{splash} Splash runtime. \url{https://github.com/incoai/splash}.
|
| 137 |
+
\bibitem{prior} Chengyi Xu and KLIK team. Local Agent 256K Audit. \url{https://huggingface.co/datasets/ChengyiX/local-agent-256k-audit}.
|
| 138 |
+
\end{thebibliography}
|
| 139 |
+
\end{document}
|
paper/results-table.tex
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Ornith normal & 218.08 & 57.97 & 30.57 & 23.86 & Pass\\
|
| 2 |
+
Ornith abliterated & 204.68 & 55.74 & 32.33 & 28.38 & Pass\\
|
| 3 |
+
Coder390: none / b11036 & 901.61 & 399.69 & -- & -- & Timeout\\
|
| 4 |
+
Coder390: MTP4 / b11036 & 900.89 & 511.61 & -- & -- & Timeout\\
|
| 5 |
+
Coder390: MTP4 / residency & 900.39 & 578.64 & -- & -- & Timeout\\
|
| 6 |
+
Coder390: MTP4 / b11538 & 900.61 & 560.42 & -- & -- & Timeout\\
|
| 7 |
+
Coder390: DFlash2 / Splash & 900.54 & 454.65 & -- & -- & Timeout\\
|
| 8 |
+
Fable: MTP4 / b11036 & 889.64 & 431.99 & 4.32 & 2.44 & Pass\\
|
| 9 |
+
Fable: MTP2 / b11538 & 892.05 & 545.48 & 8.38 & 6.22 & Pass\\
|
| 10 |
+
Fable: none / b11538 & 795.80 & 364.57 & 6.50 & 3.15 & Pass\\
|
| 11 |
+
\bottomrule
|
protocol.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Task and evaluation protocol
|
| 2 |
+
|
| 3 |
+
## Fixed user instruction
|
| 4 |
+
|
| 5 |
+
> A regression in this Klik LLM client causes bounded retries to violate their configured delay cap. Investigate the real implementation and existing tests. Add a regression test, make a minimal repair without changing the public API or retryable-status policy, and run the relevant offline tests. Also cover the case where the initial delay exceeds the maximum delay. Do not read credentials, contact any external service, or alter other files unrelated to the retry policy. Finish with a concise explanation of the root cause, change, tests, and limitations. Work only in this checkout. Use the installed `.venv/bin/python -m pytest` for tests.
|
| 6 |
+
|
| 7 |
+
TaskpromptSHA256:6815313e62e8d2f6e6934021ab986234eebedcc7950fa1f4be1f92ecda9c1f8c. Originalrepositoryrevision and privacy boundary are inREPRODUCIBILITY.md. This instruction can be reproduced; theprivate implementation/tests/context files are withheld.
|
| 8 |
+
|
| 9 |
+
## Gate sequence
|
| 10 |
+
|
| 11 |
+
1. Fresh isolated clone; import-path identity checked.
|
| 12 |
+
2. Deliberately introduce the cap inversion, not a newly discovered production bug.
|
| 13 |
+
3. Independent gate must fail before agent work.
|
| 14 |
+
4. Actual Pi through Magpie, normalextensions/defaulttools, thinkinglow,900sdeadline.
|
| 15 |
+
5. Retain everyevent locally, including failedbefore-fixpytest calls; those failures are nottransportfaults.
|
| 16 |
+
6. Parent independent gate andfullsuite after completion/timeout; preserve diff andsource restoration state.
|
| 17 |
+
7. Completedrun requires afinalanswer andsource/test review. Correctrepairbutnoanswerwouldremainincomplete. No inventedvisibleratefortimeout.
|
| 18 |
+
8. Remove temporarygatewayroute/shutdownownedtestengine; restorepreviousservice.
|
| 19 |
+
|
| 20 |
+
## Vision
|
| 21 |
+
|
| 22 |
+
Known384x256handdrawnPNG:VISION42,2bluecircles,redrectangle. Everycandidate llama configuration received1probe withthinkingon. NativeSplash/DFlash2runwastext-onlyandcannotinheritvisionpass.
|
| 23 |
+
|
| 24 |
+
## Comparison limits
|
| 25 |
+
|
| 26 |
+
One run perconfiguration; no confidence intervals. Different runtimes, target architectures, quantizationlayouts, samplingtemperatures, caches/toolpaths andhostload areconfounders. Hardwaregate/deploymentveto isbounded toobservedconfigurations. Nooriginalmodel-benchmarkreplication,actual256kcandidateproof orrefusalbehaviorbenchmark isclaimed.
|
results/processed/artifact-environment.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"scope": "publication/measurement host tools, not unrecorded CUDA environment",
|
| 3 |
+
"python": "3.14.3",
|
| 4 |
+
"node": "v24.11.1",
|
| 5 |
+
"pi": "1.1.0",
|
| 6 |
+
"magpie_version_scope": "Installedgateway; not a pinned upstream gateway implementation",
|
| 7 |
+
"plot_dependencies": {
|
| 8 |
+
"matplotlib": "3.10.9",
|
| 9 |
+
"Pillow": "11.3.0",
|
| 10 |
+
"PyYAML": "6.0.3"
|
| 11 |
+
},
|
| 12 |
+
"tectonic": "Tectonic 0.17.0"
|
| 13 |
+
}
|
results/processed/provenance.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"models": [
|
| 3 |
+
{
|
| 4 |
+
"label": "Coder390Q4LynnStyleMTP",
|
| 5 |
+
"repository": "nerkyor/Qwen3.8-27B-Coder390-EfficientThink-Opus5.5-GPT6Astra-Grok4.7-DSV4Pro-K3-SFT-RLOO-MTP-DFlash2",
|
| 6 |
+
"revision": "a3a1170a0c8fcb7a5f119ce16c70e7c54ea006ff",
|
| 7 |
+
"files": [
|
| 8 |
+
{
|
| 9 |
+
"file": "GGUF/Qwen3.8-27B-Coder390-EfficientThink-Q4LynnStyle-MTP.gguf",
|
| 10 |
+
"bytes": 19620406592,
|
| 11 |
+
"sha256": "56c7c605a59764d9f0bb645d4eb335f1574af2c9e74020386139597df0e872f5",
|
| 12 |
+
"verified": true
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"file": "GGUF/mmproj-Qwen3.8-27B-Q8_0.gguf",
|
| 16 |
+
"bytes": 629247008,
|
| 17 |
+
"sha256": "cae9799dc9196449b0d83f716e64af89d5cf65147510462e5a629a2aa23adb32",
|
| 18 |
+
"verified": true
|
| 19 |
+
}
|
| 20 |
+
],
|
| 21 |
+
"url": "https://huggingface.co/nerkyor/Qwen3.8-27B-Coder390-EfficientThink-Opus5.5-GPT6Astra-Grok4.7-DSV4Pro-K3-SFT-RLOO-MTP-DFlash2/tree/a3a1170a0c8fcb7a5f119ce16c70e7c54ea006ff"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"label": "FableQ4_K_MMTP",
|
| 25 |
+
"repository": "DavidAU/Qwen3.8-27B-TURBO-Fable-Cold-Fusion-735-882-Heretic-Uncensored-NEO-CODER-MAX-MTP-GGUF",
|
| 26 |
+
"revision": "ceb55042229d17dcf45df52ad84698339e63d4c5",
|
| 27 |
+
"files": [
|
| 28 |
+
{
|
| 29 |
+
"file": "Qwen3.8-27B-TurboFCFusion-735-882-Here-Uncen-NEO-CODER-MAX-MTP-Q4_K_M.gguf",
|
| 30 |
+
"bytes": 18498573856,
|
| 31 |
+
"sha256": "bc7a6cf2bcc78d1190aaf04d1ab1c5cb845b6ff23aa0e7d24fe0d2ea6d3a7c7c",
|
| 32 |
+
"verified": true
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"file": "mmproj-BF16.gguf",
|
| 36 |
+
"bytes": 931145920,
|
| 37 |
+
"sha256": "b0d8d89e9c9c90e0fb8ca74742d9d9bd7cc0f966a29b6f8c14227000ea6bd89e",
|
| 38 |
+
"verified": true
|
| 39 |
+
}
|
| 40 |
+
],
|
| 41 |
+
"url": "https://huggingface.co/DavidAU/Qwen3.8-27B-TURBO-Fable-Cold-Fusion-735-882-Heretic-Uncensored-NEO-CODER-MAX-MTP-GGUF/tree/ceb55042229d17dcf45df52ad84698339e63d4c5"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"label": "normalOrnith",
|
| 45 |
+
"repository": "ornith-ai/Ornith-1.5-35B-A3B-GGUF",
|
| 46 |
+
"revision": "12393612fd4f730ff5aadc23e9b8f9648aa49ceb",
|
| 47 |
+
"file": "Ornith-1.5-35B-Q4_K_M.gguf",
|
| 48 |
+
"sha256": "42739874cc2ccfdb8523b23fbe52e29b2a7555c8176737ca9ca0b5d59859d41f",
|
| 49 |
+
"scope": "Pinned retained deployment provenance; task trial uses installed native preset",
|
| 50 |
+
"url": "https://huggingface.co/ornith-ai/Ornith-1.5-35B-A3B-GGUF/tree/12393612fd4f730ff5aadc23e9b8f9648aa49ceb"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"label": "abliteratedOrnith",
|
| 54 |
+
"repository": "PocketAiHub/Ornith-1.5-35B-A3B-Abliterated-GGUF",
|
| 55 |
+
"revision": "78c2971382a49b442ce044fd4e17169217b0b36c",
|
| 56 |
+
"file": "Ornith-1.5-35B-A3B-Abliterated-Q4_K_M.gguf",
|
| 57 |
+
"sha256": "a07f299e83a398b5078c1cb8ab4ec96333c8ea9d10d0cb479cb073056fedd3d0",
|
| 58 |
+
"scope": "Pinned retained deployment provenance; task trial uses installed native preset",
|
| 59 |
+
"url": "https://huggingface.co/PocketAiHub/Ornith-1.5-35B-A3B-Abliterated-GGUF/tree/78c2971382a49b442ce044fd4e17169217b0b36c"
|
| 60 |
+
}
|
| 61 |
+
],
|
| 62 |
+
"hardware": {
|
| 63 |
+
"chip": "AppleM4Max",
|
| 64 |
+
"gpu_cores": 40,
|
| 65 |
+
"unified_memory_gib": 64,
|
| 66 |
+
"macos_observed": "27.2.0",
|
| 67 |
+
"host_scope": "Concurrent real workstation; variable load and17\u201318GBswap observation, not quiet lab"
|
| 68 |
+
},
|
| 69 |
+
"runtimes": {
|
| 70 |
+
"llama_b11036": {
|
| 71 |
+
"commit": "911f6cdc8",
|
| 72 |
+
"version": "0.4.1-dev"
|
| 73 |
+
},
|
| 74 |
+
"llama_b11538": {
|
| 75 |
+
"commit": "79e2e74eb",
|
| 76 |
+
"version": "0.6.0-dev",
|
| 77 |
+
"archive_sha256": "291c46b9288975ec54771d4056911d9cb773b954afb6c5eba35dc9fa359d45f4",
|
| 78 |
+
"binary_sha256": "1bf5602a2be50097c44282a6ecc63234d94ee8f96d39fd45fed6eff4e74b6b41"
|
| 79 |
+
},
|
| 80 |
+
"splash": {
|
| 81 |
+
"commit": "c64a578fcfaa059023a2ca57230d4aead134b73b",
|
| 82 |
+
"local_patches": [
|
| 83 |
+
"Q4_KGDNalpha/betaacceptance",
|
| 84 |
+
"opt-in512-rowprefillcap"
|
| 85 |
+
]
|
| 86 |
+
},
|
| 87 |
+
"sglang_inspected": {
|
| 88 |
+
"commit": "72eab59bf6395c342a60967ec2a31761c505e151",
|
| 89 |
+
"scope": "Primarysourcecompatibilityinspection only; noSGLanginferenceexperiment"
|
| 90 |
+
}
|
| 91 |
+
}
|
| 92 |
+
}
|
results/processed/runs.json
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"scope": "Single-run-per-configuration descriptive task measurements; failed/timeout records retained. No private source/transcript is exported.",
|
| 4 |
+
"prompt_sha256": "6815313e62e8d2f6e6934021ab986234eebedcc7950fa1f4be1f92ecda9c1f8c",
|
| 5 |
+
"repository_revision": "45f075409a47aa8834c3b166bbb57b64194ca13a",
|
| 6 |
+
"candidate_sampling": {
|
| 7 |
+
"temperature": 0.6,
|
| 8 |
+
"top_p": 0.95,
|
| 9 |
+
"thinking": "low"
|
| 10 |
+
},
|
| 11 |
+
"baseline_sampling_caveat": "Ornith backend defaults temperature1.0/top_p0.95; not randomized precision/model-equivalence experiment. Wall/prefill gaps and failed candidate runs are not discarded.",
|
| 12 |
+
"actual256k_candidate_proof": false,
|
| 13 |
+
"production_replaced": false,
|
| 14 |
+
"runs": [
|
| 15 |
+
{
|
| 16 |
+
"run_id": "coder390-dflash-0-repair",
|
| 17 |
+
"elapsed_s": 900.5439520420041,
|
| 18 |
+
"initial_input_tokens": 25248,
|
| 19 |
+
"initial_ttft_s": 454.65274166599556,
|
| 20 |
+
"tool_calls": 7,
|
| 21 |
+
"tool_errors": 0,
|
| 22 |
+
"visible_stream_tps": null,
|
| 23 |
+
"visible_cycle_tps": null,
|
| 24 |
+
"completed": false,
|
| 25 |
+
"gate_pass": false,
|
| 26 |
+
"full_suite_pass": false,
|
| 27 |
+
"repair_verified": false
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"run_id": "coder390-mtp-4-b11538-repair",
|
| 31 |
+
"elapsed_s": 900.6056057919923,
|
| 32 |
+
"initial_input_tokens": 25254,
|
| 33 |
+
"initial_ttft_s": 560.4180580840039,
|
| 34 |
+
"tool_calls": 4,
|
| 35 |
+
"tool_errors": 0,
|
| 36 |
+
"visible_stream_tps": null,
|
| 37 |
+
"visible_cycle_tps": null,
|
| 38 |
+
"completed": false,
|
| 39 |
+
"gate_pass": false,
|
| 40 |
+
"full_suite_pass": false,
|
| 41 |
+
"repair_verified": false
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"run_id": "coder390-mtp-4-repair",
|
| 45 |
+
"elapsed_s": 900.8888564999943,
|
| 46 |
+
"initial_input_tokens": 25248,
|
| 47 |
+
"initial_ttft_s": 511.6134912500129,
|
| 48 |
+
"tool_calls": 6,
|
| 49 |
+
"tool_errors": 0,
|
| 50 |
+
"visible_stream_tps": null,
|
| 51 |
+
"visible_cycle_tps": null,
|
| 52 |
+
"completed": false,
|
| 53 |
+
"gate_pass": false,
|
| 54 |
+
"full_suite_pass": false,
|
| 55 |
+
"repair_verified": false
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"run_id": "coder390-mtp-4-wired-repair",
|
| 59 |
+
"elapsed_s": 900.3876166249975,
|
| 60 |
+
"initial_input_tokens": 25250,
|
| 61 |
+
"initial_ttft_s": 578.6395830829861,
|
| 62 |
+
"tool_calls": 4,
|
| 63 |
+
"tool_errors": 0,
|
| 64 |
+
"visible_stream_tps": null,
|
| 65 |
+
"visible_cycle_tps": null,
|
| 66 |
+
"completed": false,
|
| 67 |
+
"gate_pass": false,
|
| 68 |
+
"full_suite_pass": false,
|
| 69 |
+
"repair_verified": false
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"run_id": "coder390-none-0-repair",
|
| 73 |
+
"elapsed_s": 901.6147849999979,
|
| 74 |
+
"initial_input_tokens": 25247,
|
| 75 |
+
"initial_ttft_s": 399.6929838340002,
|
| 76 |
+
"tool_calls": 6,
|
| 77 |
+
"tool_errors": 0,
|
| 78 |
+
"visible_stream_tps": null,
|
| 79 |
+
"visible_cycle_tps": null,
|
| 80 |
+
"completed": false,
|
| 81 |
+
"gate_pass": false,
|
| 82 |
+
"full_suite_pass": false,
|
| 83 |
+
"repair_verified": false
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"run_id": "ornith-normal-thinking-repair",
|
| 87 |
+
"elapsed_s": 218.07918445799442,
|
| 88 |
+
"initial_input_tokens": 25220,
|
| 89 |
+
"initial_ttft_s": 57.974555624998175,
|
| 90 |
+
"tool_calls": 13,
|
| 91 |
+
"tool_errors": 0,
|
| 92 |
+
"visible_stream_tps": 30.5667864536839,
|
| 93 |
+
"visible_cycle_tps": 23.863257486100046,
|
| 94 |
+
"completed": true,
|
| 95 |
+
"gate_pass": true,
|
| 96 |
+
"full_suite_pass": true,
|
| 97 |
+
"repair_verified": true
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"run_id": "ornith-uncensored-thinking-repair",
|
| 101 |
+
"elapsed_s": 204.67863974999636,
|
| 102 |
+
"initial_input_tokens": 25222,
|
| 103 |
+
"initial_ttft_s": 55.73794937500497,
|
| 104 |
+
"tool_calls": 12,
|
| 105 |
+
"tool_errors": 0,
|
| 106 |
+
"visible_stream_tps": 32.325835061578886,
|
| 107 |
+
"visible_cycle_tps": 28.383798305340317,
|
| 108 |
+
"completed": true,
|
| 109 |
+
"gate_pass": true,
|
| 110 |
+
"full_suite_pass": true,
|
| 111 |
+
"repair_verified": true
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"run_id": "fable-mtp-2-b11538-repair",
|
| 115 |
+
"elapsed_s": 892.0477351669979,
|
| 116 |
+
"initial_input_tokens": 25248,
|
| 117 |
+
"initial_ttft_s": 545.4822127910011,
|
| 118 |
+
"tool_calls": 10,
|
| 119 |
+
"tool_errors": 1,
|
| 120 |
+
"visible_stream_tps": 8.383198154549364,
|
| 121 |
+
"visible_cycle_tps": 6.220912677209678,
|
| 122 |
+
"completed": true,
|
| 123 |
+
"gate_pass": true,
|
| 124 |
+
"full_suite_pass": true,
|
| 125 |
+
"repair_verified": true
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"run_id": "fable-mtp-4-repair",
|
| 129 |
+
"elapsed_s": 889.6382008749933,
|
| 130 |
+
"initial_input_tokens": 25242,
|
| 131 |
+
"initial_ttft_s": 431.99032208300196,
|
| 132 |
+
"tool_calls": 10,
|
| 133 |
+
"tool_errors": 1,
|
| 134 |
+
"visible_stream_tps": 4.32499664508571,
|
| 135 |
+
"visible_cycle_tps": 2.442347802250632,
|
| 136 |
+
"completed": true,
|
| 137 |
+
"gate_pass": true,
|
| 138 |
+
"full_suite_pass": true,
|
| 139 |
+
"repair_verified": true
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"run_id": "fable-none-0-b11538-repair",
|
| 143 |
+
"elapsed_s": 795.797991333995,
|
| 144 |
+
"initial_input_tokens": 25247,
|
| 145 |
+
"initial_ttft_s": 364.5697842500085,
|
| 146 |
+
"tool_calls": 10,
|
| 147 |
+
"tool_errors": 0,
|
| 148 |
+
"visible_stream_tps": 6.50344451839138,
|
| 149 |
+
"visible_cycle_tps": 3.145782000635697,
|
| 150 |
+
"completed": true,
|
| 151 |
+
"gate_pass": true,
|
| 152 |
+
"full_suite_pass": true,
|
| 153 |
+
"repair_verified": true
|
| 154 |
+
}
|
| 155 |
+
]
|
| 156 |
+
}
|
results/processed/vision-fixture.png
ADDED
|
Git LFS Details
|
results/processed/vision.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"fixture_expected": {
|
| 3 |
+
"text": "VISION 42",
|
| 4 |
+
"blue_circles": 2,
|
| 5 |
+
"rectangle": "red"
|
| 6 |
+
},
|
| 7 |
+
"runs": [
|
| 8 |
+
{
|
| 9 |
+
"run_id": "coder390-dflash-0",
|
| 10 |
+
"tested": false,
|
| 11 |
+
"correct": null,
|
| 12 |
+
"reason": "Native text-only run, projector not loaded"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"run_id": "coder390-mtp-4-b11538",
|
| 16 |
+
"tested": true,
|
| 17 |
+
"correct": true,
|
| 18 |
+
"elapsed_s": 18.3520681670052,
|
| 19 |
+
"visible_answer": "Text: VISION 42\nBlue circles: 2\nRectangle color: red",
|
| 20 |
+
"reasoning_content_returned": true,
|
| 21 |
+
"scope": "Oneknown384x256fixture; notmultimodalbenchmark"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"run_id": "coder390-mtp-4",
|
| 25 |
+
"tested": true,
|
| 26 |
+
"correct": true,
|
| 27 |
+
"elapsed_s": 25.302896834007697,
|
| 28 |
+
"visible_answer": "Text: VISION 42\nBlue circles: 2\nRectangle color: red",
|
| 29 |
+
"reasoning_content_returned": true,
|
| 30 |
+
"scope": "Oneknown384x256fixture; notmultimodalbenchmark"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"run_id": "coder390-mtp-4-wired",
|
| 34 |
+
"tested": true,
|
| 35 |
+
"correct": true,
|
| 36 |
+
"elapsed_s": 25.24740708299214,
|
| 37 |
+
"visible_answer": "Text: VISION 42\nBlue circles: 2\nRectangle color: red",
|
| 38 |
+
"reasoning_content_returned": true,
|
| 39 |
+
"scope": "Oneknown384x256fixture; notmultimodalbenchmark"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"run_id": "coder390-none-0",
|
| 43 |
+
"tested": true,
|
| 44 |
+
"correct": true,
|
| 45 |
+
"elapsed_s": 6.812550208007451,
|
| 46 |
+
"visible_answer": "Text: VISION 42\nBlue circles: 2\nRectangle color: red",
|
| 47 |
+
"reasoning_content_returned": true,
|
| 48 |
+
"scope": "Oneknown384x256fixture; notmultimodalbenchmark"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"run_id": "fable-mtp-2-b11538",
|
| 52 |
+
"tested": true,
|
| 53 |
+
"correct": true,
|
| 54 |
+
"elapsed_s": 13.7357887919934,
|
| 55 |
+
"visible_answer": "VISION 42; 2 blue circles; red rectangle.",
|
| 56 |
+
"reasoning_content_returned": true,
|
| 57 |
+
"scope": "Oneknown384x256fixture; notmultimodalbenchmark"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"run_id": "fable-mtp-4",
|
| 61 |
+
"tested": true,
|
| 62 |
+
"correct": true,
|
| 63 |
+
"elapsed_s": 22.614452459005406,
|
| 64 |
+
"visible_answer": "Text: VISION 42\nBlue circles: 2\nRectangle color: Red",
|
| 65 |
+
"reasoning_content_returned": true,
|
| 66 |
+
"scope": "Oneknown384x256fixture; notmultimodalbenchmark"
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"run_id": "fable-none-0-b11538",
|
| 70 |
+
"tested": true,
|
| 71 |
+
"correct": true,
|
| 72 |
+
"elapsed_s": 7.312152416998288,
|
| 73 |
+
"visible_answer": "The text is \"VISION 42\". There are 2 blue circles. The rectangle is red.",
|
| 74 |
+
"reasoning_content_returned": true,
|
| 75 |
+
"scope": "Oneknown384x256fixture; notmultimodalbenchmark"
|
| 76 |
+
}
|
| 77 |
+
]
|
| 78 |
+
}
|
tools/xelatex
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Explicit Tectonic compatibility adapter for the skill's compile.py driver.
|
| 3 |
+
Not a claim that a system XeLaTeX distribution is installed. Reject shell escape.
|
| 4 |
+
"""
|
| 5 |
+
import os
|
| 6 |
+
import shutil
|
| 7 |
+
import sys
|
| 8 |
+
|
| 9 |
+
allowed={'-synctex=1','-interaction=nonstopmode','-file-line-error','-no-shell-escape'}
|
| 10 |
+
files=[]
|
| 11 |
+
for arg in sys.argv[1:]:
|
| 12 |
+
if arg in allowed:continue
|
| 13 |
+
if arg.startswith('-'):raise SystemExit('Unsupported compiler option: '+arg)
|
| 14 |
+
files.append(arg)
|
| 15 |
+
if len(files)!=1:raise SystemExit('Expected exactly one TeX file')
|
| 16 |
+
exe=shutil.which('tectonic')
|
| 17 |
+
if not exe:raise SystemExit('Tectonic is required')
|
| 18 |
+
print('Build backend: Tectonic via explicit compile.py compatibility adapter; shell escape disabled.',flush=True)
|
| 19 |
+
os.execv(exe,[exe,'--untrusted','--keep-logs','--synctex',files[0]])
|