The source build runs on hosts without a CUDA toolkit (kontron, kompute),
but it installed only unbiased-strata. The front end resolves a bare
--engine name beside its own binary, so the container fell back to strata
and died with 'unknown argument: strata-poly' in a restart loop. Copy all
four binaries plus libstrata_kq.so into one directory.
Also bump third_party/llama.cpp to 44072a19f: DeepSeek V4.1 chat template
and DSML parsing, the qwen3-coder tool-call parser fixes (stray close tags,
blank lines, stuttered closes, any argument order) and the shrinking
partial parse.
Our 6 fork commits rebased onto ggml-org master (FlintForCausalLM, a37cc4610):
73eb3f01c tool-call grammar accepts arguments in any order
f917864e8 server: hold a shrinking partial tool-call parse (no 500 mid-stream)
9f39470f1 qwen3-coder: skip a stuttered </parameter>
809aa3ef4 qwen3-coder: skip blank lines before </function>; final parse keeps streamed calls
9c1917f99 qwen3-coder: skip any stray close tag between arguments
(DeepSeek-V4.1 DSML commit dropped - upstream has it already)
Conflicts resolved by hand: server-task.cpp keeps our parse guard adapted to chat_session.feed/finish
and added.text; qwen3-coder.cpp keeps our permute-all-arguments rule plus the stutter skip;
deepseek.cpp/chat.cpp follow the upstream signature (lambda needs tool_index).
Branches: submodule UnbiasedStrata-flint @ 9c1917f99, upstream/master + 5 commits.
Build: llama.cpp/build-cuda (CUDA sm_61) -> build-cuda/bin/llama-server; loads flint on the P40 and
decodes at 43-46 tok/s (17.5 GB in VRAM).
third_party/llama.cpp -> branch deepseek41-parser, one commit on 385445f. See UPSTREAM.md (to follow).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
From Niko1221/Strata tag v0.2.4 (commit 96ca4383, 2026-10-24), unmodified: src/dsv41/ (the engine and its vendored
EXL3 / sampler / window kernels), include/strata/dsv41/, tests/dsv41/, tools/dsv41/{pack_gguf,smoke,tune}.py,
data/dsv41/ (the shipped hot-expert profiles), tools/trellis/tqenc.{cpp,hpp} (the tests' encoder),
third_party/project-maya/ (the MIT notice: the engine is a port of Project Maya's maya-ds4),
third_party/ggml/ggml-common-tq.h, docs/DEEPSEEK41.md (upstream's text, to be rewritten for this fork).
src/kernels/cpu: upstream's iq_avx2.{cpp,hpp}, iq_avx2_rows.inl, iq_avx512.{cpp,hpp} replace this fork's
(v0.1.45-poly.1) copies - they add the engine's CPU lane rows iq256x_rows / iq512x_rows and leave the main engine's
iq256_* / iq512_* as they were (upstream's statement; iq_avx2_parity is the check) - and the trellis CPU lane
tq_cpu.{hpp,cpp}, tq_avx2.cpp, tq_avx512.cpp, tq_states.hpp, tq_computed.hpp is new. expert_layout.hpp stays at
layout version 4 (upstream's 5 adds Hadamard-folded packs this fork has no use for yet).
CMakeLists.txt: upstream's strata-dsv41 block, with ggml.h / ggml-cpu.h coming through strata_kernels_cpu's ggml-cpu
link from the submodule (no FetchContent), the tq sources and flags in strata_kernels_cpu, and iq_avx512.cpp built
with -mavx512vpopcntdq -mbmi2 as upstream does (iq512x_rows uses them). Makefile: STRATA_BUILD_DSV41=ON and
strata-dsv41 among the targets `make build` produces.
Target: ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF (IQ1_M / IQ2_XXS + the IQ4_NL Engram) on the A6000 VM.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* frontend: llama.cpp parser-hold-delta (no 500 on a shrinking partial tool-call parse; raw text logged), issue #17
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* frontend: skip a stuttered </parameter> in Qwen3-Coder calls; never 500 on a shrinking partial parse (issue #17)
llama.cpp submodule parser-hold-delta 638a7e2 (two commits on a6de9af); UPSTREAM.md lists them.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* frontend: skip blank lines before </function>; the final parse keeps streamed tool calls (issue #17)
llama.cpp submodule 4174b21: the Coder IQ1_M shard also leaves a blank line between the last
</parameter> and </function>; the hold-delta guard kept that stream alive but the final parse
threw in the diff check and the request still ended in a 500 (memcached-bisect-deep, 2026-10-21).
The grammar skips blank lines before the close tags, and a final parse that loses a streamed
call keeps the streamed calls instead of throwing. UPSTREAM.md lists it.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* frontend: skip any stray close tag between Qwen3-Coder arguments (issue #17)
llama.cpp submodule: the third shape of the Coder IQ1_M slip (prime-frontend, 2026-10-21) wrote
</content> and </invoke> after the real </parameter>. One rule now covers the stutter, the blank
line and foreign close tags. UPSTREAM.md lists it.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
The two tool-call parser changes that CMake applied to the submodule's working tree at every configure are now
commits 9547d8d and a6de9af on the fork's branch, and the submodule pins that branch's tip. The pinned commit alone
names the sources compiled, the submodule is clean after a build, and a bump of the pin that breaks the parser
changes fails in git, not in configure. patches/ and the CMake loop are removed; README, UPSTREAM.md, PLAN.md and
docs/CORRECTNESS-PLAN.md say where the changes live now. make test passes on the CUDA-free front-end build.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
ggml now comes from third_party/llama.cpp, the commit upstream pins, instead of
a FetchContent clone at configure time; the configure stops with the submodule
command if the checkout is missing. patches/*.patch are applied to the submodule
at configure time, idempotently (checked in reverse first); the one patch is the
Qwen3-Coder any-argument-order parser fix carried from UnbiasedStrata 1. A second
add_subdirectory builds llama.cpp's llama, common, cpp-httplib and mtmd for the
coming C++ front end with every download switch off. Makefile: make build
configures once and builds strata, strata-poly, strata_kq, llama-common and
mtmd into build/bin for CUDA archs 61;75;86;89 (SM60 flag added for 61), finds
nvcc on PATH or in /usr/local/cuda/bin, and probes for the newest GCC nvcc
accepts, passing it as the C, C++ and CUDA host compiler so one libstdc++ is
linked (a GCC 14 / GCC 13 mix failed to link strata on __cxa_call_terminate).
PLAN.md and UPSTREAM.md added.
Verified: a fresh clone and 'git submodule update --init' on a networked box
checks out the shallow pin in 37 s. On VM 220 (Debian 13, GCC 13/14, CUDA 12.4,
no outbound internet) 'unshare -rn make build JOBS=6' inside a network namespace
with no interfaces built strata, strata-poly and libstrata_kq.so for 61;75;86;89
in 24 min with zero network errors in the log; strata --version prints 0.1.45.
The upstream release tree, every tracked file byte for byte, from
https://github.com/VecSzn/PolyStrata at tag v0.1.45-poly.1, commit
d0cd84dc6bd009d1d9e2191e4e28cc76b80f1ee3. Nothing added, removed or edited;
git diff against this commit is the whole story of the fork.
Verified: the commit's tree hash equals the upstream commit's tree hash.
Every tracked file, .gitignore, .gitmodules and both submodules (llama.cpp at
3cf03257, llama-muse at 335916a) are removed so the next commit can import
PolyStrata v0.1.45-poly.1 unmodified and be the diff baseline of the fork.
UnbiasedStrata 1 remains at tags unbiasedstrata-1 (main, b124b59) and
unbiasedstrata-1-muse-spark-native (4c824e6).
Verified: git ls-files is empty; the working directory holds only .git.
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>
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>