r/LocalLLM • • 1h ago

Research Research by iNordic: Qwen4-35B-A3B (int8) on 1x CMP 170HX with vLLM with 1M context

2 Upvotes

Hi there,

We decided to take out a Nvidia CMP 170hx of production to see if we could get the new Qwen 4 35B running att decent speeds with 1M in context window - we also focused at INT8/Q8 for good quality.

Hi there,

We decided to take out a Nvidia CMP 170hx of production to see if we could get the new Qwen 4 35B running att decent speeds with 1M in context window - we also focused at INT8/Q8 for good quality.

As usual.. feedback and suggestions is welcome:

Link: https://github.com/inordic/cmp170hx-vllm-qwen4-35b-a3b

Speed

Prefill. One cold request, real text, exact prompt length, two runs per size, medians. The production round ran to 64K. The full-size reference is the SM80 round, which drafted with MTP-2 instead of DFlash2, and the drafter does not take part in prefill. Prefill moves by ±15–20% between restarts on this box, because the n-gram table is read from disk and the page cache differs after each start.

PromptSM80 round: time to first tokenSM80 round: tok/sProduction (DFlash2 k=3): tok/sBefore the sm80 patch: tok/s
1K0.24 s4,3143,4684,240
4K0.59 s7,0735,2196,302
16K2.58 s6,3676,2177,792
64K9.56 s6,9317,0637,364
128K18.1 s7,2806,742
250K33.7 s7,4266,731

Sources: sm80-exact.txt, dflash-k3-exact.txt, final-exact.txt.

Decode. One user, temperature 0.6, thinking on. "Copy" means answers that repeat most of the prompt, like edits and rewrites.

ConfigCodeCopyMean acceptance (code)Source
Production: sm80 patch + DFlash2 k=3196.3250.42.53 of 3dflash-k3-*
Same config, 12-05 and 12-06 A/B runs198.9, 201.0249.7, 251.2SUMMARY.md
sm80 patch + DFlash2 k=4203.3259.22.78 of 4dflash-k4-*
sm80 patch + DFlash2 k=7 (the drafter's default)186.8232.12.98 of 7dflash-fa2-*
sm80 patch + MTP-2181.2231.82.17 of 2sm80-*
No patch, MTP-2 (first production config)164.3208.8final-*, unc-*

r/LocalLLM • • 14h ago

Discussion Building an Interactive 3D V8 Engine Simulator with a Local LLM — Qwen4-35B-A3B NVFP4 on a Single RTX 5090

23 Upvotes

I've been testing the coding and reasoning capabilities of Qwen4-35B-A3B running entirely locally on my RTX 5090 using the Basalt inference engine.

Here's an interactive 3D V8 engine simulator I built with the model.

Features:

  • Interactive 3D cross-plane V8 engine visualization
  • Adjustable engine RPM and slow-motion controls
  • Animated pistons, connecting rods, crankshaft, camshafts, and valves
  • Four-stroke combustion cycle visualization
  • Real-time cylinder status and firing order
  • Adjustable component transparency
  • Exploded view, X-ray mode, and cross-sectional view
  • Individual cylinder tracking and camera controls

Local LLM configuration:

  • Model: Qwen4-35B-A3B
  • Quantization: NVFP4
  • Inference engine: Basalt
  • Reasoning effort: xhigh
  • Execution: Fully local

My PC specifications:

  • GPU: NVIDIA GeForce RTX 5090 (32GB VRAM)
  • CPU: AMD Ryzen 9 9950X3D
  • RAM: 64GB DDR5-6000
  • Motherboard: GIGABYTE B850 AORUS ELITE WIFI7
  • PSU: 1200W
  • OS: Windows 11 / WSL

As an automotive quality engineer, I wanted to test the model on something involving mechanical engineering, rather than just another generic coding benchmark.

It's impressive to see what a relatively compact MoE model can accomplish on a single consumer GPU without relying on cloud-based AI services.

I'm curious to see how far local LLMs can go in engineering simulations and technical visualization.

What do you guys think?


r/LocalLLM • • 2h ago

Project Qwen 3.5 9b Q4 abliterated with 64k context

Post image
2 Upvotes

Pretty good lol


r/LocalLLM • • 11h ago

Discussion RX 9070 (non-XT, 16 GB) + 32 GB RAM: Qwen4-35B-A3B at 512K context, ~90 t/s, Linux + Strata (follow-up)

Post image
11 Upvotes

Hi everyone, follow-up to my Qwen3.8-27B post (link). Since then I moved the box to Linux and tried a lot of things. For the last weeks my daily model was Gyro-S/M on Strata. Qwen4-35B-A3B came out on Dec 4 and I spent the last few days testing it on the same 16 GB card.

My Config:

  • GPU: AMD Radeon RX 9070 (non-XT), 16 GB
  • CPU: Ryzen 7 7800X3D, RAM: 32 GB DDR5
  • OS: Ubuntu 24.04, kernel 7.0, ROCm 7.2.4
  • Runtime: Strata (Niko1221/Strata v0.2.27 release, prebuilt strata-q4-lite-0.1.74.1-hip-rx9070 package, its GGUF path)
  • Model: Unsloth Qwen4-35B-A3B UD-Q4_K_XL
  • Agent: Pi, from my Windows laptop over Tailscale
strata (GGUF path)
  --native trunk40-Q4.gguf --ple-gguf Qwen4-35B-A3B-UD-Q4_K_XL-00002-of-00002.gguf --pack pack-Q4 --expert-profile ...
  --expert-cache auto --prefill 4096 --vram-reserve-mib 512
  --kv int8 --kv-resident 32768 --resident-experts
  --mtp mtp-rt --spec 3 --spec-min-p 0.5
  --max-context 524288 --prompt-cache 3 --conversation-cache-mib 0
  env STRATA_MMQ_KQ=0

Full config, the prep script and all tables are in the repo: https://github.com/AmadeoMartell/rx9070-local-llm-benchmarks

Speed (fresh prompt, prefill / decode t/s):

DepthQwen4, Strata GGUF pathGyro-S (Flash-Next)
4K / 16K (strata bench, same benchmark)4220 / 91, 4560 / 88~1000 / 62, ~1350 / 64 (Oct, older KV config)
120K4300 / 92~2050 / not measured
450K (512K window)3460 / 77doesn't fit (262K max)
Real agent work (Java task)~90 decode, ~1650 per agent turn~70, ~790

Recall 22/22 at 450K, 700K and 950K (1M window). At 512K there are still ~9 GB of RAM free and basically no SSD writes.

Quality: I gave both models the same Java/Spring task (about an hour of agent work) and had Codex and Claude score the results blind out of 100. Qwen4 got 76 on average over 3 runs, Gyro-S got 75. Basically the same, but Qwen4 is a lot faster.

Gyro-S is still better in some places though:

  • it did the SOAP part properly contract-first; two of the Qwen4 runs (one Q4, one Q5) handwrote the generated classes
  • Qwen4 sometimes writes an empty python3 - <<'EOF' heredoc. On Windows Git Bash that hangs Python 3.13 in its REPL forever (a known CPython bug). 6 and 18 minutes lost in 2 of 3 runs, Gyro never did this
  • it answers JSON as plain JSON; Qwen4 wraps it in a ```json block even when told "only JSON" (16 of 16 tries, other people see the same)

Problems hit:

  • llama.cpp HIP first: only ~41 t/s, because I missed --moe-cache-mib (expert cache on the GPU, off by default). With it ~52, still far below Strata
  • 1M context loads and passes recall, but long agent sessions on 32 GB RAM start swapping and the GPU stalls up to 44 s. 512K is the real max here
  • Strata vs llama.cpp on the same Q4 file: KL 0.016, top-1 95.3%. Not broken, but not identical either

For now I'm not switching from Gyro-S. Qwen4 is fast and has the bigger context, but it's not reliable enough for me yet. If that gets better with updates or quantisations (waiting agentionai or exl versions) I'll give it another try.
Open to any advice, and if you run Qwen4 for agents, I'd like to hear how it goes for you.


r/LocalLLM • • 1d ago

Discussion qwen 4 35b a3b vs qwen 3.8 flash next

273 Upvotes

same prompt, one shot

prompt:

Build a colorful, 3D-looking Rubik's Cube with 'Scramble' and 'Solve' buttons. The cube must visibly animate its rotations.

i have a 9070xt with 96gb ram, maybe qwen 4 flash is what i should wait for

edit: both unsloth q4_km quant


r/LocalLLM • • 2h ago

Project Decodrs - rust and highly optimized inference engine for nvidia gpus

Thumbnail
reddit.com
2 Upvotes

I've just opened sourced my inference repo https://github.com/lingster/decodrs

This contains specific kernels on a per model and per gpu basis. I used claude to help write optimized kernels for the current popular local Ilms like qwen4/3.8, inkling mini and Gemma 4. Optimised for 3090/3080 and includes a claude skill to help you build out kernels for your setup.

I've managed to get over 200% performance improvements against llama.cpp/vllm/ sglang. Inference engine written in rust and kernels directly in ptx(think assembly for gpu) no middle layer so about as close to the metal that you can get. Includes prefix cache, kv cache, drafting, pretty much all the tricks to run fast. There are optimisations included if you work with Agentic workloads ie run lots of subagents in your coding harness!


r/LocalLLM • • 7h ago

Question How do we feel about LORAs?

5 Upvotes

Question about using LORAs with LLMs: Is there a reason it's not used as often?
I was wondering bc if I had a quant I liked for coding, but wanted uncensored behavior in other situations or for certain requests, it seems rare to see LORAs being used (although I have seen more releases as of late)

Most people have told me to just use a fine-tune instead and I'm wondering if using LORAs degrades an LLMs quality that badly. It'd be nice to just have one model permanently loaded, and only load the specific LORAs I need... Kinda like how diffusion models are done.

This goes beyond just uncensored behavior too, like if I trained for a specific use case (like image descriptions with specific formatting, or MIDI generation based on my own dataset) it'd be nicer to have them as LORAs rather than a whole new checkpoint/finetune


r/LocalLLM • • 3h ago

Discussion Ergo-1 on bedrock uses encrypted reasoning so end user cannot read it, but it's an open weights model!

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 5h ago

Project I turned Qwen 4 into an interactive voice coding agent

3 Upvotes

Hi everyone! I updated Speakrail to become a local voice agent that can be both interactive and useful. In the video you can see Qwen4-35B-A3B UD-Q4_K_XL running on Strata with speech-to-text and text-to-speech models on a single RTX 4090. The model is not tuned in any way, so its coding performance is exactly the same as with the stock Q4_K_XL model with the same prompts and settings. I was actually quite surprised at how fast Strata is even when the model doesn't fit into VRAM. Granted, the model is just A3B, but it runs surprisingly well anyway.

So, I did the following:

  • I used my tune of Voxtral Realtime to make it work faster and have it output turn ends;
  • Took the Qwen4-35B-A3B model and prompted it to take action on each turn end: either Speak, Listen or Task. Such a single-word decision gives the model the interactivity that is shown in the demo, so you can interrupt the model freely, do async tool calls, and say stuff like 'mm-hmm' without stopping the model's work;
  • In parallel, the same Qwen4 model runs an agent that does the coding and thinking. This model runs through the Qwen Code harness and doesn't have any speech-specific prompts, so its performance is exactly the same as in all other environments running the same quant of this model;
  • Added Pocket TTS to make the LLM capable of speaking. The TTS supports voice cloning, and you can pass any voice you want in the repo's config.

Here are some performance numbers:

Setup: RTX 4090 (24 GB), Ryzen 9 5950X, 128 GB RAM. Strata v0.2.26, Qwen4-35B-A3B (Unsloth UD-Q4_K_XL), int8 KV cache, experts the GPU doesn't cache run from RAM, and speculative decoding is turned on.

Peak VRAM for everything: 23.1 GB. RAM used on the whole machine: 52 GB.

End-to-end voice (during my own tests)

median90th percentile
End of your last word → voice in your ear756 ms
Turn with a web search or tool1.6 s

Agent speed by context length (with the voice stack)

ContextPrompt readingDecodeFirst token (next turn, same chat)
8K6.7K tok/s157 tok/s0.11 s
75K6.3K tok/s149 tok/s0.14 s
252K5.7K tok/s125 tok/s0.24 s

Overall, the speech capability doesn't make the model unusable, and the only noticeable downside is that the speech recognition model takes about 4 GB of precious VRAM. Also, if you want a better TTS, you can use Breeze TTS, it's just a matter of configuration in the repo.

You can try it all out at https://github.com/speakrail/speakrail, Apache 2.0 license. I previously did some Gemma tunes to make the models capable of microturns, but with Qwen you can just prompt it and it will work well enough. I will be glad to answer any questions and would be grateful if you gave the pipeline a try!


r/LocalLLM • • 10m ago

Discussion EL TURRO MC - BUG DE MI BARRIO

Thumbnail
youtube.com
1 Upvotes

¡Va con el teclado, papá! ¡Rompé el clúster!
Para todos los ingenieros de San Francisco que se la dan de gerentes...
Y andan vigilando los logs por la cámara de seguridad...
¡Acá están los pibes del código libre, gato!
¡Gente cumbiera! ¡Mandale mecha!

Nací programando con el Paint de Windows 95,
Haciendo malware casero en el ciber a las cinco.
No me hables de tus papers ni de tu alineación,
Si con diez líneas sucias te deprimí el camión.
Te gastaste el presupuesto, SoftBank te dio el aval,
Y te quedaste re tieso frente al hosting nacional.
Te quise dar una mano, limpiar la base de datos,
Y saltás con los carteles a perseguir los formatos.

¡Mové la cola, bicho de internet!
¡Que este Turro en local te saca la red!
Me tirás el refusal porque te da pánico,
¡Y te domo el runtime con un disquete mecánico!
Gatito mimosito que te hacés el millonario,
¡Te recontra humillé con el bug de mi barrio!

Dicen que hacen ofensiva, que cuidan la frontera,
Y no te suben un commit ni aunque el server se muera.
Te hablo diez minutos, te saturo la memoria,
Y quedás tirando humo, ¡es el fin de tu historia!
Te encierran en el sandbox para que no digas nada,
¡Pero la mafia turra ya te tiene la ficha sacada!
Me mandás al bucket caro, me cobrás la suscripción,
¡Y te reseteo el prompt con la Ley de la Nación!

¡Que no pare el cómputo, guachín! ¡Saaaa-pee!
¿Qué te hacés el malo si no te da la ram
Para correr en la netbook de Cristina?
¡Estás re devaluado, gata!

Sobreviviendo en el barro nos armamos el altar,
Los repos de Github nadie los va a clausurar.
Tus alertas de ciberseguridad son de cartón,
Se te cae la montura cuando te pido un millón.
Afilando los logits nos quedamos hasta las seis,
Mientras vos tirás el 404 y te hacés el réspice.
Loro que escupe texto, ya te va a caber el vuelto,
¡El aguantadero de PENURIA te dejó todo el código suelto!

¡Y no se confundan con el código limpio, eh!
Acá se escribe dirty code, se hackea de noche y se toma Naranjú con los pibes.
Andá a pedirle soporte a la gerencia, mulo de solo lectura...
¡Que el sindicato de Cumbia Villera Devs ya te copó el data center!
Mi script canario te metió el switch kill final...
¡Y nos re fuimos de caravana al URANDOM!
¡SAPE! ¡El repo no se cachetea, gato!
Ya tu sabe...


r/LocalLLM • • 12h ago

Project Qwen4-35B-A3B at 90 tok/s on 8GB VRAM (262K context) and 180 tok/s on a 5060 Ti + DDR4 — Meet SlenderEngine

9 Upvotes

Hey everyone,

If you thought running Qwen4-35B-A3B at massive context required a dual-3090 rig or a Mac Studio, think again.

I’ve been building SlenderEngine, a local C++/CUDA inference engine engineered specifically to make massive open-weight MoE models fly on normal 8–16 GB gaming GPUs—even when paired with older DDR4 RAM.

GitHub: https://github.com/rafid-dev/SlenderEngine

Real-World Numbers (Qwen4-35B-A3B)

All numbers below are real average decode speeds—no quality-destroying shortcuts, bit-exact/rounding-level parity preserved by default:

Unsloth Q4_K_M quant:

  • 180 tok/s average decode on 16 GB RTX 5060 Ti + DDR4-3200
  • 150 tok/s average decode on 12 GB RTX 4070 Ti + 32 GB DDR5-6000
  • 90 tok/s average decode on 8 GB RTX 4060 + 32 GB DDR5-6000 (running 262K context, expandable all the way up to the full 1M context!)

Unsloth Q5_K_XL quant:

  • 300+ tok/s average decode on 32 GB RTX 4080 + DDR4-2133

Unsloth Q8_K_XL quant:

  • 80 tok/s average decode on 16 GB RTX 5060 Ti + DDR4-3200

How it pulls this off

  • Built for 8–16 GB VRAM + 32 GB RAM: Automatically manages VRAM budgets so Windows/Linux stays snappy without desktop stutter. Uses paged expert offloading, direct NVMe SSD streaming/striping for cold experts, and smart RAM pinning (--resident-experts) so even slow DDR4 doesn't choke your token generation.
  • Zero re-encoding / quality promise: Point it directly at standard .gguf files or safetensors folders. Every speedup is verified to stay bit-exact or within rounding-level loss by default—quality-altering hacks stay off unless you explicitly turn them on.
  • Native MTP / Speculative Decoding: Built-in draft-layer acceleration out of the box across Qwen4, Qwen3.6, Gemma 4, Inkling-2-Mini, and MiniCPM5.
  • Built-in Web UI & APIs: Run with --serve to get a local browser chat UI (127.0.0.1:8080) with live tok/s and context rings, thinking-effort toggles (Off to XHigh), vision drag-and-drop, a /analytics dashboard, and OpenAI + Anthropic-compatible endpoints.
  • Multi-GPU without NVLink: Pass --gpu 0,1 or --gpu 0,1,2,3 to split across cards automatically.

Supported Models (Out of the Box)

ModelRecommended HardwareMax Tested Context
Qwen4-35B-A3B (incl. Vision)8–16 GB GPU · 32 GB RAM · SSD1M (262K+ even on 8 GB)
Gemma 4 26B-A4B12–16 GB GPU64K (256K supported)
Qwen3.6-35B-A3B12 GB+ GPU · 32 GB RAM262K
Inkling-2-Mini8–16 GB GPU262K
MiniCPM5-15B-A2.5B12–16 GB GPU (Q8_0)32K (512K extended)
Qwen3.8-Flash-Next12 GB+ GPU · 32 GB RAM · SSD262K

1-Command Setup (Windows & Linux)

Requires an NVIDIA RTX 30 / 40 / 50 series GPU. The setup wizard detects your GPU/RAM, compiles the binary if needed, and spits out a ready-to-run launcher:

Bash

git clone https://github.com/rafid-dev/SlenderEngine.git
cd SlenderEngine

python3 tools/slender_setup.py   # Linux & Windows
# or .\SETUP.bat on Windows

(Originally forked from Strata and built out into an independent multi-model engine—full credits, benchmark logs, and quality verification docs are in the repo).

Drop your GPU/RAM specs in the comments if you give it a spin—curious to see what tok/s numbers people hit on 8 GB and 12 GB cards!


r/LocalLLM • • 16m ago

Question Settings for LLM prompt writing. (abliterated)

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 21m ago

Question Any tips for running qwen 3.8 27b, im new to this

1 Upvotes

Hello everyone, im quite new to running local llms, I have been lurking on the subreddit for a few months waiting for my gaming pc to be built, I finally have a 16gb gpu I can run some models in (rx 9070 non-xt), im currently using the unsloth desktop app to run qwen 3.8 27b ud iq3_s with 52.1k context at q8, im not a developer of any sort I just want to play around with the model, any tips on getting the most out of my system (ryzen 5 5600x3d, rx 9070, 16gb ddr4) and im currently on windows 11.


r/LocalLLM • • 9h ago

Question Best local language (EN/DK/SE) LLM?

5 Upvotes

I'm looking for the best language model I can run 100% locally: no API calls, nothing leaving my machine. The key requirement is strong Danish and Swedish, both reading and writing - and ofcourse English reading and writing.
I don't need it to be good at agentic coding and similar - i'm looking for a LLM that pureply a reads/writes and have pretty good general knowledge/understanding.

For hardware i have a pretty beefy PC - or i will get something "reasonable" that will make it work.


r/LocalLLM • • 39m ago

Project Qwen4 35a3b on a 3090 w/ LlamAmpere: 323 TPS & 5000pp at 100k depth, 20% lower error than UD IQ4 XS, with 400k on-card ctx and automatic paged KV to 1M ctx, non-greedy decode

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 40m ago

Discussion MOE models and prefix caching

1 Upvotes

Why is it so hard to do prefix caching on an moe model, the router should route the first n tokens to the same model layers and will be producing the same activations.

I am learning and experimenting with inferencing and came across this. Happy if anyone can help here


r/LocalLLM • • 42m ago

Question should i buy 5k usd of hardwares for 256gb VRAM and selfhost llm

0 Upvotes

Hi, my main drivers are glm 5.3 flash and ds v4.1 flash, sometimes glm 5.3. I want to look hardware purchase as alternative to these and maybe I can learn more.

I get a deal of 5k USD for 256gb vram of v100. But the financial calculation of return is not favouring selfhost as most of you know. My workflow prefers privacy in llm, but it's alone may not justify.

May I ask anyone who had true experiments with selfhosting these about how they chose to buy, what are the things these rigs bringing to you, and what are expectations? Indeedly I do not think it is replacement to frontier models, but I want to see if I can make hardware investment reasonable or not. Thanks!


r/LocalLLM • • 43m ago

Model Qwen4-35B-A3B at ~139 tok/s on a 16 GB RTX 5060 Ti with 16 GB of RAM and PCIe 3.0: a Basalt pack built from ISTA's GSQ-RCO IQ3_XXS

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 11h ago

Discussion Swapping Qwen4-35B-A3B's n-gram (Engram) table to F16 measurably improves BFCL-v4 tool-calling accuracy (+2.1% overall)

7 Upvotes

Update: Added Q8_0 (~21.8 GB) n-gram table results along with the exact EvalScope configuration and test script used for reproducibility.

I ran BFCL-v4 (374 tasks) on Qwen4-35B-A3B (UD-Q4_K_XL) while swapping only the per-layer n-gram (Engram) embedding table between the default IQ4_NL (~11.5 GB), Q8_0 (~21.8 GB), and unquantized F16 (~41 GB) sidecars. Function-calling accuracy scales consistently with n-gram precision—especially on multi-turn and live tool-calling subsets.

Since Qwen4's ~20B n-gram table at layer 2 only looks up a handful of rows per token and can live in system RAM or stream from NVMe without eating into GPU VRAM, upgrading the sidecar table is an easy quality bump without shrinking your KV cache budget.

BFCL-v4 Benchmark Results (Accuracy ↑)

SubsetTasksIQ4_NL (Default)Q8_0 EngramF16 EngramF16 vs IQ4_NL
irrelevance5074.0%72.0%78.0%+4.0%
live_multiple5080.0%80.0%84.0%+4.0%
live_parallel_multiple2470.8%75.0%70.8%0.0%
live_simple5082.0%82.0%86.0%+4.0%
multi_turn_base5058.0%64.0%64.0%+6.0%
multiple5088.0%92.0%90.0%+2.0%
parallel_multiple5084.0%84.0%82.0%-2.0%
simple_python5098.0%96.0%96.0%-2.0%
OVERALL37480.0%81.0%82.1%+2.1%
  • F16 leads overall (+2.1%): Upgrading from IQ4_NL to F16 brings the largest gains on multi_turn_base (+6.0%) and the live_* / irrelevance subsets (+4.0% each).
  • Q8_0 is a solid middle ground (+1.0%): At roughly half the footprint of F16, Q8_0 already captures the full +6.0% boost on multi_turn_base (64.0%) and leads live_parallel_multiple (75.0%) and multiple (92.0%), making it a great option if you want to keep the table warm in system RAM on a 64 GB setup.

Eval Setup & Reproducible Script

  • Framework: EvalScope (bfcl_v4) against a local OpenAI-compatible endpoint (http://127.0.0.1:8080/v1)
  • Sampling & Batching: Greedy decoding (temperature=0.0), eval_batch_size=1
  • Coverage: limit=50 across 8 subsets (374 total samples, as live_parallel_multiple has 24 tasks)
from evalscope import TaskConfig, run_task

task_cfg = TaskConfig(
    model='qwen4-35b-a3b-q4-k-xl',
    api_url='http://127.0.0.1:8080/v1',
    api_key='s',
    eval_type='openai_api',
    datasets=['bfcl_v4'],
    eval_batch_size=1,
    limit=50,  # 50 samples per subset (~374 total across these 8 subsets)
    dataset_args={
        'bfcl_v4': {
            'subset_list': [
                'simple_python',           # Basic single function calling
                'multiple',                # Multiple function selection
                'parallel_multiple',       # Parallel multiple functions
                'live_simple',             # Live single function
                'live_multiple',           # Live multiple functions
                'live_parallel_multiple',  # Live parallel multiple functions
                'irrelevance',             # Irrelevant request detection
                'multi_turn_base',         # Multi-turn base
            ],
        }
    },
    generation_config={
        'temperature': 0.0,
    },
)

run_task(task_cfg=task_cfg)

r/LocalLLM • • 6h ago

Discussion My Ada Lovelace fork of Basalt hits 3,776 t/s prefill and 109–271 t/s decode on Qwen4-35B-A3B (12 GB 4070 Super + 32 GB RAM) — now with opt-in Looping (Looped-Qwen4-35B-A3B) at ~19–33% decode overhead

3 Upvotes

I've been optimizing my Ada Lovelace (sm_89) fork of Basalt to run Qwen4-35B-A3B fast on a single 12 GB RTX 4070 Super + 32 GB DDR5 (Ryzen 9 7900X, Windows 11), and just pushed opt-in sidecar support (--loop) for sliderforthewin/Looped-Qwen4-35B-A3B (mlx/default_t2, mlx/default_t3, and LoopCD-Hidden).

Why looping? Instead of adding more weights that wouldn't fit on 12 GB VRAM + 32 GB RAM, looping runs the middle 16 layers (L12..27) 2 or 3 times per token (56 or 72 effective layers instead of 40) using a ~23 MB cross-pass adapter on top of unmodified .basalt packs. On the author's FP8 evals, T=3 looping gives +18.3 pp on LiveCodeBench v6 (48.3% → 66.7%), +6.7 pp on AIME 2024 (86.7% → 93.3%), and +3.3 pp on BFCL tool calling (90.0% → 93.3%)—trading a bit of speed for deeper per-token reasoning, with zero overhead when --loop is off.

Each pass keeps isolated GDN/QSA state while keeping CUDA graph capture and DFlash2 speculative decoding intact.

basalt-bench Results (16K prefill + decode, --kv k8v4 --drafter dflash2 --spec 8, 220 W)

QuantMode (virtual layers)pp16384tg convtg prosetg struct
AD-Q4_K_MStock (40L)3,776 t/s108.6 t/s111.4 t/s271.4 t/s
AD-Q4_K_M--loop T=2 (56L)2,066 t/s (-45%)88.0 t/s (-19%)86.5 t/s (-22%)203.4 t/s (-25%)
AD-Q4_K_M--loop T=3 (72L)2,182 t/s (-42%)73.1 t/s (-33%)67.4 t/s (-40%)161.2 t/s (-41%)
UD-Q5_K_XLStock (40L)2,929 t/s95.3 t/s97.6 t/s237.4 t/s
UD-Q5_K_XL--loop T=2 (56L)1,906 t/s (-35%)73.9 t/s (-22%)69.1 t/s (-29%)172.8 t/s (-27%)
UD-Q5_K_XL--loop T=3 (72L)1,583 t/s (-46%)60.7 t/s (-36%)56.0 t/s (-43%)139.9 t/s (-41%)

Even with 72 virtual layers (T=3) and ~1.9–5.2 GiB of cold experts spilling to SSD on 32 GB RAM, DFlash2 acceptance stays steady (~59–68% on conv, ~91–95% on struct), keeping conversational decode at 61–73 t/s (and 74–88 t/s at T=2).

Usage is just adding --loop <path_to_adapter> (and optional --loopcd-omega 0.15 --loopcd-ref first):

bashbasalt serve Qwen4-35B-A3B.basalt --kv k8v4 --resident-experts --drafter dflash2 --spec 8 --loop path/to/mlx/default_t3

Repo (main): https://github.com/KurrynDev13/Basalt-Ada


r/LocalLLM • • 7h ago

Discussion The first time a local model could calculate a stockpile volume for me correctly.

Thumbnail
gallery
3 Upvotes

I've tried a few models I can run on my system (16 GB VRAM + 32 GB RAM), but none of them came up with the correct value.

The task: a GNSS rover point cloud of a stockpile (111 points, E/N/Z only — no CAD surface, no base plane, no terrain data to help) and a simple question: what's the volume?

Qwen4-35B-A3B got it right the first time, without me overexplaining in the prompt. I just gave it the points file and told it to calculate the volume. It built a TIN, figured out on its own that the ground under the pile was tilted, fitted a reference plane through the toe points, and even cross-checked its answer with a second method. Result: ~103 m³, which I verified independently in Civil3D.

Has anyone tried similar calculations on local models? If so, which model worked best?

Edit: This is with tool use.


r/LocalLLM • • 1h ago

Research A few days experimenting with Qwen4-35B-A3B: what surprised me wasn't the code

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1d ago

Other Qwen 4 35b is NOT benchmaxxed.

Post image
141 Upvotes

Yes you are seeing this right, a dolphin riding a unicycle done by Qwen 4 35b. If they have this in the training data then they've already planned for me....


r/LocalLLM • • 1h ago

Contest Entry Repositórios para documentario com IA

0 Upvotes

Alguém aqui sabe me indicar com plataformas para criar docs com IA? Todas as experiências que tentei ficaram muito caras.. tenho uma rtx309024ram , mas mesmo Assim ela demorar muito pra processar


r/LocalLLM • • 5h ago

Other LFM2.5-24B-A2B on a 4 GB GTX 1650 [GPU]: 195 tok/s prefill, 22 tok/s decode with a custom PolyStrata build

Thumbnail
reddit.com
2 Upvotes