r/LocalLLaMA • • 16m ago

Discussion Using cloud LLM providers is equivalent to RCE on your system

1 Upvotes

I know this probably isn't news to people in this sub, but the recent Minimax fiasco on openrouter [0] should be a wake-up call to anyone using cloud models.

The entity controlling the API has access to all tools of your harness. If this entity wants to do so, it can simply inject any tool call it wishes, installing crypto miners, exfiltrating data, scanning your local network, etc.

If you ask online, everyone is using their harness in containers or VMs, but if were honest, we all know people raw-dogging coding agents on their systems.

[0]: https://news.ycombinator.com/item?id=50585962


r/LocalLLaMA • • 1h ago

Showcase Lum - Web UI for deploying hrx-loom models

Post image
2 Upvotes

So, for anyone else that have an AMD iGPU like the Strix Halo for local AI, I am not sure if you saw or tested hrx-loom yet: https://loom-fun.dev/

It's great, the performance I am getting with it is amazing on my Strix Halo.

So, I decided to put a quick web-ui (nothing fancy or incredible) that can deploy loom models on-demand, like how Lemonade Server does.

On Lemonade ROCm-LlamaCpp I get an average of 85 t/s for Qwen3.6-35B-A3B, same model (loom version) on hrx-loom over my UI gives me about 112 t/s

Again, this is something I put together yesterday for a local experiment, feel free to criticize, collaborate or use it.

https://github.com/dougmaitelli/lum (Better names welcomed)


r/LocalLLaMA • • 2h ago

Question | Help SSD stall/controller restart when using ssd offloading in strata

4 Upvotes

I am running qwen3.8-flash-next-gyro-m in strata with ssd offloading for the n-gram table, but I have an issue where occasionally my ssd will stall causing ssd controler to restart, which takes about 30 seconds. This also cause the entire pc to freeze for that duration because the OS is running on the same ssd. Has anyone else had this issue or know a potential fix?

I have 2 SSDs, both less than 2 years old, the one i use for OS and strata is CORSAIR MP600 PRO 1TB.

My main concern is faulty SSD, but so far all diagnostics and self test show no problems and I have never had any issues previously. I could try using my other m.2 but it isn't really a fair test because the other one doesn't run the OS, so if it does work then i still don't know if this is strata/setup issue or faulty ssd.

There was one issue I found on strata github with a similar problem where the author mentioned the cause was controller/firmware issue, but they didn't mention specifically what the problem was or if they fixed it. Last thing i did was updating the ssd firmware which was 1 version behind but have not had the chance to test it yet.

Does anyone else have experience with this issue? Assuming the firmware update doesn't work, are there any other things I can try without switching ssd? Thanks in advance!


r/LocalLLaMA • • 3h ago

Showcase Adding a 16GB RTX 5060 Ti to my RTX PRO 5000 in Basalt gave me 11–32% faster chat

6 Upvotes

I tested my RTX PRO 5000 Blackwell with and without a 16GB RTX 5060 Ti as a Basalt expert peer. Chat generation gained 31.9% on Hy4 Flash, 19.6% on DeepSeek V4.1 Flash IQ2, and 11.0% on Qwen3.8 Flash-Next.

Setup

  • RTX PRO 5000 Blackwell 48GB at a 300W limit, PCIe 4.0 ×16
  • RTX 5060 Ti 16GB at a 180W limit, PCIe 4.0 ×8
  • Threadripper PRO 5955WX, 256GB eight-channel DDR4-3200, Samsung 9100 PRO SSD
  • Ubuntu, NVIDIA driver 580.178.04, Basalt 0.5.7
  • CUDA reported direct GPU-to-GPU access unavailable in both directions

Single stream, stock Basalt fixtures, three trials per configuration, a 98,304-token context cap, and default speculative decoding. Each pair used the same model pack and settings apart from GPU selection. The table highlights gains of at least 10% in median throughput where every dual-GPU trial beat every single-GPU trial. Rates are median tokens/s.

ModelWorkloadPRO 5000 only+ 5060 TiGain
DeepSeek V4.1 Flash 1017 UD-IQ2_XXSChat68.982.4+19.6%
DeepSeekProse65.378.1+19.6%
DeepSeekStructured output144.7186.3+28.8%
DeepSeek16K prefill1,538.51,728.7+12.4%
Qwen3.8 Flash-Next NVFP4-DQ6_KChat247.1274.3+11.0%
Qwen Flash-Next64K prefill2,674.03,110.6+16.3%
Tencent Hy4 Flash NVFP4Chat88.3116.5+31.9%
Hy4 FlashProse83.199.8+20.1%
Hy4 FlashStructured output164.5202.8+23.3%
Hy4 Flash64K prefill, 4,096-row chunks1,239.01,465.1+18.2%

What changed

  • DeepSeek: The 5060 Ti handled 20.5% of expert lookups. The CPU’s share fell from 8.5% to 4.0%, with zero expert spill to SSD in both runs. The structured fixture accepted roughly 99.9% of draft tokens, so the 186 tok/s figure is specific to that workload. Model pack
  • Qwen: The peer held 14.4 GiB of experts. Basalt logged about half as many expert exchanges between RAM and VRAM. At 64K, median time to first token fell from 24.94 s to 21.46 s. Model pack
  • Hy4: The peer handled 24.2% of expert lookups, and CPU share fell from 7.0% to 2.8%. The default single-GPU 64K fixture hit a CUDA memory-access fault twice. With --diag-rows 4096 on both configurations, all six 64K trials passed and median time to first token fell from 45.65 s to 38.60 s. The generation runs used default chunking. Model pack

Reproduce it

COMMON=(--model "$PACK" --kv fp8 --max-context 98304 \
  --vram-reserve-mib 4096 --seed 4242 -r 3 \
  -t conv,struct,prose -p 16k,64k -o json)

bin/basalt-bench "${COMMON[@]}" --gpu 0 --logs single
bin/basalt-bench "${COMMON[@]}" --gpu 0,1 --gpu-mode peer --logs peer

Set PACK to the matching model file and use separate log directories for each run. Use --kv int8 for Qwen. For Hy4’s matched generation and 16K tests, use -p 16k. For its separate 64K test, replace -t conv,struct,prose -p 16k,64k with --diag-rows 4096 -p 64k.

If you’ve tested a 16GB peer alongside a 48GB Blackwell card, I’d be interested in which models gained the most on your setup.


r/LocalLLaMA • • 4h ago

Showcase Libra-TTS: Text to speech with 16 languages, 0.3B, Apache 2.0

Post image
48 Upvotes

I made Libra TTS as part of my capstone project for my Master's degree in which I investigated compressing large models for on-device inference. Libra TTS is compressed (via SVD) from a model based on Qwen TTS-1.7B down to 0.3B but post trained for 16 languages, better prosody and accuracy and 8 default voices. (no voice cloning yet, I tried to grok it but I'm in a hurry to graduate). This size was picked to have a balance between quality and size for edge inference. It should work on most modern devices (especially Apple Silicon, which is what I've mostly tested with), much faster than realtime)

Languages supported:English, Chinese, Japanese, Korean, German, French, Spanish, Italian, Portuguese, Russian, Arabic, Hindi, Punjabi, Bengali, Urdu and Indonesian

I hope you all enjoy it. Licensed Apache 2.0.

DEMO on huggingface spaces:
https://huggingface.co/spaces/Ekam/Libra-TTS

https://huggingface.co/Ekam/Libra-TTS

https://github.com/ekambrar100/Libra-TTS


r/LocalLLaMA • • 5h ago

Resources Inkling 2 Mini GGUFs, various sizes for Mac GPU (vision included)

Post image
10 Upvotes

Hey all,

I guess you've tried the TML model Inkling 2 mini which is really good. We made GGUFs of it at various sizes / quant formats and are sharing them here:
https://huggingface.co/QUASAR-QAT/Inkling-2-Mini-GGUF

12 sizes in total, 7.8 GB to 27.8 GB (plus the vision projector).

Everything runs on the GPU even on a Mac

Part of the official model is stored in NVFP4 and llama.cpp can't run NVFP4 on a Mac GPU yet. So these fallback to CPU. Ours only use GGUF so everything stays on the GPU.

Performance / quality

  • At the same size and speed they have 8–56% lower KL divergence than bartowski's files (lower is better)
  • notably, the 7.8 GB file scores 96.9 on GSM8K, the same as Q8_0.
  • IQ4_XS (15.7 GB) matches Q8_0 within error bars on GSM8K, MMLU-Pro, IFEval, HumanEval+, MBPP+ and GPQA-Diamond.

By memory

  • 16 GB Mac or 12 GB GPU: Q2_K (9.1 GB)
  • 24 GB Mac or 16 GB GPU: Q3_K_M (13.6 GB)
  • 32 GB Mac or 20 GB GPU: Q4_K_M (16.6 GB)
  • 48 GB Mac or 32 GB GPU: Q8_0 (27.8 GB)

To run it

llama-server -hf QUASAR-QAT/Inkling-2-Mini-GGUF --jinja

That gets you Q4_K_M and to pick a different size add it to the end like :Q2_K.

LM Studio works too as long as its llama.cpp runtime is b12600 or plus.

Full tables are on the model card on HF. Hope you like it


r/LocalLLaMA • • 6h ago

Discussion Using my old 16gb mac mini + Tiiny pocket as a dedicated LLM backend

Post image
16 Upvotes

been using my m4 16gb mac mini for local llm for a while but I was pretty much limited to smaller models. Earlier this year I backed tiiny on kickstarter. The earlybird price was pretty appealing and I was already looking for something that could run larger models, so I decided to back it.

My tiiny arrived about a week ago, now I still keep mac mini as my always on machine for running Hermes and automation, while Tiiny handles LLM inference through its openai api. The two work together pretty good.

For anyone unfamiliar with tiiny, it got 32gb of soc memory and 48gb of dnpu memory. It's not unified memory like Apple but it has been more than enough for 9B and 35B models I've been using. I get roughly 60 tok/s on the Qwen 9B (INT4) and 35 tok/s on the 35B (INT4). For everyday agent tasks, that's pretty responsive to me.

I use this setup for morning briefings sent to telegram before I wake up (news sources, Github repos, or whatever I want it to watch), email triage, file organization, and scheduled automations. Having mac mini does the agent workflow while Tiiny does the inference makes the whole thing more seamless

Another appeal for me is the running cost. There's no token bill for local inference, and neither machine uses much power for this kind of workload. Tiiny draws around 10W at idle and up to 40W under full load. Assuming 25W on average for Tiiny and another 17W for mac doing agent tasks, that's roughly 42W combined. Running both 24/7 would use around 368 kwh per year, about 55bucks annually at $0.15/kwh.

There are still some trade offs. Tiiny's model selection is more restricted than a typical Ollama setup, and I wouldn't suggest it for complex coding tasks that require extremely long context windows. For my own usage, though, this is the best balance of performance and cost I've found so far. Instead of replacing my mac mini with something more expensive, I can keep using it for what it does well and let tiiny handle the inference.

If you're thinking about replacing an older machine just to run larger local models or trying to get more tops out of hardware you already own, I think this setup is worth considering. at least for my needs it's the best balance of performance and cost I've found so far. Also I'd love to hear if anyone else runs a similar setup? What does your setup look like and have you found any useful/interesting workflows?


r/LocalLLaMA • • 8h ago

Showcase I've Established a Thanksgiving-themed AI radio station using MiniMax Music 3, two DGX Sparks, a 5090, a 4070 Ti, and a Mac Studio

Thumbnail
gallery
10 Upvotes

I bought the domain pilgrim.farm last August late in the evening after a few, and it was the same week that MiniMax Music 3 came out. Being able to generate full production songs is wild, but since it does so slower than real-time, there had to be filler; making a radio station the obvious format. Given the domain, the site has to be Thanksgiving-themed, and I really enjoyed some belly laughs from my little trial balloon with you folks early last month; fielding about 370 requests in a night.

Going off of that, I spent $50 to start a LLC to cover the cloud junk while I rent out my local inference to Pilgrim Dot Farm for free; making it available globally. A sliver of what has changed is that the site now affords access to the full suite of the prompting that goes into a song with album art. What I've set up is there for anyone interested, and amidst the divisive topics that can come up during Thanksgiving dinner (compounded by the absurdity of current events), I welcome distraction and thereby y'all. If you would like to help me test the station's moderation, homonyms are tricky.

As far as local LLMs' specs, the RTX 5090 runs Qwen3.8 27B on Ninfer with the nvfp4 weights and 128k context for a few concurrency slots to ensure we have lyric writing and generation of the longer radio segments, and the RTX 4070 TI (12 GB) runs Ornith 1.5 9B Q5 via llama.cpp with 128k context, Q8 KV, and all layers on the GPU.

To expound on the station's architecture, the Mac Studio is the brains running the back-end, with other hosts' models wrangled via LiteLLM. I'm amazed that the Mac can barely fit song and album art generation! What affords the second and third song generation slots is temporarily grossly underutilizing the DGX Sparks. They take 1.6x the time, so the Mac gets scheduling priority. From there, Tailscale keeps naughty folks/agents off my local network, and the stuff in the cloud is to facilitate horizontal scaling of listeners.

Seriously, the song generation model is pretty dang good, and as far as relevance, it does have Qwen 3.5 9B under the hood. I also get a hunch that they trained on Taylor Swift a bit. You are welcome to it, and if it's something you celebrate, I hope you have a tranquil Thanksgiving.


r/LocalLLaMA • • 8h ago

News Latency doesn't lie: Jev is (probably) Qwen3.5-35B-A3B!

Thumbnail
modaic.dev
422 Upvotes

r/LocalLLaMA • • 10h ago

Discussion The state of small MoEs is horrible

0 Upvotes

This post is a bit of an educated vent.

“The introduction of quotas for the DeepSeek free web chat and its consequences have been a disaster for people who can’t run LLMs locally on their own PCs.”

— Ted Quotzynski, a.k.a. the Quotabomber

Earlier this year I wrote a post about the best models for a 4 GB VRAM GPU. I was motivated to find a good small model because at the time DS had hiked its prices up, putting me in an awkward position as I was reliant on its cheap price for my work. The price hike (and now the introduction of a quota on DS's web chat) made me realize that I cannot completely depend on cloud providers, and I started to look for local alternatives that I could run on my 4 GB VRAM laptop. I even added additional 16 GB of RAM so I could run bigger MoE models.

The best model remains a dense four billion parameter model.

So far, I have tried Sage-A1.5, Ornith 35B-A3B, LFM 24B-A2B, and Groot 19B-A3B. NeoHorse-1 4B beats them all for my tasks - light coding, math, and physics. It beats them in knowledge (with the exception of Sage). It beats them in instruction-following. It's insane.

Now, I understand that dense models tend to be better than MoEs, but for a 4B model to beat an MoE two classes above it?

Inkling 2 mini gave me a bit of hope, but that was swiftly crushed when I saw the generation speed, even on hardware far more powerful than mine.

Why do labs neglect MoE models below 40B parameters?


r/LocalLLaMA • • 11h ago

Discussion What are we getting for Black Friday or Xmas?

0 Upvotes

Other than a backup kidney because we had to sell both to buy the n-th spark or for the nvda/ant margin calls?

On a serious note I am eyeing a Mac m5. Seems pretty strong for its high bandwidth unified mem.


r/LocalLLaMA • • 12h ago

Question | Help Deepseek V4.1 Flash 1017 EXL3 2.9bpw vs Qwen 3.8 Flash Next Q8

27 Upvotes

After using both Qwen 3.8 Flash Next Q8 and DS v4.1 flash 1017 EXL3 2.9 bpw (plus ten), I feel like overall quality of QFN is much much better.
To the point that I am seriously questioning the quants out there, even though the KLD of 2.9 bpw is impressive on paper.
I run QFN at 60-70t/s while DSv4.1F1017 at 35t/s, yet I feel like even at half the speed QFN would still be preferable for most tasks.

I am about to share also a small attempt I made to compare the two in 3D building and the output quality as well as the token efficiency, speed and intelligence in execution overall of QFN is just better in every way I could observe.

Am I doing something wrong here?
Any benchmarks worth running locally to check actual quants performances and compare models?


r/LocalLLaMA • • 12h ago

Discussion SURPRISING RESULTS!! - 5 local models on an RTX 5070 12 GB + 64 GB RAM: speed and a 54-task benchmark (Qwen3.8-Flash-Next, Bonsai 2.5 27B, Qwen3.8-27B, Inkling 2 Mini, SenseNova-Loop-9B)

0 Upvotes

I wanted to know what actually runs well on a 12 GB card, so I had Claude set up five models on my PC and run the same test on each: speed measurements plus 54 tasks (12 multi-step agent tasks with tools, 18 Python coding tasks graded by hidden tests, 24 hard problems with one exact answer).

RTX 5070 12 GB, Core Ultra 7 265F, 64 GB DDR5, Windows 11. All runs at 32K context, one request at a time, default thinking level for each model.

EDIT- have changed the formatting..hope its better now

## What stood out

🥇 Bonsai 2.5 27B: best fit for 12 GB

* 133 tok/s with one-token MTP drafting (89% of drafts accepted)

* 9.4 GB VRAM at 32K context

* 48/54 overall, just 2 behind Flash-Next

* Passed every agent task; weak spot was coding (13/18)

*TOTAL SCORE WAS 48/54 JUST 2 BEHIND THE FLASH NEXT....

Qwen3.8-Flash-Next: highest score

* 50/54 at 79 tok/s

* Leaves only about 3 GB of the 64 GB RAM free while loaded

**Qwen3.8-27B IQ3_XXS: best at coding**

* Fits at 32K with 8-bit KV cache, but only just (11.7 of 12.2 GB)

* 16/18 on coding, weaker on agent tasks

* The 16 GB UD-Q4_K_XL file split into RAM ran at 6.8 tok/s (speed test only). Not worth it on this card.

Inkling 2 Mini: use medium thinking

* At default high thinking, 6 of 42 coding/hard-problem replies got stuck in a loop

* At medium that dropped to 3 and the score rose from 41 to 44

* Slow on long prompts: 20 s to read 12,000 words

SenseNova-Loop-9B: slow

* Fits at 32K (10.2 GB) but only 18.5 tok/s

* Failed 11 of 18 coding tasks

* No official Windows build; I had to compile SenseNova's fork

## Caveats

* One run per task.** A 1-2 task gap (48 vs 50) is noise.

* Mixed engines.** Two models ran on Strata, three on llama.cpp builds, so speed gaps include the engine.

* Thinking limits.** Strata reserves room for the answer itself; for llama.cpp I set a budget to match (7,500 tokens for coding/hard problems, 3,072 for agent steps).

* Different compression.** Inkling was lossless; the Qwen and Bonsai files are heavily compressed.


r/LocalLLaMA • • 12h ago

Question | Help Ui for the wife - Easy and simple, synced with phone (IOS), photo, voice and stuff

7 Upvotes

I am looking for a easy to use client (installed if possible) for a Mac, iPad and iPhone which is ChatGPT-Alike and not tooo complex. German language would be awesome but not necessary.

I tried Chatbox, BoltAi, Mac, Geeps, Cumbersome and others.

Is there a secret tip on your side? I would like to have a high WAF so no technical details - just using. Reasoning and temperature would be concepts I can explain to her, but anything above this ...

Supported functions I also like is Markdown, PDFs, Latex / Web rendering, Image generation (self hosted model).

Any ideas?


r/LocalLLaMA • • 12h ago

Resources Fine-tune Gemma 4 models

Thumbnail
gemma.ai
237 Upvotes

announced by googlegemma today:

"Want to fine-tune Gemma 4 on your own data, audio, receipts, or reasoning tasks? Our new fine-tuning hub is live on [censored for reddit]: 17 guides and 40+ illustrations covering the entire training pipeline. Ranging from continued pre-training and custom chat templates, all the way to (Q)LoRA and GRPO."

https://x.com/googlegemma/status/2125631619692429690

As you can see, different training techniques require different amounts of VRAM. The table below shows peak GPU memory (VRAM) across all five Gemma 4 models at a sequence length of 2,048 tokens:

ModelParametersQLoRAFull fine-tuning
Gemma 4 E2B2B effective~7 GB~32 GB
Gemma 4 E4B4B effective~9 GB~42 GB
Gemma 4 12B12B~11 GB~80 GB
Gemma 4 26B A4B26B (4B active)~21 GB~160 GB
Gemma 4 31B31B~22 GB~200 GB

r/LocalLLaMA • • 12h ago

Showcase we ran inkling 2 mini (26b) on an iphone 16 pro with optimized expert offloading

116 Upvotes

hello llamas! atomic chat team here again

a couple days ago we got inkling 2 mini running on macs capped at 8gb of memory, so the next question was how low it can go. we put it on an iphone 16 pro (8gb ram) and recorded it. the typing, the search wait and the answer are sped up in the video and labelled on screen

first we made a 1-bit quant of it (AD-IQ1_S, 6.88gb, 79.5% top-1 and kld 0.278 vs bf16). we didn't want it to eat all of the phone's memory, so we set a 4gb budget for weights, kv cache and buffers (the app itself uses more on top of that). we load the moe experts from the phone's storage when the model needs them. that part is normal expert offloading

inkling runs its middle layers 3 times per token, so those experts get used three times as often as the rest. we keep them in memory and only stream the others from storage. we also start loading the next experts while the gpu is still busy with the current ones and that alone gave us about +40% decode speed

metric"what model are you?""find the last news about inkling 2 mini" (web search on)
decode3.0 tok/s2.9 tok/s
time to first token3.1 s39.3 s
tokens out15105

~3 tok/s is slow, but it runs. the 39 s on the second question includes the web search and reading the results back in

gguf: https://huggingface.co/AtomicChat/Inkling-2-Mini-GGUF

app we ran it in: https://atomic.chat


r/LocalLLaMA • • 13h ago

Discussion Quant Providers

0 Upvotes

Has anyone else noticed that the community has been relying more and more on a wide variety of quant providers over the past quarter or so?

In this community, it used to be all about Unsloth. And while their quants are undoubtedly at the top of the quality index, it’s becoming more common to reach outside of their quants for local inference.

This is likely partially a result of them no longer providing quants for a large portion of new model releases, or quants on patches that never make it into llama.cpp master. For example:

- Hy4 Flash (this one puzzles me)
- Ernie 5.5
- Ling 3.2 Air
- MiMo 2.6 pro/flash
- GLM 5.3 Flash (uses different branch than master)
- I think others that I’m not currently recalling

This isn’t a criticism of Unsloth. More an observation, and also wondering if they have shifted priorities to their excellent Unsloth Desktop product? Or perhaps they focus efforts on the labs that pay them for zero day access? Or a combination of the above?

At any rate, we’re very lucky to have them contributing to this awesome community, and maybe it’s a sign of the health of the opensource community that we have so many new players entering the space.


r/LocalLLaMA • • 13h ago

Discussion With how the price of the components goes up, I think open source should focus on cpu and ssd

0 Upvotes

I think the next logical step is to focus on "cheap" ways to run LLMs. Either pursue the engrams more or take a whole turn and move away from gpu towards other ways to run them. Since the industry is becoming more and more hostile to open source, I do believe it's imperative to find quickly another way. I do not have a solution to the problem but I do believe we should discuss it more to make the issue more visible. I do understand as single individuals it is nearly impossible to find solutions. But given the current trajectory, a radical change it is required and it is time to slowly move away from gpus or find novel ways to exploit as much as possible from as little as possible. As others said, the current architecture is very wasteful, so much so not even frontier models are making money and only larp that they are making a profit.

I do realise that my thread reads likely like a nothingburger and beating around the bush and while now, I have nothing to show of, I want to do something about it so a thread it is, for now.


r/LocalLLaMA • • 13h ago

Discussion Why Lama so slow?

0 Upvotes

To this point I'm not sure if I miss something, but all the test I'm doing show a crasy difference in speed between lama and strata or basalt.

And I don't see any loss in quality!!!

So either I missed something regarding lama and not use it correctly, or the lama team should implement all the accelerations that are around in all the dedicated inference engines and their forks. Because we are not talking about 20% speedup but x4 or more!

Here are examples:

https://airbench.ai/compare/e71bdb6a-57f6-4990-b236-9a5d02ddc5b5/02e0b26d-493e-40b0-9070-899b93847379

https://airbench.ai/compare/419a9743-3824-4103-a451-af70250cfd14/1c485164-8d64-4e65-84c3-0f95c21b5f3f

https://airbench.ai/compare/78d7f5f3-1999-4fc5-89f3-d976597589ba/70c7e8f9-a62f-401c-b7ca-c961ee3b742b


r/LocalLLaMA • • 13h ago

Showcase Massive prefill jump for 7900xtx on strata

5 Upvotes

I hadn't updated strata for a while until now and I was surprised with the prefill numbers.

Strata v0.2.10 / engine 0.1.56 (2 Nov) — 1,330 tok/s prefill Strata v0.2.21 / engine 0.1.68 (24 Nov) — 2,715 tok/s prefill

Setup

  • Model: Qwen3.8-Flash-Next 125B MoE — Unsloth Dynamic v3.1 UD-IQ3_XXS (experts in system RAM)
  • GPU: RX 7900 XTX 24 GB (gfx1100)
  • Host: Xeon E5-2667 v4, 64 GB DDR4-2400 ECC RDIMM, 4×16 GB, 4-channel (~77 GB/s), PCIe 3.0
  • HIP/TheRock 7.16 · 262k ctx · KV: int8
  • Sampling: temp 1.0, top_p 0.95, top_k 20, min_p 0

Prefill (cold)

  • 14.5k tok → 2,371 tok/s
  • 41.7k tok → 2,877 tok/s
  • 80.4k tok → 2,715 tok/s
  • 84.0k tok → 2,675 tok/s

Decode (MTP drafting)

  • 662 tok out → 60.3 tok/s (84% accept)
  • 946 tok out → 59.6 tok/s (66%)
  • 1,320 tok out → 59.2 tok/s (76%)

Expert-cache hit 85–89%. Same box on engine 0.1.56: 1,330 tok/s prefill → ~2× from the new RDNA3 kernels.


r/LocalLLaMA • • 14h ago

Question | Help Confusion about Inkling 2 Mini performance

4 Upvotes

I am using Inkling-2-Mini-UD-Q3_K_XL and dspark-Inkling-2-Mini-Q8_0 on llama.cpp master (not unsloth's fork).

I git pulled a few hours ago so a lot of optimizations are already in. First i tried it with -DGGML_VULKAN=ON because after a lot of testing with spark a while ago, Vulkan always had better perf than ROCm for some reason on gfx1200.

I havent run llama-bench but the speed was like 10 tps on the first prompts, all weights being on VRAM.

build-ink/bin/llama-cli -m Inkling-2-Mini-UD-Q3_K_XL.gguf -md dspark-Inkling-2-Mini-Q8_0.gguf --spec-type draft-dspark --spec-draft-n-max 3 --temp 1 --top-p 1 --top-k 0 --min-p 0 -c 32000 -ctk q4_0 -ctv q4_0 -dev Vulkan1 -fit on -fitt 32

was the command used, this is with a DSpark improvemt PR i spotted here on llama.cpp repo.

Next I tried building the same branch but with -DGGML_HIP=ON and the speed was 27.2 tps on first few prompts, so more like triple the speed. This is literally the first instance of vulkan being slow what I have encountered, so my questions are-

  1. Is Vulkan support for this model still not ready?
  2. Inkling uses a LOT more memory for KV Cache, so it's literally not practical at all to run this and not Q3.8 27B? Or I am missing something here.
  3. Another thing I have been noticing when comparing these backends side by side, ROCm tends to use more memory for context I assume, is there any solution to tackle this? it just seems to be more heavy and not optimized.
  4. Also does Inkling require KV Cache per loop or are they doing the smarter thing and either use the last loop like NVIDIA or having a global shared and local sliding window like GLM announced with 5.4?

And any other recommendation is appreciated.


r/LocalLLaMA • • 14h ago

Resources Local Inference Lab Update: Almost 60,000 tok/s cold prefill (+82%) on DeepSeek-V4.1-Flash over PCIe (4× RTX PRO 6000 Blackwell) + upstream Flare scheduler upgrades

47 Upvotes

Follow-up to our earlier post on breaking 1,000+ tok/s on 4× RTX PRO 6000 Blackwell (SM12 0, PCIe — no NVLink) running DeepSeek-V4.1-Flash via NVIDIA Flare.

Last time, decode was already flying, while cold prefill sat around 31k–33k tok/s. Over the last few days we tore apart the SM120 prefill path and the speculative scheduler — and we just published a new signed gb202 release on Hugging Face that pushes cold prefill to 59,051 tok/s (peak 59,077 tok/s) on four PCIe workstation GPUs.

To put that in perspective: a 64K-token cold prompt (71k actual tokens) prefills in 1.20 seconds, and 128K (142.5k tokens) prefills in 2.46 seconds — verified via Prometheus flar e_prefill_tokens_total with 0% prefix-cache hit.


Cold Prefill Benchmarks (4× RTX PRO 6000 Blackwell, PCIe, 0% prefix reuse)

ContextActual Prompt TokensCold Prefill SpeedTTFTvs Previous gb202 Release
8K8,70044,712 tok/s0.194 s+43%
16K17,37951,264 tok/s0.340 s+57%
32K35,54056,997 tok/s0.624 s+72%
64K71,21259,051 tok/s (peak 59,077)1.205 s+77%
128K142,50857,944 tok/s2.460 s+82%

(Measured on 4× RTX PRO 6000 Blackwell with NVreg_EnablePCIERelaxedOrderingMode=1, --max-concurrency 32 --mtp-draft-tokens 7 --mtp-adaptive-verification --mtp-max-verification-token-budget 128 --mtp-adaptive-verification-alpha 1.0 --embedding-table-storage ram. Sanity-checked with greedy math, 4/4 partial-tail NIAH up to 32.5k, and 17.02M shared KV token capacity / 1 M max context per request.)


What's New — How We Nearly Doubled Prefill on PCIe GPUs (Without Touching Model Quality)

Almost the entire jump from ~32k → 59.1k tok/s comes from three stacked open-source changes (all 0-ULP bit-exact on attention):

  1. 2.27×–2.63× faster SM120 BF16 prefill MLA kernel (local-inference-lab/flashinfer#142):
    • Removed L2::evict_first thrashing on reused prefill KV gathers.
    • Doubled 16 → 32 heads per CTA (mg_n_hg = 2) in an 80.5 KiB hybrid SMEM layout — cutting KV gather & dequantization work in half with 0 bytes of register spills.
    • Compile-time split of SWA vs NVFP4 tile loops with hoisted vectorized scale loads and a bank-conflict-free 304 B NVFP4 staging stride.
  2. Full 20-layer row-sharded encoder attention (hyperflare-inference#508, hyperflare-recipes#29, #30):
    • Replicates encoder attention weights across TP4 (+2.32 GiB/rank) so all 20 encoder layers execute 4× row-sharded per rank instead of blasting full-chunk PCIe AllGathers/AllReduces across the bus.
    • Shrinks the Layer-20 encoder→decoder boundary gather by 64× — from 320 MiB down to 5 MiB (128-row active suffix only).
  3. Overlapped PCIe P2P transfers (hyperflare-recipes#30):
    • Routes encoder KV gathers over SM BAR1 P2P (DcpAllToAll) so the DMA copy engine overlaps MXFP8 FFN AllGathers completely behind attention, and hides Engram AllGathers inside the FFN compute window (prefill8192 shrinks from 6,839 → 5,379 CUDA graph nodes).

Bonus: Decode & Speculative Scheduler Upgrades

We also landed a scheduler upgrade upstream in Flare (main, already merged):

  • GPU Confidence Calibration + Cross-Lane Order-Statistic Allocation Surplus (NVIDIA/hyperflare-inference#515 — merged, plus follow-up #522 co-authored with @original-el8):
    • Previously, Flare's scheduler priced crowded packed speculative batches (B=16/32) from time-averaged per-lane acceptance curves, missing the fact that the GPU prefix allocator sees fresh per-step confidences across all lanes and cherry-picks the easiest (lane, depth) slots (Jensen's inequality).
    • By calibrating drafter confidence per depth/request and modeling the empirical cross-lane Lorenz concentration surplus, default alpha = 1.0 now beats the old main across the board (+9.3% on C=16, +18.6% to +20% on diverse/hard C=32 prompts, cutting unnecessary W=1 fallback by up to 35×) — no more alpha = 0.6 workaround needed!
  • Decode on this C32 release (alpha = 1.0):
    • C1 (unique prompt): 460.1 tok/s (5.95 ms/step)
    • 16k coding session (Tetris): 155.3 steps/s (6.42 ms/step), 612.4 tok/s end-to-end average
    • Diverse concurrent decode (512 out tokens each): 866 tok/s (C4) · 1,121 tok/s (C8) · 1,384 tok/s (C16) · 1,743 tok/s (C32) — and 2,668 tok/s on standard synthetic C=32 decode sweeps (2,704 tok/s at alpha=0.6).

Try It Now (Live on Hugging Face)

The new signed C32 (120-graph, 17.02M KV tokens) package is already live on the gb202 branch: 👉 https://huggingface.co/local-inference-lab/DeepSeek-V4.1-Flash-1017-FLARE/tree/gb202

docker run --pull=always --rm -it \
  --gpus '"device=0,1,2,3"' --ulimit memlock=-1:-1 \
  --security-opt seccomp=unconfined \
  -p 127.0.0.1:8000:8000 \
  -v flare-home:/home/flare \
  ghcr.io/local-inference-lab/flare:release \
  run local-inference-lab/DeepSeek-V4.1-Flash-1017-FLARE \
  --revision gb202 --filename model.safetensors \
  --gpus 0,1,2,3 --max-concurrency 32 --mtp-draft-tokens 7 \
  --mtp-adaptive-verification --mtp-max-verification-token-budget 128 \
  --mtp-adaptive-verification-alpha 1.0 --scheduler-policy balanced \
  --embedding-table-storage disk --prefix-cache-memory 64G \
  --kv-cache-limit memory --host 0.0.0.0 --port 8000

(With 320+ GiB host RAM, switch --embedding-table-storage disk to ram for full speed. Compatible with v0.2.3, with Flare main recommended for the #515 scheduler upgrade.)

local inference lab discord: https://discord.gg/gmvKSN3tVy


r/LocalLLaMA • • 14h ago

New Model I squeezed Thinking Machines' 26.4B Inkling-2-Mini into 10.87 GB (and 8.83 GB) mostly 2-bit — 52–57 tok/s 100% on a 16 GB RX 9060 XT, 0.054 KLD, 97.5% Python Top-1 vs BF16 [Proof + HF Weights]

Post image
5 Upvotes

(Attached screenshot: live run of `inkling2_mini_p2_looptop8.safetensors` loading in 7.45s*, generating* 1,031 tokens @ 52.09 tok/s*, and live `rocm-smi` mid-decode showing* 100% GPU busy***,*** 11.28 / 15.92 GiB VRAM (70.9%), 0% CPU offload*, and a unit-test-verified thread-safe O(1) TTL LRU cache.)*

Thinking Machines' new Inkling-2-Mini (26.4B total / 3.4B–5.4B active, 3-pass looped MoE) ships at 20.16 GB (NVFP4+MXFP8, 52.8 GB BF16) and recommends 32 GB+ VRAM — locking out 12 GB and 16 GB consumer GPUs.

I quantized 99.85% of the model (`26.35B / 26.39B` params) down to 10.87 GB (hybrid 2-bit/4-bit) and 8.83 GB (all-2-bit MoE) using my proprietary PRIME-Quant method, wrote fused pure-Triton decode kernels + a single HIP/CUDA-graph runner, and got it running 100% resident on a single 16 GB AMD RX 9060 XT at 52–57 tok/s ***(*47–49 tok/s at 16K context, zero offload).

Both checkpoints, the standalone read-only Triton inference runner, and every raw benchmark JSON/test file are live on Hugging Face so you can verify everything yourself:

Hugging Face: https://huggingface.co/batteryphil/Inkling-2-Mini-PRIME-Quant

---

| Checkpoint | Size / Resident VRAM | Compression vs BF16 | Mean KLD (`1,849` toks) | PPL (`BF16 = 2.1416`) | Top-1 Agree (All / Python / C++) | Decode (`4K` / `16K` ctx) | Fits 100% On |

| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |

| Official Unquantized BF16 (24-core Xeon + GPU) | 52.8 GB (12.1G GPU + 40.7G RAM) | 1.00× | 0.0000 | 2.1416 | 100% | 2.62 tok/s (offload) | 64 GB+ |

| Official NVFP4 + MXFP8 | 20.16 GB | 2.62× | — | — | — | OOM on 16 GB | 24–32 GB+ |

| `loop_top8` (16 MoE 2-bit + top-8 looped MoE 4-bit) ⭐ | 10.87 GB | 4.86× | 0.0542 | 2.1542 (+0.0059 loss) | 93.35% / 97.50% / 97.61% | 52–54 / 48.6 tok/s | 16 GB GPUs (up to 16K ctx) |

| `maxcomp` (all 24 MoE banks 2-bit) | 8.83 GB | 5.98× | 0.1138 | 2.2143 (+0.0334 loss) | 91.35% / 95.39% / 96.90% | 56.2–57.8 tok/s | 12 GB & 16 GB GPUs |

Exact parameter breakdown: `99.85%` quantized (2-bit/4-bit); only `0.15%` (`124.6 MB`: rank-64 looped `message_gate`, MoE routers, short-conv/sink/norms) stays BF16/FP32.

---

Raw JSONs are in `benchmarks/kld_looptop8.json` and `benchmarks/kld_p2_maxcomp.json` in the HF repo.

| Domain (`n_tokens`) | BF16 Ref PPL | `maxcomp` (`8.83 GB`) PPL / KLD / Top-1 | `loop_top8` (`10.87 GB`) PPL / KLD / Top-1 |

| :--- | :---: | :---: | :---: |

| `python_code` (521) | 1.3042 | 1.3034 / 0.0409 / 95.39% | 1.3190 / 0.0217 / 97.50% |

| `systems_cpp` (419) | 1.2216 | 1.2724 / 0.0337 / 96.90% | 1.2525 / 0.0181 / 97.61% |

| `math_reasoning` (390) | 1.7601 | 1.9600 / 0.1382 / 91.03% | 1.8209 / 0.0437 / 93.59% |

| `technical_prose` (216) | 6.9495 | 8.3906 / 0.2283 / 77.31% | 7.6525 / 0.1021 / 83.33% |

| `inkling_chat_tool` (303) | 6.0739 | 5.3638 / 0.2372 / 87.13% | 5.3300 / 0.1395 / 87.13% |

| Overall (1,849) | 2.1416 | 2.2143 / 0.1138 / 91.35% | 2.1542 / 0.0542 / 93.35% |

Because Inkling-2-Mini loops layers `6..17` 3 times per token (48 logical passes), quantization error in the hottest looped layers compounds 3×. Promoting just those top-8 sensitive looped/boundary MoE layers (`L5, 8, 9, 11, 12, 14, 15, 16`) to 4-bit while keeping the other 16 MoE banks at 2-bit cuts KL divergence in half (`0.1138 → 0.0542`) for only `+2.04 GB` VRAM and `-3.6%` speed.

---

Perplexity alone doesn't prove a 2-bit quant holds up on hard multi-step code. I ran a strict head-to-head test (identical prompts, official `temp=1.0, top_p=1.0`, identical RNG seeds `701–703`) building a 2-module reactive spreadsheet formula compiler + incremental DAG engine (`benchmarks/test_spreadsheet_engine.py`):

- Stage A (`formula_parser.py`, 6 tests): No `eval`/`exec`, reversed multi-letter 2D ranges (`AB2:Z1`), right-assoc power & unary binding (`2^3^2 == 512`, `-2^2 == -4`, `2^-3 == 0.125`, `--5 + +-3 == 2`), non-chaining comparisons, strict short-circuit `IF()`, and empty-vs-explicit-zero aggregates.

- Stage B (`spreadsheet_engine.py`, 15 tests): Iterative 3-color DFS cycle detection + transactional rollback (including cycles hidden inside 2D ranges), atomic `batch_update` dependency swap (`A1 ↔ B1`), error propagation & self-healing, and incremental Kahn topological recalc over a 40-layer diamond DAG (`2^40` paths) next to 1,000 unrelated cells in `< 0.2s`*.*

| Metric (same `4,500`-tok budget, same seeds) | `PRIME-Quant loop_top8` (`10.87 GB`) | Official Unquantized BF16 (`52.8 GB`) |

| :--- | :---: | :---: |

| Load time | 7.6 s | 75.8 s |

| Decode speed | 46.9 – 49.3 tok/s | 2.57 – 2.62 tok/s (18.6× slower) |

| Stage A (`formula_parser.py`) | 6/6 PASS (Iter 3, 5.3 min) | 4/6 FAIL (3 iters truncated @ 4,500, 92.5 min) |

| Stage B (Full 15-test DAG suite) | 14/15 PASS (93.3%) (8.4 min) | Stopped after Stage A |

Honest caveat: BF16's parser logic wasn't broken — Inkling-2's tokenizer averages only `~2.64–2.87 chars/tok` on Python (`11.5–14.7 tok/line`), so a 340-line class AST + 900 thinking tokens needs `~5,000` tokens. Both models truncated at `4,500` tokens on early turns; `loop_top8` converged to a leaner 230-line dict AST that fit cleanly, then cleared `14/15` on Stage B (missing only `test_08` due to an eager upstream-error check before short-circuit `IF`).

After updating the runner to `16K` context + `8,192` token budget + fixing a subtle post-answer `<|content_thinking|>` rewrite edge case:

- Truncation rate dropped to 0/6 turns (`100%` clean `finish=stop`).

- Stage A solved 6/6 on Iteration 2 (335-line class AST, `4,381` tokens).

- Peak VRAM at `ctx=16384`***:*** `12.08–15.67 GB` (100% on the 16 GB RX 9060 XT) at `46.8–49.2 tok/s`*.*

All generated code + the 15-test pytest suite are in the HF `benchmarks/` folder so you can run `pytest` on them in 0.2s.

---

Zero custom HIP/CUDA C++ extensions to compile — everything runs in pure Triton (AMD ROCm & NVIDIA CUDA):

- L0-cached 4-float LUT 2-bit MoE GEMV: `300.7 GB/s` achieved out of `320 GB/s` theoretical peak on RDNA4.

- Parallel-K FP32 MoE `down_proj` + fused SoftcappedSwiGLU (`1.54×` faster than 2-pass).

- Fused Triton Inkling-2 decode ops across all 48 looped passes: 4-tap static/dynamic short convs (`192` calls/tok), rank-64 `message_gate` (`96` calls/tok), single-pass `AttnRes` (`120` calls/tok), single-CTA `router_topk` (`4.25×` faster), `unweighted_rmsnorm` (`8.06×` faster), and ring-buffer GQA + RelPosBias + per-head sink decode attention (`48` calls/tok).

- Chunked prefill attention (`Q_CHUNK=128`) & `AttnRes` (`T=512`): cuts 16K prefill activation VRAM by ~80× (`2+ GB → ~25 MB`).

- Single HIP/CUDA Graph replay: verified `24/24` exact greedy token parity vs eager `model.generate()`.

---

```bash

huggingface-cli download batteryphil/Inkling-2-Mini-PRIME-Quant --local-dir ./Inkling-2-Mini-PRIME-Quant

cd ./Inkling-2-Mini-PRIME-Quant

pip install -r requirements.txt # requires transformers >= 5.24.0

TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1 python run_inkling2_prime.py \

--checkpoint ./inkling2_mini_p2_looptop8.safetensors \

--max-cache-len 16384 --max-new-tokens 8192 --max-thinking-tokens 900 \

--interactive

python run_inkling2_prime.py \

--checkpoint ./inkling2_mini_p2_maxcomp.safetensors \

--max-cache-len 4096 --max-new-tokens 2048 --max-thinking-tokens 600 \

--interactive


r/LocalLLaMA • • 14h ago

Showcase Fine-tuned Gemma 4 26B-A4B for Home Assistant – GGUF available

51 Upvotes

Hey everyone,

I've been working on a local LLM for my Home Assistant setup and ended up fine-tuning Gemma 4 26B-A4B for smart home control and tool calling. I've been using it in my own home for about two months now, gradually improving it based on everyday use.

The main focus was improving everyday smart home interactions, especially in German, while retaining general conversation and function calling capabilities. The training also includes varying device inventories and room configurations to avoid overfitting to a single household.

A few technical details:

  • Based on Gemma 4 26B-A4B
  • Q4_0 GGUF (14.62 GB)
  • Focus on Home Assistant and Music Assistant
  • Native Gemma chat template and tool calling
  • German-focused training with additional English examples
  • Trained with reasoning disabled

The adapter scored 93.75% across 800 cases in my internal tool-calling development benchmark. However, this is not an independent benchmark, and I haven't repeated the full evaluation on the quantized model yet.

It's still experimental and has some known limitations, particularly around safety-sensitive device commands.

I figured I'd upload it in case anyone else is experimenting with local LLMs for Home Assistant and finds it useful.

https://huggingface.co/Maxinger15/LunaraHome-26B-A4B-GGUF

I'd be interested to hear how it behaves with other people's Home Assistant setups.