Where both sides did the same thing, ours stays:
- split models: shards found by name and the experts filled by tensor name, not upstream's native_experts.txt
shard column and model_shards(); iq_pack.py keeps ours and exports the model's chat template with its tokenizer
- the PLE table's span check
- README: upstream's front page (with the prompt cache under "Good to know"); the unsloth files, the second GPU
and the prompt cache moved to docs/DETAILS.md
Upstream's engine changes in our code:
- STOP between the prompt path's chunks and before every verify window of the serve loop; a prompt stopped
part-way leaves the prompt cache's live sequence at the chunks read (Prefill::processed(), ss.ple_prev
advanced to them)
- the expert cache sized once its slots are written, on the main GPU and on the second GPU (its tier drops empty
slots while short of --second-gpu-reserve-mib)
- the prompt chunk halves until its buffers fit in the lendable cache slots (the shared prompt-path setup)
- server.py: the engine reader thread with heartbeats and STOP, with our cached-token usage fields and the
engine generator closed inside the FIFO; a disconnect logs as cancel
- STRATA_TRACE and STRATA_POOL_TRACE, and the VRAM left once everything is loaded (both GPUs)
Claude-Session: https://claude.ai/code/session_01YDx8gSYSbts2783qXv2Nxz
Streaming
- tool calls stream as they are written (OpenAI tool_calls deltas, Anthropic input_json_delta)
- keep-alives while a long prompt is read, progress in the server window, GET /status
- closing the connection or pressing stop really stops the engine (STOP)
Stalled requests (mostly image turns)
- the expert cache is sized after its slots are written (Windows only counts GPU memory once it is
touched), so the reserve really stays free instead of the card running at 0 MiB and paging
- the prompt chunk shrinks when its buffers do not fit in the cache, instead of allocating on top
- the image encoder warms up before the engine starts; images are encoded in request order
- the log shows the VRAM left once everything is loaded
setup.py now requires engine 0.1.2 (downloaded automatically on the next START-HERE.bat).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0154bwiad8gY7wRehCXy27pN