Commit Graph
31 Commits
Author SHA1 Message Date
lotherk 570b5eb6c4 Container: build the unittest image in a Dockerfile; add a P40 compose example
Multi-stage Dockerfile: build (nvidia/cuda 12.8.1 devel, PASCAL=1) then a
runtime stage (nvidia/cuda 12.8.1 runtime), one binary (build/unbiased-strata),
a /health check. examples/compose/p40.yml shows a one-card Tesla P40 service
with the model, pack and MTP mounted read-only.
2026-10-13 13:27:34 +01:00
Robert KarlandClaude Fable 5.1 121d23ac2e Front end: leave the engine's 8-slot reserve out of max_new
The engine refuses a request unless prompt + max_new + 8 <= context, but
the front end sized max_new as context - prompt, so any client asking for
more tokens than remained (pi sends max_tokens 32768 on a 64K card) was
refused with "prompt (N) + max_new (M) exceeds the context" on every
prompt longer than context - max_tokens. Seen on the 1080 Ti Coder right
after a pi compaction left a 48K prompt.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
v0.0.1
2026-10-12 19:27:36 -07:00
Robert KarlandClaude Fable 5.1 f07b81e08b Front end: SSE keepalive comment after 15 s without a delta; cancel the generation when the client is gone
Content and tool calls are published only once the message is complete, so a long answer is silent for minutes. pi's HTTP idle timeout (5 min) then dropped the stream, retried the same prompt, and the engine finished the orphaned generation first: a 21,826-token turn on the 1080 Ti ran twice. The per-token callback now writes ': keepalive' when 15 s pass without an emit; a failed write cancels the run.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-12 15:07:32 -07:00
Robert KarlandClaude Fable 5.1 9af2e2796d Plan: warm nvprof numbers at both fit edges
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 10:49:54 -07:00
Robert KarlandClaude Fable 5.1 96d211aa24 Plan: the 4090 in VM 221 is free and becomes the development card from step 3
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 10:45:10 -07:00
Robert KarlandClaude Fable 5.1 7db4bf1745 Plan: the Q4 number to beat is quoted at N=30 after review
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 09:49:29 -07:00
Robert KarlandClaude Fable 5.1 e9a265c555 Plan: the Phase 1 sweep rows
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 09:43:46 -07:00
Robert KarlandClaude Fable 5.1 649989af7b Plan: restore the Phase 0 measurements block (lost in b158941) with the re-run replay numbers
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 09:33:18 -07:00
Robert KarlandClaude Fable 5.1 3c31845360 Plan: step 1 closed with the measured parity tolerances
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 09:30:55 -07:00
Robert KarlandClaude Fable 5.1 521d27ffd2 The Qwen3.6 port study; the plan corrected to its census and its eight disagreements
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 09:28:24 -07:00
Robert KarlandClaude Fable 5.1 b158941721 Plan: oracle done and reviewed; the parity tolerance policy
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 09:18:27 -07:00
Robert KarlandClaude Fable 5.1 86343572e6 Port notes: the geometry inventory; the plumbing gap is Maya-scale even though the kernel gap is smaller
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 08:47:44 -07:00
Robert KarlandClaude Fable 5.1 38d4bebe20 Plan: tooling restored
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 08:43:29 -07:00
Robert KarlandClaude Fable 5.1 c00942d2c2 Restore the development tooling the port needs from the import commit
ref/load.py, the pack, profile, MTP, tokenizer and fixture tools with their tests, and the
tests/ sources the root CMakeLists already wires under STRATA_BUILD_TESTS. Development only:
the shipped binary still needs no Python. Taken unchanged from 12a7825 (Strata 6f32ec0); the
HIP tests, the installer tests and the conversation-cache tests stay out.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 08:43:10 -07:00
Robert KarlandClaude Fable 5.1 70f0c55dfa Port notes: upstream tooling survey; the oracle must be written new, tools and tests restored from the import commit
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 08:42:34 -07:00
Robert KarlandClaude Fable 5.1 7e5497233a Plan: VM 211 address and toolchain; a rented RunPod card as the development machine
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 08:17:51 -07:00
Robert KarlandClaude Fable 5.1 4da4981535 Plan: the 1080 Ti is the only card; VM 211 created; Pascal build first
The A6000 and the 4090 are in use by other agents, so VM 211 (a clone of 210 with the
1080 Ti, 8 vCPU, 12 GiB) is both the measurement and the development machine, and the
sm_61 experimental build is the working build from the first step. Host state checked:
18 GiB available before VM 211, link Gen3 x8.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 08:13:34 -07:00
Robert KarlandClaude Fable 5.1 00e09274a2 Plan: Qwen3.6-35B-A3B on one NVIDIA card from Pascal up, by porting the engine
The study and execution plan for running Qwen3.6-35B-A3B natively on this tree's Strata
snapshot (6f32ec0), on any single card of compute capability 6.1 or newer with 6 to 32 GB,
self-sized across VRAM, RAM and disk. llama.cpp is the baseline and the oracle only; Project
Maya is the method reference. Primary rung: the .57 host's GTX 1080 Ti with a 12 GiB VM.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
2026-10-11 08:07:06 -07:00
Robert KarlandClaude Fable 5.1 46c46ecfc1 Front end: image input through the model's vision encoder; engine child supervision; tests
Images: --mmproj PATH loads the Qwen3.8 Flash-Next projector through llama.cpp's mtmd
library and encodes image_url parts on the CPU (frontend/vision.hpp). The embeddings go to
the engine as a GENI request, its existing vision path, with the prompt's <|image_pad|>
runs standing in for each image. --vision-tokens caps the tokens per image. GET /v1/models
lists "image" under input_modalities when the encoder is loaded. Checked on an RTX 4090:
screenshots, photos, several images in one message, and pi's file attachments and
clipboard paste.

Engine process: the engine is started and watched from frontend/engine.hpp; when it exits
or its stall watchdog fires, the front end exits too, for a supervisor to restart. Stall
reports add the current stage and thread wait channels. Reasoning streams; content and
tool calls are sent once the whole message is parsed, so partial JSON never changes
arguments already sent.

Tests: make test-frontend (child exit, protocol, backpressure; no model needed) and
make test-chat-parser MODEL=<gguf> (template and tool-call parsing against the real GGUF).

The image path and the supervision were written by a Codex session; this commit finishes,
documents and checks them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 15:54:53 -07:00
Robert KarlandClaude Fable 5.1 8df8936dee Tool calls: accept arguments in any order; log a call the parser dropped
llama.cpp's Qwen3-Coder grammar takes a tool call's required arguments first and
the optional ones after. Qwen3.8 Flash-Next often writes the optional ones first
(limit, offset, path), and because the grammar's tool-call group is optional and
has no end anchor, such a call parsed as no call at all: no error, finish_reason
"stop", an empty answer. A coding agent sees its turn end after it announced the
call.

The grammar now accepts the arguments in any order; whether a required one is
missing is for the tool to report. The change is kept as a patch under patches/
that `make build` applies to the submodule. The front end logs the raw output
when it contains <tool_call> but no call was parsed, so the next case of this is
visible in the journal.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 15:54:15 -07:00
Robert KarlandClaude Fable 5.1 66e03ed875 README and UPSTREAM: measured speeds against upstream, loader changes, artifact checksums
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-05 21:17:37 -07:00
Robert KarlandClaude Fable 5.1 9a53e42de4 Load from slow or remote stores: retrying reads, n-gram table in its own memory, container thread default
A RunPod network volume (S3-backed FUSE) refuses reads now and then with
ENOMEM or EIO, which made the expert load fail at start.  The new
strata/platform/robust_read.hpp retries such reads, halves the number of
parallel readers while the store refuses and raises it again afterwards.
The expert loader reads through it, prints progress, and names the file,
offset and error on failure.  --ple-io ram now reads the n-gram table into
anonymous memory with 16 readers instead of locking the file mapping, which
needs ulimit -l and faulted pages back from the store.

The front end's default thread count comes from the container's CPU quota
when there is one: a pod showed 256 host CPUs with a 32-CPU quota.

Verified on a 3090 pod: the model loads in normal mode straight from the
volume in 12 minutes, through two refused reads; from local disk in 19 s.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-05 21:17:37 -07:00
Robert KarlandClaude Fable 5.1 d0a44ea7e7 README and UPSTREAM: current status, known volume problem, artifact commands
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-04 15:14:53 -07:00
Robert KarlandClaude Fable 5.1 8f18634c30 Front end: tool calling and reasoning through llama.cpp's chat parser
The model's output is parsed by llama.cpp's own chat parser after every
token, and the differences are sent as OpenAI deltas (reasoning_content,
content, tool_calls). This replaces the hand-written thinking splitter.

Checked on the RTX 3090 pod: a tool call is returned with
finish_reason tool_calls, and the pi coding agent completed a multi-step
task (write a file, run it, fix, report) against the server.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-04 15:11:47 -07:00
Robert KarlandClaude Fable 5.1 d2e2217663 Front end: refuse multi-GPU, vision and batch options; README: usage and status
The first end-to-end run answered streaming and non-streaming chat
requests correctly on an RTX 3090 pod. It ran in a slow fallback mode
because of that pod's network volume, so no speed is claimed.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-04 15:01:14 -07:00
Robert KarlandClaude Fable 5.1 1db37aaa75 Add the C++ front end: one binary serves an OpenAI-style chat API
unbiased-strata is the engine plus a front end. Started normally it runs
the front end, which starts a copy of itself as the engine (--engine) and
talks to it over a pipe in the engine's own line protocol, as upstream's
Python server does. The engine source is included unchanged; only its
entry point is renamed at compile time.

Tokenizer, Jinja chat template and HTTP library come from the pinned
llama.cpp submodule. Endpoints: POST /v1/chat/completions (with
streaming and reasoning_content), GET /v1/models, GET /health.

Builds on the RTX 3090 pod. Not yet verified end to end.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-04 14:28:08 -07:00
Robert KarlandClaude Fable 5.1 34d061c4a9 README: record the first build check
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-04 13:02:58 -07:00
Robert KarlandClaude Fable 5.1 6964afa6a0 Makefile: cap default parallel jobs at 16
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-04 12:58:30 -07:00
Robert KarlandClaude Fable 5.1 1b59e5e106 Build from a pinned llama.cpp submodule; add Makefile and README
ggml now comes from third_party/llama.cpp (commit 3cf03257, the one upstream
pins) instead of a clone made during the build. 'make build' configures and
builds the engine for RTX 30/40/50 cards with an AVX2 CPU baseline.

Not yet verified on a CUDA machine.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-04 12:57:44 -07:00
Robert KarlandClaude Fable 5.1 8894a81288 Remove installer, Python, non-target platforms, benchmarks and marketing
Removed: the Python installer and launchers (setup.py, *.bat, *.sh), the
Python server and web app (serve/), the Python tools (tools/), the Intel
SYCL port (sycl/), Docker files, benchmark results (bench/), the test suite
(tests/, which upstream's own published source also leaves out),
translations, and all docs except DETAILS.md and the paper, kept under
docs/upstream/ as reference.

The engine (src/, include/, CMakeLists.txt) is untouched.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-04 12:56:12 -07:00
Robert KarlandClaude Fable 5.1 12a7825605 Import Strata at 6f32ec0 (upstream snapshot, unmodified)
Source: https://github.com/Niko1221/Strata, commit 6f32ec070f23ced9f50e704d854d775da52591ab
(engine 0.1.39, MIT). Every file is as upstream published it; later commits
show exactly what this fork changes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-04 12:55:44 -07:00