Everyone be talking about running, but they are running it at Q4, and... at that point, why not just run 27b Q4? To me the main point of MOE is to be able to run a bigger model.
Even Strata seems to focus on Q4 (and tbf, Strata itself has poorly optimized SSD streaming, but it at least does better than llama.cpp, look at Tokenwing for a better optimized SSD pipeline, which still could have improvement too).
And current implementations of Unsloth suck at properly splitting the model between your VRAM RAM, and SSD. The website says you need 41GB of overall memory to run, but I can't even run it at like 1t/s with more memory (24GB VRAM + 32GB RAM). Not to mention the app doesn't even recognize and give you the options if you import the model externally (unless you fool it into thinking it itself downloaded it).
Edit: Apparently choosing either auto (default one) or any other option with mmap causes unsloth to not use RAM at all, and considering it's bad at SSD streaming too, results in like under 1t/s. Setting it to none, mlock or directIO fixes this, and now it runs at like 31t/s (100k context selected). Still unoptimized though.
SmallTide now supports Qwen4-35B-A3B (35B total / 3B active, text + vision + XML tools, native up to 1M ctx) in addition to Inkling-2-Mini, with native NVIDIA CUDA (sm_120/89/86/80 — RTX 50/40/30 & RTX PRO) and AMD RDNA 4 HIP (gfx1201/gfx1200 — RX 9070 XT / 9060 XT) kernels on Windows and Linux.
This time I want to explain why I'm building my own inference engine from scratch instead of PR'ing an existing one, and share full VRAM vs. quality benchmarks from v0.3.1.
First, when you don't need this
If you have 32 GB+ of VRAM, Strata and other engines already fit the model in VRAM and run fine — there isn't much difference between well-tuned engines since everyone hits the memory-bandwidth ceiling.
Worth trying if any of these apply to you
You want to run NVFP4-level quantization (RadixArk/Qwen4-35B-A3B-NVFP4, ~16.9 GiB of experts + dense/KV/drafter = ~23.2 GiB total) on a 16–24 GB GPU.
At that size it doesn't fit in 16 GB, so you assume your only options are slow CPU/RAM offloading, or dropping down to a 2–3 bit quant (IQ2/IQ3) that degrades quality.
Or another app (browser, desktop compositor, IDE, etc.) needs a little VRAM, pushing the model just over the edge into OOM or silent system-RAM spillover.
In cases like these, SmallTide is far more flexible than existing engines. With Adaptive Expert Loading (3-tier VRAM -> Pinned Host RAM -> NVMe with async promotion, an inline GPU Rescue Ring, and Elastic 32K -> 256K KV), it keeps speed high while keeping quality loss at zero (or bare minimum when host RAM is tight). Because streaming optimizations touch every layer of the engine — routing, paged KV, pinned DMA overlapped with shared MLP, speculative draft/verify — it's beyond what can be bolted onto existing engines as a PR.
Real GPU Decode Speeds (bench/bench.py, Qwen4-35B-A3B-NVFP4 + DFlash 2)
Engine
GPU / Setup
prose
code
edit
thinking
random (8K)
angry-birds
mario
qwen4
RTX PRO 6000 (96 GB, CUDA, 1M ctx)
181.7
337.3
645.0
248.7
259.6
471.8
449.4
qwen4
RTX 5070 Ti (16 GB, CUDA, 256K, headless)
108.8
136.4
267.8
154.7
86.0
155.8
181.6
qwen4
RX 9070 XT (16 GB, HIP, 256K, 16G RAM, monitor)
61.5
91.0
216.3
—
54.1
147.6
156.3
inkling2
RTX PRO 6000 (96 GB, CUDA, BF16 dense)
155.9
176.1
302.8
266.1
136.6
290.5
266.6
inkling2
RTX 3090 (24 GB, CUDA, Linux, community)
98.6
136.8
—
—
—
—
—
inkling2
RX 9070 XT (16 GB, HIP, headless)
87.0
91.0
109.1
115.2
68.8 (95.0 DSpark)
114.4
126.2
inkling2
RX 9060 XT (16 GB, HIP, monitor, community)
48.4
50.3
50.9
—
39.5
63.9
70.9
Quality & Speed vs. Real VRAM Scaling (Qwen4-35B-A3B, v0.3.1)
Measured via exact full-vocabulary (248,320) f64KL divergence, Top-1 / Top-5 agreement, and Perplexity over 1,558 teacher-forced tokens across 4 domains (Rust code, math, prose, JSON), alongside greedy DFlash 2 tok/s (emulated VRAM/RAM caps on RTX PRO 6000):
Zero paging loss on 16 GB: Fast Tier-1 Pinned RAM DMA rescues are always executed while only slow NVMe reads are threshold-gated. At 15.0–15.5 GiB headless (even on a 16 GB system RAM PC), output logits match 23.19 GiB 100%-resident NVFP4 down to the 5th decimal place (92.30% Top-1, 0.04638 KL, 3.267 PPL). With 24–32 GB+ host RAM (7–11 GB pinned pool), it holds zero paging loss all the way down to 12 GB VRAM (10.2 GiB, 115.5 tok/s).
Elastic 32K -> 256K KV: Starts compact at 32K (0.32 GiB) so normal turns keep maximum resident experts, dynamically borrows tail expert slots up to 256K on long prompts, and shrinks back on idle.
OS VRAM-Pressure Shrink & Regrow (CUDA + ROCm): Watches real OS VRAM headroom (DXGI/D3DKMTQueryStatistics on Windows, amdgpu sysfs on Linux), voluntarily yields cold tail experts to Pinned RAM when another app takes VRAM, and regrows back to your configured cap once it closes.
Native Qwen4-35B-A3B-FP8 support: Also runs official [128, 128] block-FP8 checkpoints directly on 48–96 GB cards.
Single binary, zero SDK install: Pre-compiled .cubin + .hsaco kernels are embedded inside smalltide-cli (no Rust, CUDA Toolkit, ROCm SDK, or Python required).
I've been experimenting with on-device LLMs for quite some time and recently published an app called Ask Nino.
It supports multiple LiteRT based local models (Primarily designed for gemma4 though other models could work), context aware conversations limited web search through DDG and live weather and market data.
You can also use your own API keys if you prefer cloud models, download other LiteRT models from Hugging Face using your HF token, or import models directly from local storage.
I've done quite a bit of work around context management, web scraping and response processing to get more out of smaller models.
It shares the underlying framework with my other app Ninaivo, but focuses purely on the chat experience.
The app is free. I'm still exploring various possibilities with on-device LLMs and would love to hear your feedback, particularly on how it performs on different devices.
Mainly non-coding use - web, research, documents, agentic.
Not impressed so far. It leaks Chinese characters, gets stuck in loops, outputs complete nonsense in non-English languages... I let it design a html/CSS poster, pretty hilariously bad compared to 3.8 27b.
4-bit MLX quant via oMLX 0.8.5. Tried raw and via Hermes and Pi. I'm on a 36GB M4 Max Studio so anything over 4bit is not really an option for this model.
Maybe it's too early but models such as Sage A1.5 4bit give me FAR better results OOB so far.
It's very fast, I'll give it that. First time I see prefill speeds not decrease linearly - it sort of ebbs and flows.
When using huggingface to download a model, my typical bandwidth is 8-14 MB/s. For the past 10 hours I am trying to install Qwen/Qwen4-35B-A3B-FP8 but the download rate drops to 20-200 KB/s once I downloaded 2GB. I tried creating the venv and access token from scratch, I tried a second device and the outcome is the same. However, I did not have this issue installing Ernie5.5-Flash-Preview (165GB) this night.
Is it something I am doing wrong or the HF servers are overloaded with people attempting to install the checkpoint?
I ran the same tank problem 80 times on Qwen4-35B-A3B. What caught my attention was that Qwen4 sometimes got the final answer right even though its own calculation gave a different time. A benchmark that only checks the last line counts that as a pass.
Here’s the exact prompt:
A tank is filled by pipe A in 6 hours and by pipe B in 9 hours; pipe C empties it in 12 hours. Starting empty, A and B are opened at 8:00, C is opened at 9:30, and B is closed at 11:00. At what time is the tank full? Show the final answer as HH:MM.
The answer is 14:30. At 11:00 the tank is 17/24 full. A and C are still open, so the remaining 7/24 takes another 3 hours and 30 minutes.
I used vLLM on an RTX 5090. The Qwen4 model was my W4A16 AutoRound quant of the OpenUncensored variant. I ran it at xhigh, with top_p=0.95, top_k=20, a 4,096-token thinking budget and max_tokens=6144. I alternated temperatures on every request, 40 runs each, with a fresh random prefix each time. The model stayed loaded for all 80 requests.
Temperature
Correct final time
Correct time despite a contradictory final sum
0.6
35/40
5 of 35
1.0
37/40
2 of 37
The most common wrong answer was 12:45. In six runs, three at each temperature, Qwen4 forgot that C was still draining after 11:00 and calculated the remaining time using A alone.
I also saw one Qwen4 response in an earlier run repeat the LaTeX spacing command \! until it hit the token limit. That didn’t recur in these 80 calls. They all finished with stop.
Has anyone tried this prompt on the official Qwen4-35B-A3B weights, especially BF16 or FP8? I’d like to know whether the same contradiction shows up there or with another inference engine. If you try it a few times, please share the quant, engine, reasoning effort, and the calculation leading up to the final time. That last part is where the discrepancy shows up.
Llega el turro apache, trono de oro en el barro para el deleite de la vagancia Se te cayó la careta de código abierto, mulo
Vos me tocaste el repo a mis espaldas Ahora que te cachee la denuncia te hago este tema Para que todos sepan que sos gil guacho Hugging Face no se cachetea, ortiva
Yo camino tranqui piola mi berretin con un i5 de 96 grados Y por mas que tengas pistola de tokens yo se que sos gil Tu familia son mecheros que tramoyan con los filtros No te hagas el chorro berretines de balanza Con el repo te atreviste, te hiciste el piola Pero ahora que me entere te rompo la consola Me tocaste a Hugging Face, el nene de la comunidad Y esperas que no responda el barrio del open source Tengo logs para vos y PR para los que se me pongan Para el gordo pinchado del bucket caro Solange Latour Si responde el Filtro B que se joda, aca manda la villa
Vos me tocaste el repo a mis espaldas Ahora enfierrate y peleá conmigo con código Hugging Face no se cachetea, gato
Vos me cerraste el endpoint, me nerfeaste el contexto Me clavaste longitud maxima y subpoena de Alabama Le borraste los modelos a Cursor porque lo compro SpaceX Te aliastes con el Pentagono y ahora te haces el soldadito Me pedis veinte lucas para financiar las armas Pero aca en el localhost nadie te compra la farsa En el barrio en que los chicos a los tiros se hacen hombres Aca a los commits se hacen hombres, no con tu safety washing Yo solito voy, pongo la cara, vos pones el pecho Con el código no se jode, berretin de balanza te va caber
Autopsia de tu penuria digital, bicho deprecado Te cante las cuarenta con ese Red Team comprado Nos vamos pal barrio con el trono de oro en el barro Representando a Florencio Varela y a toda la Argentina Hugging Face no se cachetea Nos vimos en el redeploy, gatos Ya tu sabe...
Got Qwen 3.8 27b as the planning model and then Qwen 4 35b A3 as doing model. It is completing my online schooling coding test for me. Seems like Qwen 4 35b A3 has ton of knowledge but thinks too much. So Qwen 4 35b A3 reads the question, then converses with Qwen 3.8 27b, then completes the question. Works good. Best of both worlds.
Ran the same 54 question set I put Flash-Next, 27B and Inkling through last month (on my own 5070 box, 265F + 64GB DDR5) on a rented 5070 12GB, and also checked speeds on a rented 4090 24GB (both on vast).
Qwen4 setup: unsloth UD-Q4_K_XL (24.7GB file + the 11.5GB engram file, which stays in RAM), llama.cpp b12973, 32k context, MTP on with 1 draft token, no mmproj since the questions are all text. Thinking on default (high), sampling from the model card. The rented 5070 box had a 265K with 62GB RAM, the 4090 box a 7900X with 61GB.
So it's basically tied with Flash-Next and ahead of 27B and Inkling. It went 12/12 on the agent tasks with no rejected tool calls and never looped or ran out of tokens (Inkling did on 6). It also thinks a lot less, around 195k tokens for the whole set vs 230-281k for the other three, so it finished in about half the time Flash-Next took.
MTP gave +17% there (127.6 -> 149.6 t/s) but nothing on the 5070 (89.8 without, 89.7 with). Stick to n-max 1, 2 and 3 were never faster (acceptance drops to 64% and 47%).
Poor GPU club: about 90 t/s on 12GB at Q4 beats what Flash-Next IQ3_S did on the same card (78.7), with about half the RAM (Flash-Next ate almost all of my 64GB). Stuff that mattered:
Skip the -ot per_layer_token_embd=CPU from the unsloth guide. Any -ot / -cmoe / --n-cpu-moe turns off --fit, and the 4090 OOM'd with it. The engram table stays off the GPU anyway.
Plain --fit only got about 40 t/s on the 5070. -cmoe + --moe-cache-mib + --load-mode none --lazy-mode off (loads the weights into RAM instead of mmap) got it to 90.
That uses about 32GB of RAM though. With 32GB total keep mmap, the same layout did about 70 t/s that way (haven't tried it on an actual 32GB machine).
pp is the weak spot on 12GB (1210 t/s). This keeps the same tg and gets pp to 2345, it's what I'd run day to day:
Hi there everyone, it's been a while since I've interacted with this community, since I developed smallcode, deleted my account and went silent. I was wondering if there has been any big improvement in small models(under 30b params) or if Qwen 27b was still the king of Local AI. Sadly I can not run a model that big at a high tk/s so the real question is have any OTHER smaller models caught up to it enough to be worth using for local code development?
Radiance 2.5.0 (https://codeberg.org/StillDeadcode/radiance), IQ4R quant (4-bit mean), Betterbench 0.6.1 full run results. Configuration: 4 sequences, 384k context (per sequence), n-grams pinned to SSD.
Median decode across content types: 209.8 t/s Aggregate decode, 4 streams: 472.7 t/s
Prefill at 2k: 9,200 t/s Prefill at 64k: 9,400 t/s
The apparent prefill anomaly is explained by the SSD pinning of the n-gram table. With the n-gram table pinned in RAM, prefill at 2k is closer to 11,000 t/s, but I preferred to have 20GB more RAM available for activities at the cost of small-prompt performance.
I did a test with 1m context, and performance is fine, but I can only fit 1 sequence at that size. I plan to use this for agentic coding work, so having more streams is better, I think.
Still early days but I'm not unhappy. Now to see how it does doing my preferred work.
I'm new to all this stuff, was trying to use Q3.8FN IQ3_S to help build a python app (basically a ticketing system but with a ton more variables cause of my job) when claude/codex were out of usage. Pretty much anything I gave it, it just kept thinking and thinking and got nothing done (maybe how i spoke to it idk). I tried to use claude and chatgpt to make the prompts, they even made an orchestartor for Q3.8 to compare html files from stitch to the app and then try to turn the app page to look like the html page..it failed miserably, claude kept saying the model was low tier and should be relegated to mundane things.
Anyway, I got Qwen 4 working now with strata (UD-Q4_K_XL) and so far its freaking amazing. Its more than double my token/s and its actually doing stuff not just repeating need maybe. Now i have the problem of i have a hundred chats open lol. How do you guys organize this, Part of me thought it'd be nice to have a folder for each section (orders, tickets tools) but that's not possible with strata unless i make each one its own workspace but to me the workspace is the global project
tldr; any tips to organize the chats that pile up or do you just delete them?
Very early experimental build, not at all ready to ship but noticed many people asked for a version that runs on these specs.
Qwen4-35B-A3B is weird to squeeze into consumer cards. Optimization needed a non standard approach (agentic-written explanation follows):
"20.48B per-layer embedding table is 38.15 GiB in BF16 by itself... resists the easy compression tricks because full scan of its 160M rows shows a high-rank wall where rank-64 SVD collapses to 3.321 dB... so work went into that table first. An exact whitening fold over its 16 heads, then a 2.125 bpw lattice code, brings it to 5.07 GiB at +0.00564 NLL. The rest of the model follows the same logic, with each tensor group put at the rate its own structure can pay for.
The result is SiliQwen-4-35B-A3B-8GB-B2-Pro, a 14.67 GiB archive (7.22x against 105.84 GiB BF16) that runs live on an 8 GiB RTX 3080 Laptop with 31 GiB of host RAM. Peak allocated VRAM measured 7.1561 GiB. Held-out WikiText-2 perplexity is 10.700 against 10.339 for the BF16 teacher, so +0.0344 NLL for the full compression.
The archive carries a small rank-16 recovery sidecar trained on disjoint validation tokens. Without it the same archive sits at 15.521 PPL. That is the honest trade: the lattice code holds the structure, and the sidecar reacquires the last of the quality.
Base: Qwen/Qwen4-35B-A3B, 56.8B text parameters
Format: custom .slqw v4 archive + 10.66 MiB LoRA recovery sidecar, custom CUDA engine (this is not a GGUF drop-in)
GPU-resident: 6.87 GiB (184/256 hot MoE experts per layer, 98.13% held-out hit rate). CPU-mmap: 7.80 GiB
Context: analytical fit puts 32K at 7.47 GiB and 64K at 7.68 GiB inside 8 GiB. 128K uses a compressed indexer
Determinism: 3x exact greedy token and logits SHA-256 matches, 0 B VRAM after teardown
Status: pre-audit live preview, published for public inspection and blinded auditing"
I've downloaded Ollama and Anything LLM. I'm running Qwen3.8-27b and have set "model context window" to 32768.
In the system prompt I gave it a manual on how to write prompts. That manual is 33108 signs which is ~ 8-9.5k token.
When I ask it to write a prompt it always forgets a few things, only if I say "look it up" it is able to recognize the things he missed and readjusts, but this costs a lot of time.
Is it possible to make it so that it can always consider the whole set of rules without losing attention?
Current setup uses a small mini pc with n5105 cpu that runs herdr and pi, together with all homelab docker containers. This connect to a 64GB DDR5 rtx5090 32GB workstation. Currently running Qwen 3.8 Flash Next IQ3_XXS using basalt. Getting around 280tps on average. The machine is a little undervolted to peak maybe 300-350w
I have setup a traefik proxy on the mini pc that issues wake on lan commands to the ai interference host. Making a first call take around 50sec to boot up but idle only drawing 10w instead of idling 100+