README and UPSTREAM: current status, known volume problem, artifact commands

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Robert KarlandClaude Fable 5.1 committed 2026-10-04 15:14:53 -07:00
1 parent 8f18634c30
commit d0a44ea7e7
2 files changed
+48 -16

No files matched your search

+22 -12
View File
@@ -7,22 +7,32 @@ build, copy one binary, run. Nothing is downloaded during the build or at start-
## Status
Work in progress. What works today, checked on an RTX 3090 pod:
Work in progress. What works today, checked on RTX 3090 pods:
- Clone, `git submodule update --init`, `make build`, with no network access during the build.
- One binary, `build/unbiased-strata`, that loads the model and serves an OpenAI-style chat API. It answered
streaming and non-streaming requests correctly, with the model's reasoning separated from its answer and
draft tokens being accepted.
- One binary, `build/unbiased-strata`, that loads the model and serves an OpenAI-style chat API: streaming
and non-streaming replies, the model's reasoning separated from its answer, and tool calls.
- A coding agent (pi) completed a multi-step task against it: it wrote a program, ran it through its tools
and reported the result.
Not done yet:
- **No speed is claimed.** The only end-to-end run so far was on a pod whose network volume could not be
read normally by the engine, so it ran in a slow fallback mode. A run on a machine with a local disk is
still to do.
- **No speed is claimed.** The only end-to-end runs so far were on a pod whose network volume the engine
could not load experts from in its normal way (see Known problems), so it ran in a fallback mode. In that
mode it generated at 21 to 61 tokens per second. A run in the normal mode on a machine with a local disk
is still to do.
- The prepared model files (below) are not published yet.
- The engine source is still upstream's in full. Cutting it down to what this one configuration needs is
the next piece of work.
- Tool calling and image input are not supported.
- The engine source is still upstream's in full. 85 of its 272 source files are not compiled into the binary
at all; removing those, and then the multi-GPU, AMD, Windows and other-model code, is the next piece of work.
- Image input is not supported.
## Known problems
- **RunPod network volumes.** With the model on a RunPod network volume (`/workspace`), the engine fails at
start with "short read or unreadable shard": once it has pinned its expert arena, reads from the volume
return "cannot allocate memory". The cause is not known. Keeping the model on local disk avoids it. On a
pod without enough local disk, a working fallback was shard 1 in `/dev/shm`, shard 2 on local disk, and
`-- --mmap-experts` at the end of the command line.
## What it supports
@@ -40,7 +50,7 @@ Tested so far:
| Machine | What was checked |
| --- | --- |
| RTX 3090 pod, CUDA 12.8, g++ 13.3 | `git submodule update --init` and `make build` complete with network access blocked for the build (144 s); the binary starts. The model has not been run. |
| RTX 3090 pods, CUDA 12.8, g++ 13.3 | `git submodule update --init` and `make build` complete with network access blocked for the build. The model loads and answers chat requests, in the fallback mode described under Known problems. |
## Build
@@ -69,7 +79,7 @@ It listens on `127.0.0.1:8080` and serves `POST /v1/chat/completions` (with stre
`--port`. Inside a container set `--threads` yourself: the default is every physical core of the host.
Requests are greedy unless they set a `temperature` above zero. The model thinks before it answers; send
`"reasoning_effort": "none"` to turn that off.
`"reasoning_effort": "none"` to turn that off. Tool calling follows the OpenAI format (`tools`, `tool_calls`).
## Model files
+26 -4
View File
@@ -17,7 +17,10 @@ The first commit of this repository is the upstream snapshot as published. One f
- **Removed:** the Python installer and launchers, the Python server and web app, the Python tools, the
Intel SYCL port, Docker files, benchmark results, the test suite, translations, and all docs except
`docs/upstream/DETAILS.md` and the paper.
- **Engine source (`src/`, `include/`):** unchanged.
- **Added:** `frontend/`, the C++ front end (tokenizer, chat template, output parser and HTTP API, using
llama.cpp's code from the submodule), and a build target that links it with the engine into one binary.
- **Engine source (`src/`, `include/`):** unchanged so far. The engine's own program is compiled into the
binary with its entry point renamed; the front end starts it as a child process.
Code paths for other models, AMD cards and Windows are still present in the engine source. They are not
built by `make build`, not tested and not supported here. They are left in place so the engine stays
@@ -25,6 +28,25 @@ identical to upstream and can be updated by re-importing it.
## Prepared model files
The pack and the draft head are produced once with upstream Strata's tools at the commit above
(`tools/iq_pack.py` for the pack; `tools/mtp_fetch.py`, `tools/mtp_pack.py` and `tools/mtp_rt.py` for the
draft head). The exact commands and checksums will be recorded here when the files are made.
The pack and the draft head are produced once with upstream Strata's tools at the commit above. These are
the commands that were used, with `U` an upstream checkout, `G` this repository's
`third_party/llama.cpp/gguf-py`, and Python 3 with `numpy` and `regex`:
```
export STRATA_GGUF_PY=$G
# the pack, from the model's first shard (the second must be beside it)
python $U/tools/iq_pack.py --gguf Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --out pack-iq3-xxs
cp $U/data/expert-profile.bin pack-iq3-xxs/
# the draft head, from the original checkpoint's 31 draft-head tensors (about 5 GB, fetched over HTTP)
python $U/tools/mtp_fetch.py fetch --out mtp-bf16
python $U/tools/mtp_fetch.py verify --out mtp-bf16
python $U/tools/mtp_pack.py --src mtp-bf16 --experts q2_0 --out mtp-bf16/mtp-q2_0.gguf
python $U/tools/mtp_rt.py --gguf mtp-bf16/mtp-q2_0.gguf --out mtp
cp $U/data/draft_vocab.bin mtp/
```
The model shards used were revision `ed59f92082b1e93c0e96d60a8b11aab089b52f09` of
ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, verified against their published SHA-256 checksums. The
prepared files have not been published yet, and their checksums were not recorded before the pod that
held them was shut down.