Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
582 commits
Select commit Hold shift + click to select a range
0981518
docs: MODELS.md no longer says Kolibri and GigaChat 4 have no stop st…
PedroRossi Dec 1, 2026
e438597
docs: VISION.md says an image request without a projector gets a 400
PedroRossi Dec 1, 2026
4bcee52
cuda: trellis codebook in shared memory; TQ GEMV 4 rows a warp
Vasyl-Trefilov Nov 30, 2026
ff14b37
cpu_moe: TQK6/TQK7 expert dots with AVX-512 VNNI when the CPU has it
Vasyl-Trefilov Nov 30, 2026
710d663
vision: the image URL check runs at connect time (redirects too), and…
PedroRossi Dec 1, 2026
fbd5faa
docs: VISION.md says the address check runs at connect time
PedroRossi Dec 1, 2026
894a60e
serve: a whole request must arrive within 120 s, and a cut-off body k…
PedroRossi Dec 1, 2026
8e67560
docs: HOSTING.md on the whole-request limit
PedroRossi Dec 1, 2026
c1aa73f
vulkan: attn_prefill_tile rotates the query after loading it (TurboQu…
Vasyl-Trefilov Nov 30, 2026
f3f2410
vision: a model GGUF with an embedded vision tower is its own project…
Vasyl-Trefilov Nov 30, 2026
132b99d
vision: ViT attention on the tensor cores (CUDA mma, Vulkan coop matr…
Vasyl-Trefilov Dec 1, 2026
992817c
gigachat4: reuse the sections scratch and the mla_attn partials, one …
Vasyl-Trefilov Dec 1, 2026
bb74cf1
gigachat4: prefill streams its missed experts through three VRAM slot…
Vasyl-Trefilov Dec 1, 2026
73397a8
docs: GigaChat 4 prefill with streamed expert misses, measured
Vasyl-Trefilov Dec 1, 2026
67a2945
deepseek: per-GPU attention key rows, layers kept whole on one GPU
Vasyl-Trefilov Dec 1, 2026
c118932
deepseek: chain wq_b, rope, attention and wo_a/wo_b on the GPU in decode
Vasyl-Trefilov Dec 1, 2026
446c76b
deepseek: check GGUF shapes before the chained GPU attention
Vasyl-Trefilov Dec 1, 2026
89666b6
docs: DeepSeek-V4.1 on 2x L40S + 1 TB RAM (not yet measured there)
Vasyl-Trefilov Dec 1, 2026
7dd798b
deepseek: 4-token AVX2 dots for IQ2_XXS, Q2_K, Q3_K, Q4_K; fused host…
Vasyl-Trefilov Dec 1, 2026
c7d50e1
deepseek: CPU expert microbenchmark and many-core tuning notes for th…
Vasyl-Trefilov Dec 1, 2026
800c3c2
cpu_moe: 4-token AVX2 dots for IQ1_S, IQ1_M, IQ2_XS, IQ2_S, IQ3_XXS, …
Vasyl-Trefilov Dec 1, 2026
37d4164
cpu_moe: pick AVX-512VL/VNNI builds of the 4-token kernels at run time
Vasyl-Trefilov Dec 1, 2026
3cc6af2
cuda: stage deltanet_seq's tokens through shared memory
Vasyl-Trefilov Dec 1, 2026
4210ec5
gigachat4: run the MLA gate and post-norm residuals in parallel
Vasyl-Trefilov Dec 1, 2026
e79ff95
bench: one untimed prefill before the timed reps, as llama-bench warm…
Vasyl-Trefilov Dec 1, 2026
5c88d32
gigachat4: serve runs one untimed prefill at load, so the first reque…
Vasyl-Trefilov Dec 1, 2026
4a37ff7
cuda: trellis codebook in shared memory as f16 pairs, two states from…
Vasyl-Trefilov Dec 1, 2026
b1d81cd
serve: warm-up prefill at load for every MoE model, one shared helper
Vasyl-Trefilov Dec 1, 2026
43e53ea
deepseek: measure CPU expert weight bandwidth against llama.cpp
Vasyl-Trefilov Dec 1, 2026
ebe795e
cpu: --fast-cpu adds a LoRA's delta at run time instead of baking F32…
marcomartini97 Dec 1, 2026
ffa0f51
docs: --fast-cpu, its batched prefill and its run-time LoRA
marcomartini97 Dec 1, 2026
2d1a5f4
cpu: Q4_K prefill computes 8 rows per pass from an interleaved L1 tile
Vasyl-Trefilov Dec 1, 2026
6668ac9
weights: preload reads the GGUF with one thread per CPU
Vasyl-Trefilov Dec 1, 2026
927397c
serve: --cors-origin ORIGIN[,ORIGIN...] or * sends CORS headers and a…
Vasyl-Trefilov Dec 1, 2026
df62304
vulkan: gfx900 on RADV keeps the int8 GEMM, gemm_f_dp clamps f16 acti…
Vasyl-Trefilov Dec 1, 2026
d11eccf
Merge PR #158: serve: request body takes memory as it arrives, not as…
Vasyl-Trefilov Dec 1, 2026
c90e9e9
Merge PR #157: vision: image URLs reach only public addresses, redire…
Vasyl-Trefilov Dec 1, 2026
4fc1c79
Merge PR #155: llama.cpp-format DFlash/DFlash2 GGUFs with unprefixed …
Vasyl-Trefilov Dec 1, 2026
39c2158
Merge PR #159: Cpu batched prefill
Vasyl-Trefilov Dec 1, 2026
74ee297
Merge PR #152: cuda: native __dp4a prefill GEMM and f16x2 prefill att…
Vasyl-Trefilov Dec 1, 2026
eb7f337
Merge PR #140: Buildin webapp Render latex when model respond with latex
Vasyl-Trefilov Dec 1, 2026
5faf8f5
Merge branch prs-merge: PRs #140 #152 #155 #157 #158 #159
Vasyl-Trefilov Dec 1, 2026
3243bc5
Document fresh 1.4.5 qualification and inherited response-channel lim…
codex Dec 1, 2026
65df2a8
cpu_moe: 8-row Q6_K prefill kernel for CPU experts
Vasyl-Trefilov Dec 1, 2026
25f2858
cuda: Q6_K expert prefill GEMM loops in 64-deep K steps, about 1.4x f…
Vasyl-Trefilov Dec 1, 2026
531834c
cpu_worker: the expert pool spins while the worker waits for a layer'…
Vasyl-Trefilov Dec 1, 2026
936774b
Raise the CPU expert request right after the router in decode
Vasyl-Trefilov Dec 1, 2026
0f387c4
docs: Qwen3.8-Flash-Next Gyro-S decode, CPU expert miss costs and the…
Vasyl-Trefilov Dec 1, 2026
35384bf
gigachat4: per-layer CPU share and whole-expert prefetch for prompt c…
Vasyl-Trefilov Dec 1, 2026
b8e21be
docs: GigaChat 4 prefill CPU experts slow down on memory bandwidth sh…
Vasyl-Trefilov Dec 1, 2026
0194b84
expert_cache: page out the hottest resident experts after upload
Vasyl-Trefilov Dec 1, 2026
ab7acfa
hip: classify float-input types like CUDA (ty.float_x())
christos-z Nov 30, 2026
ee7bcf2
docs: pinned host-RAM expert tier measured and reverted; add pin_benc…
Vasyl-Trefilov Dec 1, 2026
b7731bb
cpu_moe: 8-row prefill tiles for Q6_K/Q3_K/Q2_K/Q8_0, VNNI picked at …
Vasyl-Trefilov Dec 1, 2026
ebae27b
vision: image URLs reach only public addresses, and redirects are not…
PedroRossi Dec 1, 2026
116aadb
sampler: grammar mask only when the drawn token is refused (#162)
Vasyl-Trefilov Dec 1, 2026
cbf608d
docs: grammar mask cost runs only on refused tokens
Vasyl-Trefilov Dec 1, 2026
cd46779
hy4: block_count minus the MTP draft blocks is the trunk layer count …
Vasyl-Trefilov Dec 1, 2026
70f3919
Merge PR #163: stop strings for the separate model forwards
Vasyl-Trefilov Dec 1, 2026
218c035
Merge PR #164: an unusable image gets a 400
Vasyl-Trefilov Dec 1, 2026
4e8c93d
raon: serve honors grammar, response_format and logit_bias, and a que…
Vasyl-Trefilov Dec 1, 2026
a6f6590
cuda: on the dp4a path, IQ2_XS and IQ2_S take the int8 GEMM too
PedroRossi Dec 1, 2026
73aaec8
kernels test: the SAME_X fallback test picks its off-int8 tensor by t…
PedroRossi Dec 1, 2026
163c686
vision: Qwen3-VL encoder blocks stay on the GPU (#149)
Vasyl-Trefilov Dec 1, 2026
62e9089
serve: --no-webui serves only the API (#110); vision GPU blocks check…
Vasyl-Trefilov Dec 1, 2026
cbc71f6
cuda: the kernel-name counts include the three vision kernels
Vasyl-Trefilov Dec 1, 2026
2507424
q2/q4/turbo* quants for HIP backend
morti86 Dec 1, 2026
36a7768
q2/q4/turbo* quants for HIP backend: log message fix
morti86 Dec 1, 2026
ac44bb2
Release 1.4.6
Vasyl-Trefilov Dec 1, 2026
448e481
Accelerate PTQ1_0 CPU inference with batched Q8_K dots
marcomartini97 Dec 1, 2026
2f10159
Reuse decoded weight rows for generic CPU inference
marcomartini97 Dec 1, 2026
97934d0
Share CPU integer kernels across Q and IQ block formats
marcomartini97 Dec 1, 2026
da36fe7
Merge upstream 1.4.6 into Inkling Q8 attention branch
codex Dec 2, 2026
c0ce7ec
Merge branch 'RustingStudio:main' into fix/hip-float-ty-trellis
christos-z Dec 2, 2026
b81e750
Repack PTQ1_0 to a 2-bit layout for tiled AVX2 CPU kernels
marcomartini97 Dec 2, 2026
00e11ff
Read the shared CPU kernel mode once
marcomartini97 Dec 2, 2026
1d109a2
Merge PR #172
Vasyl-Trefilov Dec 2, 2026
78a4beb
Merge PR #170
Vasyl-Trefilov Dec 2, 2026
a7fea74
Merge PR #169
Vasyl-Trefilov Dec 2, 2026
41a4f69
hip: the KV cache size, TurboQuant bits and Inkling attention kernel …
Vasyl-Trefilov Dec 2, 2026
8cc7728
Merge PR #171: Bonsai CPU performance
Vasyl-Trefilov Dec 2, 2026
74104f4
quant: PTQ1_0 reference rows decode with the direct loop again
Vasyl-Trefilov Dec 2, 2026
d235116
weights: note a compressed btrfs mount when the model does not fit in…
Vasyl-Trefilov Dec 2, 2026
d31b2a7
tests: GPU type lists leave out the CPU-only types; Vulkan devices ar…
Vasyl-Trefilov Dec 2, 2026
93b0109
cli: sampling flags take the ranges serve checks per request
Vasyl-Trefilov Dec 2, 2026
e02c763
cli: bench and calibrate reject a zero --pp or --reps; perplexity nam…
Vasyl-Trefilov Dec 2, 2026
3d272e3
generate: a prompt longer than --ctx is refused on the CPU too
Vasyl-Trefilov Dec 2, 2026
c8b2365
serve: slot restore errors name the file; a zero-length entry no long…
Vasyl-Trefilov Dec 2, 2026
abfc357
chat: a conversation longer than --ctx drops its oldest exchanges ins…
Vasyl-Trefilov Dec 2, 2026
aa6ae5a
cuda, hip: cache compiled kernels in the same folder as calibration f…
Vasyl-Trefilov Dec 2, 2026
7010c1b
windows: opt out of power throttling (EcoQoS)
Vasyl-Trefilov Dec 2, 2026
0da5d11
serve: a reply cut inside a tool call keeps the calls that finished
Vasyl-Trefilov Dec 2, 2026
a431007
hip: compile again when a cached kernel file is not an ELF object
Dec 2, 2026
4051e9f
hip: GigaChat 4 runs its clamp, indexer and MLA attention on the card
Dec 2, 2026
8d0f8b3
hip: GigaChat 4 prompts take the fused MLA path
Dec 2, 2026
5432ff9
hip: GigaChat 4 prompt attention runs on the WMMA matrix cores
Dec 2, 2026
0373a03
hip: idx_score launches one block row per 64 queries, not per 16
Dec 2, 2026
4311be2
hip: GigaChat 4 decode scores the indexer with idx_score_dec
Dec 2, 2026
8e412b3
hip: STRATA_IDX_WMMA=1 runs the GigaChat 4 indexer on matrix cores
Dec 2, 2026
883b45f
gigachat4: STRATA_DS_PIN=1 page-locks the experts for direct DMA
Dec 2, 2026
fd259a1
deepseek: chunks over the scratch size keep the fused expert path
Dec 2, 2026
fb4b977
docs: HIP.md GigaChat 4 tables name the kernel instead of "this build"
Dec 2, 2026
7a4e684
hip: the WMMA switches are read once, with the kernel source
Dec 2, 2026
4dd70c8
cpu experts: AVX-512 IQ kernels and one dispatch a layer; hyper-conne…
marcomartini97 Dec 2, 2026
155f6bc
prefill: stage a layer's first expert groups beside its mixer on a co…
marcomartini97 Dec 2, 2026
8f59a9a
cpu experts: sixteen-token prompt kernels, signs in the weights for t…
marcomartini97 Dec 2, 2026
89d7399
grammar: enforce const null, allow escaped slashes, and allow 0 in ex…
Pybsama Dec 2, 2026
81b4654
Balance MoE prefill by completion and schedule ready expert rows
marcomartini97 Dec 2, 2026
20ced70
grammar: preserve null rejection in Json::pointer for $ref targets
Pybsama Dec 2, 2026
5457565
grammar: reject null list elements in Json::pointer consistently with…
Pybsama Dec 2, 2026
f4e2c1b
docs: describe Inkling Q8 attention switches and CUDA test
codex Dec 2, 2026
9bf35f8
Merge remote-tracking branch 'upstream/main' into perf/inkling-q8-att…
codex Dec 2, 2026
f79d72c
Overlap MoE prefill transfers and reuse decode scratch
marcomartini97 Dec 2, 2026
0a14432
docs: update Qwen3.8-Flash-Next benchmarks and CPU/prefill env vars
marcomartini97 Dec 2, 2026
1f59b30
Fix Windows arena read, tq_rows SiLU forwarding, and layer bench checks
marcomartini97 Dec 2, 2026
605c532
test: verify fallback attention against a CPU reference
codex Dec 3, 2026
b5190af
Fixed crashing bug when using Qwen 3.8 27B and --parallel 2. Underlyi…
BrightCandle Dec 3, 2026
ae5f6ba
Fixed problem where --parallel 2 did not function on Qwen 3.8 27B whe…
BrightCandle Dec 3, 2026
7f6738f
gigachat4: reserve VRAM for MLA K/V and prefill scratch; --vram-margi…
Vasyl-Trefilov Dec 3, 2026
1490cbe
weights: no btrfs compression note for a +C or +m file (#177)
Vasyl-Trefilov Dec 3, 2026
8ca11cf
chat: the Qwen XML template keeps every system message (#143)
Vasyl-Trefilov Dec 3, 2026
269f2d9
sampler: presence and frequency penalties use the penalty_last_n wind…
Vasyl-Trefilov Dec 3, 2026
fded5fe
Merge PR #176: JSON grammar accepts \/ escapes and exponents with a 0…
Vasyl-Trefilov Dec 3, 2026
6ed35bf
inkling2: the expert pool reserves K/V room to 16k rows, and rebuilds…
Vasyl-Trefilov Dec 3, 2026
aae5f16
inkling2: one card keeps the pool's free floor under the expert slabs
Vasyl-Trefilov Dec 3, 2026
847b1dd
inkling2: the expert cache leaves the pool's floor free on one card
Vasyl-Trefilov Dec 3, 2026
e145a23
serve: --force-sampling ignores the sampling fields of requests, and …
Vasyl-Trefilov Dec 3, 2026
3e71f5f
mcp: fix Streamable HTTP SSE parsing, session reset, negotiated proto…
Pybsama Dec 3, 2026
8676809
hip: mla_qpack is compiled only for HIP
Dec 3, 2026
8429359
hip: the kernel cache temp file name has a per-process counter
Dec 3, 2026
25c4ec9
mcp: validate negotiated protocolVersion, detect cursor cycles, and e…
Pybsama Dec 3, 2026
10ff983
mcp: fail loudly when tools/list exceeds 1000 tools instead of silent…
Pybsama Dec 3, 2026
7422de7
mcp: clarify tools/list pagination cap comment scope
Pybsama Dec 3, 2026
3aa84e1
Expose MoE tuning as CLI flags and simplify expert controls
marcomartini97 Dec 3, 2026
7322cad
Merge remote-tracking branch 'origin/main' into qwen38-cpu-experts
marcomartini97 Dec 3, 2026
ee44bb4
cuda: enable Inkling Q8 attention by default and cover multi-KV groups
codex Dec 3, 2026
b3158a9
test: keep Inkling scalar golden checks on the scalar kernel
codex Dec 3, 2026
14fc1b0
test: report unavailable CUDA separately from backend failures
codex Dec 3, 2026
3382904
test: preserve CUDA skips when CI reporting is unavailable
codex Dec 3, 2026
0310819
test: annotate CI when the CUDA skip summary is unwritable
codex Dec 3, 2026
95c928c
test: include the skip reason and I/O error category in CI warnings
codex Dec 3, 2026
cd4e9ba
experts: --tail-skip R drops the CPU experts a token ranks at R or lo…
PedroRossi Dec 2, 2026
8f4980c
serve: POST /v1/vram lends expert-cache VRAM to another program and t…
PedroRossi Dec 3, 2026
1c1bd35
inkling2: test that no experts to run gives zeros (--tail-skip)
PedroRossi Dec 3, 2026
28c29bf
cuda: mem_info counts the memory the stream-ordered allocator holds u…
markusharasim-sudo Dec 3, 2026
60283f8
inkling2: tensor-core prompt attention for an f16 cache (STRATA_DS_AT…
markusharasim-sudo Dec 3, 2026
7e5028d
cuda: a second copy queue for the Inkling 2 expert staging; the first…
markusharasim-sudo Dec 3, 2026
cdee55e
tests: tensor-core attention against kp16 with a ring cache, separate…
markusharasim-sudo Dec 3, 2026
c203e42
inkling2: the --tail-skip zero test runs the skip rule too
PedroRossi Dec 3, 2026
8c0927d
serve: log per-request speculative draft acceptance and track Runner:…
Pybsama Dec 3, 2026
01a57e5
serve: unify draft kind labeling and test Raon verify_greedy acceptan…
Pybsama Dec 3, 2026
dd384d6
inkling2: take the early staging mark only when a layer stages; the a…
markusharasim-sudo Dec 4, 2026
48659a0
weights: Qwen4's fused hc_*_down_inject splits into down and inject
Dec 4, 2026
298d851
tokenizer: the qwen4 pre-tokenizer, with ignore_merges
Dec 4, 2026
5a36c7e
chat: Qwen4 template, and Qwen4 in the model docs
Dec 4, 2026
0e2cbad
weights: a broken hc_*_down_inject tensor fails the load instead of b…
Dec 4, 2026
695f583
tests: the qwen4 split test covers hc_ffn_down_inject too
Dec 4, 2026
ded754c
tools: qwen4_ref states that the template renders without autoescape …
Dec 4, 2026
147d1a0
tests: gpu_forward_matches_cpu_reference allows a GPU argmax within e…
Dec 4, 2026
9745dcc
docs: Qwen4's HIP first-token difference is a near-tie, not a HIP fault
Dec 4, 2026
f6e686c
vulkan: report combined DEVICE_LOCAL + HOST (GTT) unified memory in m…
ybenyedder Dec 4, 2026
9246008
Qwen4-35B-A3B: split fused hc down/inject tensors, qwen4 tokenizer, t…
Vasyl-Trefilov Dec 4, 2026
7a369c3
qwen4exp: serve --parallel with per-slot PLE and QSA state
Vasyl-Trefilov Dec 4, 2026
2b2eacb
step_rows on a split model: hand on every hyper-connection stream and…
Vasyl-Trefilov Dec 4, 2026
ef217ea
chat: Qwen4 renders a request's reasoning_effort, and off stops thinking
Dec 4, 2026
ba386a3
serve --parallel: emit each token before feeding it to the slot
Vasyl-Trefilov Dec 4, 2026
5207994
Release 1.5.0: Qwen4-35B-A3B
Vasyl-Trefilov Dec 4, 2026
593e267
BENCHMARKS: Qwen4 warm MTP server numbers replace the cold run
Vasyl-Trefilov Dec 4, 2026
93e1647
Merge PR #190: Qwen4 chat template, reasoning_effort, and tests for t…
Vasyl-Trefilov Dec 4, 2026
7709519
fix: detect Qwen4 GGUF template variants
Henkster72 Dec 4, 2026
51fb5cc
Merge origin/main and fix narrow paired_text width test
sayampy Dec 4, 2026
095d877
qwen4exp: the hc down/inject split covers the block of a standalone M…
ksergk Dec 4, 2026
d676b1f
dflash2 reads dflash.logit_scale, and the CPU forward runs a dense FF…
ybenyedder Dec 4, 2026
3a6c4a1
tests: dense_lora_is_baked reads blk.3, turboquant_kv_modes checks pr…
PedroRossi Dec 1, 2026
18300a4
tests: dense_lora_is_baked uses the first block with attn_output.weight
PedroRossi Dec 3, 2026
bac87f8
tests: turboquant_kv_modes pins the prefill output on sm_75 too
PedroRossi Dec 3, 2026
764d5b8
tests: turboquant_kv_modes takes one card's prefill hashes for every row
PedroRossi Dec 3, 2026
ec68a31
Merge branch 'pr188' into triage1204
Vasyl-Trefilov Dec 4, 2026
c35f903
Merge branch 'pr181' into triage1204
Vasyl-Trefilov Dec 4, 2026
08a07dd
Merge branch 'pr183' into triage1204
Vasyl-Trefilov Dec 4, 2026
a432a0f
Merge branch 'pr185' into triage1204
Vasyl-Trefilov Dec 4, 2026
593b746
serve: the slot file name comment is back on plain_file_name
Vasyl-Trefilov Dec 4, 2026
f8528b7
Merge branch 'pr187' into triage1204
Vasyl-Trefilov Dec 4, 2026
5edd1bb
Merge branch 'pr191' into triage1204
Vasyl-Trefilov Dec 4, 2026
6670dec
Merge branch 'pr179' into triage1204
Vasyl-Trefilov Dec 4, 2026
b844122
Merge branch 'pr144' into triage1204
Vasyl-Trefilov Dec 4, 2026
3b35b6f
Merge branch 'pr178' into triage1204
Vasyl-Trefilov Dec 4, 2026
001cf9c
Merge branch 'pr174' into triage1204
Vasyl-Trefilov Dec 4, 2026
ecfbbfe
term: the plain speed lines keep their 2 s step, 500 ms is the panel'…
Vasyl-Trefilov Dec 4, 2026
476c7ea
cuda: sync_freed waits for the copy queues too
Vasyl-Trefilov Dec 4, 2026
f309b93
prefill: the CPU share's row gather copies h into ye, not ye over h
Vasyl-Trefilov Dec 4, 2026
2df232d
gguf: --ple names a split model's shard that is in another folder (#189)
Vasyl-Trefilov Dec 4, 2026
66a6886
sums the non expert tensors of blk.N in part_weight_bytes instead of…
BrightCandle Dec 4, 2026
82f5c9b
serve --parallel: a long prompt stays in its own slot when another sl…
Vasyl-Trefilov Dec 4, 2026
86240f9
cuda: kernels.cu compiles under NVRTC again: the source defines STRAT…
Dec 4, 2026
77c6806
cuda: read the QSA prefill mask tile-relative at 16-key tiles
Dec 4, 2026
eaf6d16
hip: drop the cp.async K/V staging from the GQA decode kernel
Dec 4, 2026
9ab78c2
prefill: restore active slot after between() in prefill_slots
Pybsama Dec 4, 2026
0ad6a19
Merge branch 'pr180' into triage1204
Vasyl-Trefilov Dec 4, 2026
4a8989f
serve: with thinking on, a grammar or response_format holds from </th…
phorel Dec 4, 2026
90fe6c8
Release 1.5.1
Vasyl-Trefilov Dec 4, 2026
da19338
serve: --reasoning-effort, the effort of a request that names none
phorel Dec 4, 2026
0aefbab
web: replace think checkbox with a drop down for reasoning_effort
OneOfOne Dec 4, 2026
1125e73
add reasoning_effort to /v1/models endpoint for the UI
OneOfOne Dec 4, 2026
3247ce5
fix(gguf): accept standalone n-gram shard named by --ple
TheBrutalX Dec 4, 2026
5ce85f7
fix(gguf): tighten --ple standalone n-gram exemption
TheBrutalX Dec 4, 2026
da79808
Merge PR #201: --ple takes a standalone n-gram GGUF (split.no 0) in p…
Vasyl-Trefilov Dec 4, 2026
cfe8e8a
Merge PR #196: prefill_slots makes its slot current again after betwe…
Vasyl-Trefilov Dec 4, 2026
b46a094
Merge PR #199: serve --reasoning-effort, the effort of a request that…
Vasyl-Trefilov Dec 4, 2026
d96c84a
Merge PR #198: with thinking on, a grammar or response_format holds f…
Vasyl-Trefilov Dec 4, 2026
fcdc90d
Merge PR #200: the page's think checkbox becomes a reasoning_effort d…
Vasyl-Trefilov Dec 4, 2026
72e75bb
serve: reasoning_effort "off" is read as "none"
Vasyl-Trefilov Dec 4, 2026
5107505
web: the effort drop-down also sends enable_thinking, and keeps a sav…
Vasyl-Trefilov Dec 4, 2026
dcc5471
Merge PR #201 (second push): the standalone n-gram GGUF stands in onl…
Vasyl-Trefilov Dec 4, 2026
af555f1
serve: do not let --reasoning-effort override a request's thinking sw…
Pybsama Dec 5, 2026
88feadc
hip: a beside block copies on the side stream, one step behind
Dec 5, 2026
31000e0
gguf: STRATA_MLOCK_EXPERTS pins the expert tensors in RAM
Dec 5, 2026
afbd892
hip: DMA prefill expert staging from registered pages under MLOCK
Dec 4, 2026
529310d
hip: read missed prefill experts in place behind a switch, default off
Dec 4, 2026
95386f6
gguf: the incoai DFlash2 checkpoints load and convert
Dec 4, 2026
03b2bd7
gguf: a DFlash2 codebook is transposed only when stored rank-first
Dec 5, 2026
b330c9c
gguf: STRATA_MLOCK_EXPERTS locks nothing on a model larger than RAM
Dec 5, 2026
0303226
hip: the GQA decode test runs both regimes on one query, Q8 bytes signed
Dec 5, 2026
2e2d11a
fast-cpu: batched qwen4exp prefill, parallel experts, physical-core t…
marcomartini97 Dec 5, 2026
b9713ee
Merge PR #202: serve --reasoning-effort leaves a request's own thinki…
Vasyl-Trefilov Dec 5, 2026
9cae127
Merge PR #212: fast-cpu batches the qwen4exp prefill and runs the exp…
Vasyl-Trefilov Dec 5, 2026
11d9553
fast-cpu: the calibration file measured on another file is reported once
Vasyl-Trefilov Dec 5, 2026
585ffd0
serve: the model list reads only GGUF headers and leaves out LoRA ada…
Vasyl-Trefilov Dec 5, 2026
7119ff1
serve: a split model is named without its shard number (#210)
Vasyl-Trefilov Dec 5, 2026
c862bcd
serve: the stats count the VRAM, devices and expert hits of every car…
Vasyl-Trefilov Dec 5, 2026
e9dd9cc
calibrate: the header line says the devices of a multi-device run (#209)
Vasyl-Trefilov Dec 5, 2026
03cd705
tests: the tensor-core attention test skips when no GPU backend opens
Vasyl-Trefilov Dec 5, 2026
8a99697
gpu: the prompt cache keeps the state after each system prompt, not o…
Vasyl-Trefilov Dec 5, 2026
d20ef30
tests: --prompt-cache FILE gives the cached conversations back after …
Vasyl-Trefilov Dec 5, 2026
db29a00
serve: the page's load options take parallel slots, GPUs and auto unl…
Vasyl-Trefilov Dec 5, 2026
ac8105d
web: strip split-model shard suffix from model list names
Pybsama Dec 5, 2026
07b9881
Merge PR #216: the page names a split model without its shard number
Vasyl-Trefilov Dec 5, 2026
3b327c6
web: the button of the Hugging Face file picker keeps the folder of t…
Vasyl-Trefilov Dec 5, 2026
c1e8a27
calibrate: the file of a run on several cards lists them in "devices"…
Vasyl-Trefilov Dec 5, 2026
626c9a4
web: preserve HF directories and disambiguate colliding model labels
Pybsama Dec 5, 2026
86698f9
web: use shortest distinct trailing path suffix on model label collis…
Pybsama Dec 5, 2026
4c10e0e
Merge PR #216 (second part): the page tells models with the same file…
Vasyl-Trefilov Dec 5, 2026
fb70784
logs: plain start-up lines, developer lines only with STRATA_VERBOSE
Vasyl-Trefilov Dec 5, 2026
d8b4ae3
calibrate: takes --k, --v, --ple and the CPU and RAM flags of the runs
Vasyl-Trefilov Dec 5, 2026
044555e
docs: shorter pages, one home for each topic
Vasyl-Trefilov Dec 5, 2026
1112f18
hip: a range without a device address is unregistered, not counted as…
Dec 5, 2026
f14f3f8
gguf: with --ple a missing shard of a split model is skipped
Vasyl-Trefilov Dec 5, 2026
4cde89f
Release 1.5.2
Vasyl-Trefilov Dec 5, 2026
90be912
Merge PR #206: HIP kernel fixes, expert staging from pinned RAM, DFla…
Vasyl-Trefilov Dec 5, 2026
2377eea
hip: mmq is false, as this backend has no int8 GEMM
Dec 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Builds Linux and Windows binaries when a version tag (v1.2.0, ...) is pushed and attaches them to a draft release,
# which is published by hand. CUDA kernels compile at run time through NVRTC and the Vulkan shaders are committed,
# which is published by hand. After both binaries are up, the crate goes to crates.io (CARGO_REGISTRY_TOKEN). CUDA kernels compile at run time through NVRTC and the Vulkan shaders are committed,
# so the build needs neither the CUDA toolkit nor a Vulkan SDK.
name: release
on:
Expand Down Expand Up @@ -47,3 +47,20 @@ jobs:
cp target/release/${{ matrix.bin }} ${{ matrix.asset }}
gh release upload "$GITHUB_REF_NAME" ${{ matrix.asset }} --repo "$GITHUB_REPOSITORY"
shell: bash
crate:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- run: rustup update stable
# The verify build runs dependency build scripts, so it has no token; the upload step compiles nothing.
- run: cargo package --locked
env:
RUSTFLAGS: -C target-cpu=x86-64-v3
- env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish --locked --no-verify
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/target

/.omp
/.claude/
/AGENTS.md
/CLAUDE.md
Expand Down
44 changes: 43 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
[package]
name = "rusting_strata"
version = "1.3.0"
version = "1.5.2"
edition = "2024"
license-file = "LICENSE.md"
description = "Pure-Rust GGUF inference engine for MoE models that do not fit in VRAM (CUDA via NVRTC, Vulkan, HIP)"
repository = "https://github.com/RustingStudio/RustingStrata"
readme = "README.md"
keywords = ["llm", "gguf", "inference", "cuda", "vulkan"]
categories = ["science", "command-line-utilities"]
# CI files and the local-CPU build flag stay out of the crate (cargo install from crates.io ignores the latter anyway).
exclude = [".github/", ".cargo/", ".dockerignore"]

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ os-name }-{ target-arch }{ binary-ext }"
pkg-fmt = "bin"

[[bin]]
name = "rustingstrata"
Expand All @@ -24,6 +35,8 @@ ash = "0.38"
ureq = { version = "3", default-features = false, features = ["rustls"] }
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "webp"] }
base64 = "0.22"
indicatif = { version = "0.18.6", default-features = false }
console = { version = "0.16.6", default-features = false, features = ["std"] }

[profile.release]
opt-level = 3
Expand Down
154 changes: 109 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

[![Reviewed by Aletheore](https://img.shields.io/badge/Reviewed%20by-Aletheore-16140F)](https://aletheore.com)

A pure-Rust inference engine for GGUF models, built for MoE models that do not fit in VRAM. The CUDA kernels are
compiled at run time with NVRTC, and the same kernels run on Vulkan: no C++ build step, no ggml. Experts that do not
fit in VRAM run on the CPU at the same time as the GPU work, and the expert placement adapts to the routing it sees.
RustingStrata is a pure-Rust inference engine for GGUF models, built for MoE models that do not fit in VRAM. Experts
that do not fit in VRAM run on the CPU at the same time as the GPU work. It runs on CUDA and Vulkan with no C++ build
step and no ggml, and it has a chat page and an OpenAI-compatible server.

Supported models: Qwen3, Qwen3-Next, Qwen3.5/3.6, Qwen3.8-Flash-Next, Recursive Flint, Gemma 4, DeepSeek-V4.1-Flash,
GLM-5.3-Flash, Hy4-flash and Inkling 2 Mini. The architectures, the GGUF types and the notes for each model are in
[docs/MODELS.md](docs/MODELS.md).
Supported models: Qwen3, Qwen3-Next, Qwen3.5/3.6, Qwen3.8-Flash-Next, Qwen4-35B-A3B, Recursive Flint, Gemma 4,
DeepSeek-V4.1-Flash, GLM-5.3-Flash, Hy4-flash, Inkling 2 Mini, Kolibri 1.1, GigaChat 4 and Ternary Bonsai 2. The GGUF
types and the notes for each model are in [docs/MODELS.md](docs/MODELS.md).

Version 1.3.0.
Version 1.5.2.

## Numbers

Expand All @@ -24,80 +24,144 @@ file. Neither file fits in VRAM.
| UD-Q2_K_XL (11.7 GiB), decode after a 4K prompt | **113.4 tok/s** | 66.5 |
| UD-Q2_K_XL, prefill of a 4K prompt | 2216 tok/s | ~2236 |

The method, the ranges, Vulkan, the other models and the quality checks are in
[docs/BENCHMARKS.md](docs/BENCHMARKS.md).
### Many users at once

`serve --parallel N` decodes the requests together in one batched forward (CUDA). The table is total decode tok/s on
the same machine. The load script is `tools/loadtest.py`: N streamed chats at once, 128 reply tokens each, greedy.

| Clients | Qwen3-4B, RustingStrata (Q4_K_M) | Qwen3-4B, vLLM 0.33 (bf16) | Qwen3.6-35B-A3B UD-Q5_K_M, RustingStrata |
|---:|---:|---:|---:|
| 1 | 91.3 | 36.7 | 49.0 |
| 4 | 228.1 | 139.9 | 88.9 |
| 16 | 799.0 | 520.1 | 100.7 |
| 64 | 1698 | 1688-1765 | 129.3 |

- vLLM runs bf16 weights and RustingStrata runs Q4_K_M, so the Qwen3-4B columns are not like for like.
- The 27 GB MoE file does not fit on the 12 GB card, so vLLM was not run on it.
- The MoE column moves by about 30% between runs on this machine.

The method, Vulkan, the other models and the quality checks are in [docs/BENCHMARKS.md](docs/BENCHMARKS.md).

## Install

Download a binary for Linux or Windows from the [releases page](https://github.com/RustingStudio/RustingStrata/releases),
or build it (Rust 2024 edition; on Windows install the Visual Studio C++ Build Tools first):
```powershell
# Windows: installs to %LOCALAPPDATA%\Programs\RustingStrata, adds it to PATH, makes a Start menu entry
irm https://raw.githubusercontent.com/RustingStudio/RustingStrata/main/install.ps1 | iex
```

```bash
# Linux x86_64: installs to ~/.local/bin
curl -fsSL https://raw.githubusercontent.com/RustingStudio/RustingStrata/main/install.sh | sh

```sh
# Arch Linux (AUR)
yay -S rustingstrata-bin

# From source (Rust 2024 edition; on Windows install the Visual Studio C++ Build Tools first)
cargo build --release # the binary is target/release/rustingstrata
```

A GPU run needs one of:
Binaries are also on the [releases page](https://github.com/RustingStudio/RustingStrata/releases).

`rustingstrata update` replaces the binary with the newest release. `rustingstrata update --check` only says whether
one is out, and `serve` prints a line at start when one is. A binary from a package manager (the AUR package) is
updated with that package manager.

### GPU requirements

`--gpu` picks CUDA when it loads, else Vulkan. `--backend cuda`, `--backend vulkan` or `--backend hip` chooses one.

| Backend | Needs |
|---|---|
| CUDA | An NVIDIA driver with the CUDA NVRTC library. Volta (sm_70), Turing (sm_75) and Ampere or newer (sm_80+). |
| Vulkan | A Vulkan 1.3 driver with shaderFloat64, int8/16/64 and subgroup size 32 or a fixed 64. |
| HIP | A ROCm runtime with hiprtc (`libamdhip64.so`, `libhiprtc.so`). Experimental: see [docs/HIP.md](docs/HIP.md). |

- The first CUDA run compiles the kernels (~15 s) and caches them. HIP compiles for the card's `gfx` target on first
use.
- CUDA 13 dropped Volta, so a V100 needs the 12.x toolkit. Pascal and older cards use Vulkan.
- NVRTC is found by name: `libnvrtc.so`, or `nvrtc64_130_0.dll` or `nvrtc64_120_0.dll` on Windows (on `PATH` or
under `%CUDA_PATH%\bin`). `STRATA_NVRTC` names another file. Without NVRTC the run falls back to Vulkan.
- A Vulkan driver without one of the features is refused at start, with the list of what it lacks.
- A user runs Inkling 2 Mini on an Intel Arc B580 with Vulkan.

Every GPU tried so far is in [docs/SUPPORTED_GPUS.md](docs/SUPPORTED_GPUS.md).

### Uninstall

Delete the binary and the data folders. The models folder can be large: keep it if other tools use the files.

```bash
rm ~/.local/bin/rustingstrata # AUR: yay -R rustingstrata-bin
rm -r ~/.cache/rusting_strata # kernels, calibration, expert profiles
rm -r ~/.local/share/rusting_strata # downloaded models, usage stats
```

Windows (PowerShell):

- an NVIDIA driver with the CUDA NVRTC library (loaded at run time). Volta (sm_70), Turing (sm_75) and Ampere or newer
(sm_80+) work; CUDA 13 dropped Volta, so a V100 needs the 12.x toolkit. Pascal and older use Vulkan.
The library is found by name (`libnvrtc.so`; on Windows `nvrtc64_130_0.dll` or `nvrtc64_120_0.dll`, on `PATH` or
under `%CUDA_PATH%\bin`); `STRATA_NVRTC` names another file. Without it the run falls back to Vulkan.
- a Vulkan 1.3 driver with shaderFloat64, int8/16/64 and subgroup size 32 or a fixed 64 (tested on RTX 3060, Radeon VII
and V100; Intel Arc lacks shaderFloat64).
```powershell
Remove-Item -Recurse "$env:LOCALAPPDATA\Programs\RustingStrata", "$env:LOCALAPPDATA\rusting_strata"
Remove-Item "$([Environment]::GetFolderPath('Programs'))\RustingStrata.lnk"
$d = "$env:LOCALAPPDATA\Programs\RustingStrata"
[Environment]::SetEnvironmentVariable('Path', ((([Environment]::GetEnvironmentVariable('Path','User')) -split ';') -ne $d) -join ';', 'User')
```

`--gpu` picks CUDA when it loads, else Vulkan; `--backend` chooses. The first CUDA run compiles the kernels (~15 s) and
caches them. Every GPU tried so far is in [docs/SUPPORTED_GPUS.md](docs/SUPPORTED_GPUS.md).
`XDG_CACHE_HOME`, `XDG_DATA_HOME` and `--models-dir` move these folders: delete them where you pointed them. Models
that the chat page found in the Hugging Face or llama.cpp cache stay there.

## Quick start

Run `rustingstrata` with no arguments (double-click `rustingstrata.exe` on Windows). It starts a server on
http://127.0.0.1:8080 and opens a chat page that downloads models from Hugging Face and switches between the ones in
your models folder. Any app that takes an OpenAI-compatible address (Open WebUI, Jan, SillyTavern, code editors) can
use `http://127.0.0.1:8080/v1`.
Run `rustingstrata` with no arguments, or double-click `rustingstrata.exe` on Windows. It starts a server on
http://127.0.0.1:8080 and opens the chat page. The chat page downloads models from Hugging Face and switches between
the models in your models folder.

Any app that takes an OpenAI-compatible address can use `http://127.0.0.1:8080/v1` (Open WebUI, Jan, SillyTavern,
code editors).

`rustingstrata interface` asks for the model, the mode (terminal chat, chat page, API server, speed test), GPU or CPU,
the context length and the address, prints the command these make and runs it.
`rustingstrata interface` asks a few questions in the terminal, prints the command they make and runs it.

With flags:

```sh
```bash
M=path/to/model.gguf

rustingstrata calibrate --model $M # once per model and machine: best chunk size, MTP drafts
rustingstrata chat --model $M --gpu # --think for thinking mode, --temp 0.7 to sample
rustingstrata serve --gpu --open # the chat page; it downloads models
rustingstrata calibrate --model $M --dry-run # preview what calibrate will measure
rustingstrata calibrate --model $M # once per model and machine: finds the fastest settings
rustingstrata chat --model $M --gpu # --think false turns thinking off, --temp 0.7 samples
rustingstrata generate --model $M --gpu --prompt "Write a haiku about rivers." -n 128
rustingstrata serve --model $M --gpu --addr 127.0.0.1:8080
rustingstrata serve --model $M --gpu --pretty --graph --status-interval 250ms # live metrics and speed graphs
rustingstrata bench --model $M --gpu --pp 512,4096 --tg 128
```

Without `--gpu` the model runs on the CPU reference, which is slow and meant for checking. DeepSeek, GLM, Hy4 and
Inkling 2 open the GPU by themselves.
Without `--gpu` the model runs on the CPU reference, which is slow and meant for checking. On a machine without a
usable GPU, use `--fast-cpu`. DeepSeek, GLM, Hy4 and Inkling 2 open the GPU by themselves.

## Docs

- [USAGE.md](docs/USAGE.md): flags, the chat page and MCP tools, the OpenAI and Anthropic APIs, prompt caching,
several GPUs.
- [MODELS.md](docs/MODELS.md): supported architectures and GGUF types, notes and caveats for each model.
- [BENCHMARKS.md](docs/BENCHMARKS.md): every model against llama.cpp; older runs are in the
[benchmark history](docs/README.md#benchmark-history).
- [USAGE.md](docs/USAGE.md): every command and flag, the chat page, the server API, prompt caching, several GPUs.
- [MODELS.md](docs/MODELS.md): supported models and GGUF types, and the notes for each model.
- [HOSTING.md](docs/HOSTING.md): running a server for other people.
- [SUPPORTED_GPUS.md](docs/SUPPORTED_GPUS.md) and [AMD.md](docs/AMD.md): the GPUs tried so far and AMD notes.
- [CALIBRATION.md](docs/CALIBRATION.md): `rustingstrata calibrate` and the file it writes.
- [BENCHMARKS.md](docs/BENCHMARKS.md): every model against llama.cpp. Older runs are in the
[benchmark history](docs/README.md#benchmark-history).
- [SUPPORTED_GPUS.md](docs/SUPPORTED_GPUS.md), [AMD.md](docs/AMD.md), [HIP.md](docs/HIP.md): the GPUs tried so far,
AMD notes, the HIP backend.
- [VISION.md](docs/VISION.md): image input. [LORA.md](docs/LORA.md): LoRA adapters.
- [ROADMAP.md](ROADMAP.md): what is planned. Ideas from users are welcome.

## Development

```sh
cargo test --release # GPU tests need the model: STRATA_MODEL=path/to/model.gguf
```bash
cargo build --release
cargo test --release # GPU tests need the model: STRATA_MODEL=path/to/model.gguf
python -I tools/parity.py $M --extra "--gpu" --tag gpu # agreement with llama.cpp (needs llama-server once)
```

CI only builds, so run the tests before a pull request.

Source map: `src/gguf.rs` (file reader), `src/quant/` (dequantization), `src/model.rs` (CPU reference forward),
`src/cuda/` and `src/vulkan/` (GPU kernels, behind `src/backend.rs`), `src/gpu_model.rs` (GPU forward),
`src/expert_cache.rs` (expert placement), `src/deepseek/`, `src/glm/`, `src/hy4/`, `src/inkling2/` and `src/gemma4/`
(the models with their own forward), `src/serve.rs` (HTTP), `src/chat.rs` (chat templates and tool calls),
`src/main.rs` (CLI).
The command line is in `src/main.rs`, the HTTP server in `src/serve.rs`, the CPU reference forward in `src/model.rs`
and the GPU forward in `src/gpu_model.rs`. The GPU backends are `src/cuda/`, `src/vulkan/` and `src/hip/`.

## License

Expand Down
Loading
Loading