aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
aien-sovereign-core-mv / crates / aien-inference-abi / fixtures / qwen38 / PROVENANCE.md
| 1 | # Qwen3.8-27B host reference golden |
| 2 | |
| 3 | `gen-chat-max-24.json` is the greedy 24-token answer of the host reference forward |
| 4 | (`crates/aien-inference-abi/src/qwen38.rs`, run with the `qwen38_check` binary in `generate` mode) |
| 5 | for one chat prompt. It is the expected output that `tools/qwen38_serve_gate.sh` compares the live |
| 6 | server against, and `tests/qwen38_chat_template.rs` checks that the chat template renders the same |
| 7 | prompt ids. |
| 8 | |
| 9 | - Model: Hugging Face `Qwen/Qwen3.8-27B-FP8`, revision `017b9c7af6b5689d5dd426a76e0bc077eb5ca20a`. |
| 10 | - Prompt (thinking off), as rendered by the model's chat template: |
| 11 | |
| 12 | ``` |
| 13 | <|im_start|>user |
| 14 | Write a C function that returns the larger of two ints.<|im_end|> |
| 15 | <|im_start|>assistant |
| 16 | <think> |
| 17 | |
| 18 | </think> |
| 19 | ``` |
| 20 | |
| 21 | - Command: `qwen38_check generate <checkpoint-dir> prompt-chat-max.txt 24 gen-chat-max-24.json` |
| 22 | on the DGX Spark CPU, 2026-10-18. |
| 23 | - Answer text: ```` ```c\nint max(int a, int b) {\n return (a > b) ? a : b ```` |
| 24 | - Fields: `prompt_ids`, `generated_ids` (the golden), `generated_text`, `top5` logits per step, |
| 25 | and the wall time of each step. Only the ids are compared. |
| 26 | |
| 27 | Copied unchanged from the operator's reference folder so that anyone can run the gate; do not |
| 28 | edit it. Regenerate it only with the same command and model revision. |
| 29 | |
| 30 | The same bytes are kept as evidence in |
| 31 | `docs/inference/evidence/qwen38-ref-20261018/gen-chat-max-24.json` (sha256 b5ec5494...); this copy |
| 32 | is the test fixture and the gate default. |
| 33 | |
| 34 | # Speed test references |
| 35 | |
| 36 | `decode-lighthouses-256.json`: the request `tools/qwen38_serve_speed.sh` sends for its three |
| 37 | decode runs (greedy, 256 tokens, thinking off) and the 256 token ids the live server returned |
| 38 | for it on 2026-10-19 (binary sha256 df936011..., sovereign-core 46134247, omega 0010f7d3). Taken |
| 39 | unchanged from `evidence/qwen38-serve-fast-20261019/after/new-1.json`; all four runs there gave |
| 40 | the same ids. The previous binary also gave the same ids. The speed tool reports MATCH when a |
| 41 | server returns exactly these ids. |
| 42 | |
| 43 | `speed-corpus.txt`: the text the speed tool cuts its long prompts from (the first 7,100 and |
| 44 | 100,000 bytes). It is plain license texts, freely redistributable verbatim, concatenated in this |
| 45 | order: the GNU AGPL v3 (this repository's LICENSE), and from Ubuntu's |
| 46 | /usr/share/common-licenses: GPL-3, Apache-2.0, MPL-2.0, GFDL-1.3. The corpus used for the |
| 47 | first-token figures in older evidence folders was not recorded, so first-token times measured |
| 48 | with this file are not comparable with those. |