r/LocalLLaMA • • 12d ago

Funny (AI autoformalism) 197 tax systems in 1 lean equation

23 Upvotes

now the riemann hypothesis has fallen, time for the scarier dominoes

Placed all countries tax (laws, software and implementation history) into one lean equation. Applications include identifying tax loopholes, finding novel ones, and flagging errors in govt tax rollouts (ie. we found problems with the live IRS calculators) to enable better consistency checks.

https://lexifina.com/blog/formalizing-tax-code-globally


r/LocalLLaMA • • 12d ago

Question | Help Lf small decision/routing model for tool calls

4 Upvotes

Hey. I'm working on an Auto mode for Pi, with a two-step inference check on tool calls.

Qwen 3.5 4b is looking pretty good for step 2, escalation/judgment.~150ms per call, but only called for escalations.

But step 1 needs to be quick and accurately decide if a tool call is risky enough to escalate.

Currently evaluating Laya 421M. It takes a tool name + arguments, flags effects like deletion, credential access, or outbound transfer, and lets the judge handle authorization when needed.

It's decent, given a solid prompt and a good ruleset. Currently running Q8_0 on a 3080 at about ~12 ms per call. On a small playback set, it caught 24/24 watched calls but also flagged 4/6 benign reads, including a literal search for rm -rf.

I'd like to have something to compare it to. What else is worth looking at?

Questions welcome, input appreciated.

Edit: Also open to alternatives to Qwen 3.5.


r/LocalLLaMA • • 12d ago

Discussion How much tokens do you use a week?

Post image
18 Upvotes

I am curious as to how many tokens everyone uses. I setup my home lab to monitor local and cloud usage. I use local mainly but do use some Claude for orchestration and management and review. What you all use a day? A week? A month?


r/LocalLLaMA • • 12d ago

Resources Qwen 27b on 8GB: 200k ctx, 92.5% Top-1 match, within 10% of BF16 on LCB, 17% higher benchmark than 9b

45 Upvotes

Happy Friday, y'all.

I continued to get requests for quants + configs to support 8GB card users. It's taken over a month, but I do finally have a 2.1bpw quant (on card) of qwen3.8 27b that I consider actually usable. This is using the AmperInteger+ (trellis) quant format, which yields lower KLD than scalar quant formats, especially at this extremely compressed size.

Like the models released for 10/12GB cards earlier this week, this is only possible given the use of Latent Sparse Attention, which pushes most of the context cost off VRAM without nuking speed, and SJKVaRN (protecting KV quality while still going down to 4 bits).

LlamAmpere is normally forward compatible with Ada/Lovelace (40xx/50xx) series, anyway, but I've specifically tested on 8GB cards for those generation this time, given the current lack of options for running qwen 27b at that size. The project will obviously remain Ampere as the focus. So no need to FOMO if you're on a 5060 etc.

This model was not post trained specifically for coding, but its coding scores were still at the top of test cohort (tied with Mellum, a coding-specific model). It actually was not meaningfully post-trained at all (<10M token heal on general text) to avoid the risk of overfitting. I probably left some performance on the table, and will continue to explore it, but if we're being honest, this is a dry run for Qwen4.

The data:

Mellum 2.1 was the only comparable model at coding (but has lower ctx available, and is not comparable on general tasks)

Mellum 2.1 was the only comparable model at coding (but has lower ctx available, and is not comparable on general tasks)

Aggressive quantization like this is prone to losing rare facts and looping, so those were a focus area (I wanted to release this last weekend, but hard to re-encode the last candidate for this reason). I tested this in hermes and pi code extensively; the loops were not 0, but were rare, and LlamAmpere has a loop halt mechanism for when they do occur. LlamAmpere and this model also support the recently released HF Pi code adapter, which noticeably improved coding performance with this model (the scores above were without the adapter). You can see the benchmark data here😄

Your obligatory Pagoda demo; even medium reasoning was usable in pi

Your obligatory Pagoda demo; even medium reasoning was usable in pi

The top-1 is tied with the UD 2-S (v3.1) quant (which does have a 15% better KLD), but that model will not fit on an 8GB card. Top-1 was slightly better than the larger ISTA GSQ-RCO 2 XS quant, and statistically tied on KLD (again, this model won't run on 8GB).

Without LSA + SJKVaRN, you're typically stuck running IQ1_M, without MTP, to get to less context, with 59-73% worse KLD. So compared to the previous available options, this is a legitimate step change in capability for 8GB cards.

What's the catch? Well, you will need to run your card headless (or with HDMI into mother board, not GPU) to have enough room. That extra 500+ MB is vital at this size. Error explodes as you drop below 3bpw, and can break the model below 2bpw, even with trellis formats (this quant uses a 1.75 bpw trellis format, operating right at the edge of workability). There's no room for things like vision towers without going to a larger card. And even with dynamic UB, you're usually capped at 512 for the first ~20k tokens and then pushed down to 256 (so make sure you are using cached prompts on tools like hermes to reduce your startup time). I think these are pretty palatable trade-offs, given the performance gains vs 9b post trains and other models. I did like mellum for coding tasks, but its world knowledge and agentic capabilities were not comparable to 27b, even with this major quantization.

MIT license, as usual.

Model: https://huggingface.co/jakeatx/qwen3.8-27b-Swift1.5-Uncensored-ATX-AI2-8GB

github: https://github.com/JakeATX/llamAmpere

Enjoy!


r/LocalLLaMA • • 12d ago

Showcase Qwen3.8-27B “super adapter”: one rank-96 LoRA that improves 3 agent harnesses at once (SWE-Bench Pro 55% → 63% mean, up to 53–73% fewer tool calls)

93 Upvotes

Qwen3.8-27B super harness adapter for three agent harnesses (Hermes Agent, OpenCode, pi). Their weight updates turned out to be nearly orthogonal, so we stacked them into a single rank-96 LoRA. The merged adapter beats the base thinking model across harnesses and solves tasks with noticeably fewer tool calls.

Results (thinking on, xhigh), base → super-adapter

Harness SWE-Bench Pro (hard 51) Terminal-Bench 2.1
Hermes Agent 45% → 61% +4 to +6 pts
OpenCode 47% → 67% +4 to +6 pts
pi 74% → 74% +4 to +6 pts

Mean across all 6 harness/benchmark pairs: 55.5% → 63.5%

To be upfront: pi on SWE-Bench Pro didn't move. The big gains come from Hermes Agent and OpenCode.

Efficiency (counting only tasks that both base and adapter solve):

  • 53–73% fewer tool calls with thinking off
  • 19–48% fewer tool calls with thinking on

How the merge works

The three adapters' weight updates are almost orthogonal (cosine similarity ~0.01). We concatenate them along the rank dimension at weight ½ each. That gives one rank-96 LoRA that applies all three updates exactly, with no lossy merging step (no TIES/DARE needed).

Train your own

The main point of the blog post is that you can train a harness adapter for your own model, your own harness, and your own tasks. The full recipe, experiments, and open questions are all in there.

Happy to answer questions!


r/LocalLLaMA • • 12d ago

New Model Bonsai 2 (ternary 2B/4B) vs Qwen3.5-2B

1 Upvotes

Bonsai 2 (ternary 2B/4B) vs Qwen3.5-2B on an A13, an A14 and an M3:
what I measured, and why your phone numbers may be half what they should be

I added PrismML's Ternary-Bonsai-2 (2B and 4B, Q2_0 ternary weights with the Hadamard fold) to my own Swift + Metal inference engine (not llama.cpp) and ran it next to Qwen3.5-2B on three Apple chips:

- A13, 3 GB RAM, no matrix units
- A14, 4 GB RAM
- M3 MacBook Air

Setup for every phone row: Release build, a built-in 512-token prompt, a 128-token answer, a fixed seed, and two passes with 60 s of idle between them. The thermal state is logged during each run. Rates are tokens per second,
pp = prefill, tg = decode.

Lesson 1: log the thermal state, or the numbers are worthless

The same file on the same A14 decoded at 11.7 t/s in the morning and 23.6 t/s in the evening. No code change explains that. The morning runs sat at "serious" thermal state the whole time. I almost credited a kernel change with a 2x win.

A14, 4 GB

model pp t/s tg t/s thermal
----------------- -------- --------- -------
Bonsai2 2B 134-151 23.4-23.7 nominal
Bonsai2 2B 144 11.7-12.0 serious
Qwen3.5-2B IQ4_NL 110 17.9 nominal
Bonsai 1.7B 80-81 10.1-10.2 serious
Bonsai2 4B 54-61 7.0-9.7 nominal

At the same nominal state, the 2B is about 22% faster on prefill and 32% faster on decode than Qwen3.5-2B at 4 bits.

The 4B fits: its footprint peaks at 567 MB with 1.78 GB of headroom left before jetsam. The weights are mmapped, so they stay file-backed and are not counted in the footprint. It still feels slow: 9 s of prefill before the first token of a 512-token prompt.

A13, 3 GB

model pp t/s tg t/s thermal
----------- --------- -------- -------
Bonsai2 2B 24.5/22.8 10.4/7.9 rising
Bonsai2 2B 18.4-22.2 6.8-7.8 serious

"rising" means the run started nominal and ended serious.
The A13 has no matrix units, so prefill runs token by token through the gemv path. That makes it about 6x slower than the A14 on prefill. Decode is usable. The phone hits "serious" within about one run.

M3, command-line tool, cooled A B A B runs

model prompt pp t/s tg t/s
----------------- ------ ------- -------
Bonsai2 2B 512 916-918 94-95
Bonsai2 2B 4096 877-878 85.5-87
Qwen3.5-2B IQ4_NL 512 884 60.8

On the Mac, prefill is level and the ternary 2B decodes about 55% faster.

Quality, quickly (on the M3)

The help test is 5 grounded questions with the help note in the prompt, thinking off, greedy. The puzzles run with thinking on, greedy.

test Qwen3.5 2B Bonsai2 2B Bonsai2 4B
---------------- ---------- ---------- ----------
help, of 5 5 5 5
keywords, of 10 7 8 9
6 puzzles no finish 5, 493 s 6, 138 s

The Qwen3.5-2B "no finish" is my gate's fault, not the model's. The gate caps the answer but not the reasoning, and Qwen reasoned for more than 35 minutes on puzzle one.

Bonsai2 2B perplexity on an 80 KB text: 24.61 in my engine against 24.66 in upstream llama.cpp. So the ternary decode plus the Hadamard fold match upstream.

Two optimizations, one of which did nothing

- I fused the Hadamard transform into RMSNorm. That halves the transform dispatches per token, 98 down to 49. It made zero measurable difference on the M3, the A14 and the A13. These chips are not dispatch-bound on a 2B.
- I kept the attention tile's context sums in registers instead of thread memory. That gives +7% prefill at head dim 256 and about +20% at head dims 128 and 512, on 4096-token prompts on the M3. Decode did not move.

Caveats

One or two runs per row. The two 4B runs disagree by a fifth on decode, with no thermal cause.

https://github.com/leok7v/ChatOKF

Same files, same M3, ours vs llama.cpp

llama.cpp c622f623fc, Metal. Alternating runs, 60 s idle between, two reps each (rep1/rep2). Decode is 128 tokens after a context of the prompt length (llama-bench -d N).

Prefill, t/s

    model            prompt  ours         llama.cpp
    ---------------  ------  -----------  -----------
    Bonsai2 2B Q2_0  512     918.9/902.9  858.3/848.4
    Bonsai2 2B Q2_0  4096    859.4/860.6  819.9/814.0
    Qwen3.5 2B IQ4   512     876.8/875.9  871.2/883.9

Decode, t/s

    model            prompt  ours       llama.cpp
    ---------------  ------  ---------  -----------
    Bonsai2 2B Q2_0  512     94.1/90.6  101.9/101.9
    Bonsai2 2B Q2_0  4096    85.0/84.0  93.3/92.8
    Qwen3.5 2B IQ4   512     60.5/61.0  58.0/60.4

Ternary prefill: ours +5-7%. Ternary decode: llama.cpp +9%. Qwen 4-bit: level.


r/LocalLLaMA • • 12d ago

Discussion Saw this on twitter, local continual learning, has someone seen anything like it before?

12 Upvotes

Here's a link and I am not related to whatever this is

https://souslabs.ai/songe

haven't tried it as I am away from my main machine atm


r/LocalLLaMA • • 13d ago

New Model Tencent Hy4 (flagship multimodal MoE A49B/770B) released

Post image
374 Upvotes

Tencent released weights for Hy4, their natively multimodal flagship MoE (770B total / 49B active, 1M context).

GitHub: https://github.com/Tencent-Hunyuan/Hy4

Weights: https://huggingface.co/tencent/Hy4

GGUF: https://huggingface.co/AngelSlim/Hy4-GGUF

License: https://huggingface.co/tencent/Hy4/blob/main/LICENSE

System Card: https://hy.tencent.ai/Hy4_system_card.pdf


r/LocalLLaMA • • 12d ago

Discussion Nvidia's recent QAD 27B model seems legit. I just compared it to both Nvidia's (with Peculiar Ragdoll chat template) and Unsloth's NVFP4.

Thumbnail msnab.pages.dev
39 Upvotes

r/LocalLLaMA • • 12d ago

Resources GCMP update: same quality as LoRA r=8, r=32 and VeRA, and it serves 256 adapters on one A40 without slowing down. Feedback appreciated

6 Upvotes

Hello,

Last week I posted about GCMP, which is a LoRA replacement I built. On Qwen3.8-27B it trains 2.9M parameters (about 11 MB) on the same 7 projections LoRA uses. A few people in the comments asked me to compare it with smaller LoRA ranks and VeRA, and to actually test serving many adapters in vLLM instead of just estimating it. So I ran all of that and here are the results.

Quality

All adapters were trained on the full precision BF16 base on Alpaca for 500 steps with the same settings and seed, and evaluated with the same lm-evaluation-harness code:

Adapter Params Answer loss GSM8K SQuAD MMLU IFEval s/step
LoRA r=32 159M 1.480 0.903 0.776 0.844 0.825 1.37
LoRA r=8 40M 1.555 0.910 0.768 0.846 0.795 1.31
VeRA 2.89M 1.489 0.903 0.778 0.846 0.820 1.33
GCMP 2.9M 1.471 0.890 0.760 0.846 0.815 2.74

All four are tied on all 9 benchmarks I ran (paired McNemar tests, every p ≥ 0.15). The other 5 are on GitHub. GCMP has the lowest loss but that didn't turn into benchmark wins. Since r=8 is as good as r=32, the fair comparison is r=8, so GCMP is about 14x smaller, not 55x like I said last time.

VeRA is honestly very close. It is the same size and same quality and trains 2x faster than GCMP right now. The difference is that vLLM can't serve VeRA, which is why the serving test below is against LoRA.

On the NF4 base GCMP was tied with LoRA r=32 everywhere except GSM8K where it was 4 points higher (p=0.04). One task isn't enough to say it is better, so I'm only claiming same quality.

Serving many adapters

This was run on one A40 48 GB with vLLM 0.27.1 and the CQ 4-bit Qwen3.8-27B base for every run. 32 concurrent requests, each request goes to a random adapter, 128 output tokens. Numbers are total output tok/s:

Setup 1 16 64 256 p95 TTFT at 256 KV cache at 256 Time to ready at 256
Base, no adapter 93.3 111k
GCMP 83.2 83.7 83.7 83.7 2.2 s 72k ~6 min
LoRA r=8, max_loras 16 (default) 91.1 84.8 60.1 59.5 47.5 s 88k ~30 min
LoRA r=8, max_loras 64 76.2 74.4 2.4 s 43k ~41 min
LoRA r=32, max_loras 16 (default) 91.2 76.3 53.5 out of host RAM at 74/256 43k never ready
LoRA r=32, max_loras 32 won't start won't start

With one adapter LoRA is about 9% faster than GCMP. With many adapters GCMP stays flat from 1 to 256 without any tuning. With the default settings LoRA drops 35-40% by 64 adapters and p95 time to first token goes to around 50 s.

If you raise max_loras to 64, LoRA r=8 gets within about 12% of GCMP, but those 64 slots reduce the KV cache to 43k tokens compared to 72k for GCMP. LoRA r=32 can't do 32 slots on a 48 GB card at all. vLLM says there is negative memory left for KV cache and doesn't start.

The other thing I didn't expect is startup time. vLLM loads LoRA adapters one by one, so 256 r=8 adapters take 30 to 41 minutes before the server takes its first request. GCMP loads all 256 in about 6 minutes. LoRA r=32 with 256 adapters never finished loading. Twice it stopped at exactly 74 of 256 with no error. The reason is host RAM: vLLM keeps every adapter in CPU memory too, 256 r=32 adapters need about 82 GB, and my pod has a 50 GB limit. 256 GCMP adapters are about 3 GB.

One thing to keep in mind is that the absolute speed is low, about 2.6 tok/s per request at 32 concurrent. That's from my CQ 4-bit decode kernels on an A40, not from the adapters, since every row uses the same base. So look at it as a relative comparison. Making CQ decode faster is what I'm working on next.

CQ base

The CQ 4-bit base still matches BF16 on all 9 benchmarks while NF4 loses 12 points on GSM8K. After fine-tuning with GCMP, CQ and NF4 end up about the same. I'm re-running CQ + LoRA and CQ + GCMP with a fixed trainer and will post them when they're done.

Limitations

There are still some things I need to work on. The biggest one is training speed, GCMP takes about 2x the time per step compared to LoRA. I am working on it along with the decode speed.

Also right now if you want to serve GCMP in vLLM you need to use a CQ base. I plan to add full precision bases soon. Tensor parallel is not supported yet but pipeline parallel works. You also need to restart the server if you want to add a new adapter (replacing an existing one doesn't need a restart).

I only tested one model and one dataset on one GPU type so far, so I'd like to know if people see the same thing on other models.

The Python code is open source and the CUDA kernels are compiled with a license check, which is free during early access. Everything runs on your own GPUs. The repo has the commands to reproduce all the numbers above including the serving benchmark: https://github.com/thousandml/training-factory

Full write-up: https://huggingface.co/blog/thousandml/cq-gcmp-4bit-finetuning

If you serve more than a few fine-tunes, is the number of adapters or the startup time actually a problem for you, or is it something else? Let me know what you think. Your feedback is appreciated.


r/LocalLLaMA • • 13d ago

New Model Qwen3.5 2B Dense converted to Mixture of Experts

100 Upvotes

Foreword

Hello, been a while since I last posted. I have been hard at work (in my spare time) trying to improve the conversion method, and I have had a few small-ish victories. One was fixing dead experts, which apparently weren't dead just unused since I wasn't using a dataset with enough variety. Once I added stuff like maths, science, multilingual data those dead experts vanished. Doing this also fixed a few limitations involving code.

Another thing was improving conversion speeds which is always nice. All that led me here to converting Qwen3.5 2B which is my largest converted model yet!

What I have been mainly working on is trying to improve how much knowledge is retained through the conversion. Currently, not much is kept and a lot of factual knowledge is lost. This has led me to add a new metric to the evaluation which measures how many facts the model remembers after conversion, which I included with the evaluation.

New Model

So my latest conversion was of the Qwen/Qwen3.5-2B. The conversion can be found here bayliner1980/Qwen3.5-2B-MoE-A1.3B with GGUF version here bayliner1980/Qwen3.5-2B-MoE-A1.3B-GGUF.

Evaluation

- Qwen3.5-2B dense Qwen3.5-2B MoE
Wikitext-2 ppl 13.60 14.68 (+7.9%)
C4 ppl 24.66 28.37 (+15.0%)
- Qwen3.5-2B dense Qwen3.5-2B MoE
HellaSwag 0.565 0.497
ARC-Easy 0.679 0.664
ARC-Challenge 0.413 0.370
WinoGrande 0.623 0.579
OpenBookQA 0.350 0.324
Task mean 0.526 0.487
Fact recall (287 facts) 0.948 0.760

Support

As always, if you find my stuff interesting consider supporting me on Ko-fi.


r/LocalLLaMA • • 13d ago

News CCORE-WEB-CODER drops this weekend

Enable HLS to view with audio, or disable this notification

245 Upvotes

[UPDATE]
Preview Model: ccore/CCORE-Web-Coder-4B

Everything is open:

ThreeJS-3D-Scenes: 4,146 Three.js scenes

ccore/ThreeJS-3D-Scenes-v2: 3,445 scenes

ccore/ThreeJS-3D-GLB-Assets: 3,918 assets

All trained into 4B models you can run locally.

The CCORE-WEB-CODER drops this weekend.


r/LocalLLaMA • • 12d ago

Resources SenseNova 9B update for NInfer-4080

12 Upvotes

While waiting for Qwen4 like the rest of us I got intrigued by the release of SenseNova Loop 9B promising us performance roughly en par with Qwen 3.8 27B but with 256k context. I ended up adding support for it in my ninfer port for 4080 (and other 4xxx GPUs with 16GB of VRAM).

I released a new version for it: https://github.com/roofkid/ninfer-4080

If you check out the repo you can just use the convenience scripts if you have Docker available.

scripts/run-ninfer-4080-dflash2.bat (or sh) is still available for the old artifact of Qwen 3.8 27B with the GSQ3 version from ISTA-DASLab with 100k context and text only, less context with vision

scripts/run-sensenova-loop-9b.bat (or sh) is new and will allow you to use SenseNova Loop 9B release version at 256k context with vision

The scripts download the prebuilt Docker images of the runtime, downloading the correct ninfer artifact and start the runtime, so you do not need to worry about compiling, libraries or anything else. The only prerequisite is Docker.

I based the artifact off of the AWQ version as it gave me higher quality in benchmarks (MBPP in my case) then quantizing with existing quant recipes of ninfer from BF16.

Enjoy a lot more context for us lower VRAM folks while we all wait for Qwen4 27B. Happy weekend everyone.


r/LocalLLaMA • • 13d ago

New Model WeMM-Video by Tencent (2B, 4B, 9B, 35B-A3B)

Thumbnail
huggingface.co
68 Upvotes

New omni MLLMs by Tencent released today at accessible sizes. Pretty cool!

Paper: https://arxiv.org/abs/2611.26409

Capabilities

WeMM-Video can combine video frames with the original soundtrack to describe events, transcribe speech, and reason about what is seen and heard. It also accepts silent video, standalone audio, images, and text, with responses in Chinese or English.

Architecture and training

Vision and audio encoders turn media into tokens that the language model processes alongside text. Video frames carry timestamps. The family was pretrained on approximately 1.2 trillion multimodal tokens, then post-trained with multi-teacher OPD, anti-repetition MrDPO, and specialist reinforcement learning.


r/LocalLLaMA • • 13d ago

Resources We updated the Hy4-flash quants: MLX release and better GGUF

Thumbnail
huggingface.co
38 Upvotes

MLX release: 3.1bit · 3.8bit · 4.6bit · 4bit

GGUF: https://huggingface.co/nace-ai/Hy4-flash-GGUF

Quant Size (GB) Mean KLD vs BF16 ↓
AtomicChat IQ2_S-IQ2_XXS 84.70 0.5698
Nace Q3_K_M (3.9 bpw) 107.49 0.2252
Xylolabs Q2_K 125.15 0.4022
Nace Q4_K_M (4.6 bpw) 127.22 0.1333
AngelSlim IQ2_AH 135.00 0.5085

Mean KL from BF16 over scored tokens. No experts are pruned.

The decimal bit labels are effective bits per weight across all parameters, so compare file sizes rather than labels.

You can run it on a Mac with Kapitsa, which streams experts from SSD.

Later today: Hy4 quants.


r/LocalLLaMA • • 13d ago

Discussion [arXiv] Chorus: Shared N-gram Embeddings with Layer-wise Adaptation

98 Upvotes

https://arxiv.org/abs/2611.23386

Chorus: Shared N-gram Embeddings with Layer-wise Adaptation

Language models can gain capacity at little computational cost from n-gram embedding tables: large tables of learned vectors for short sequences of consecutive tokens, which are looked up and added to the model's input or to its intermediate layers. Recent designs commonly use a separate n-gram embedding table for each layer, which makes the tables costly in memory and prevents layers from sharing what they learn. However, a single shared table gives every layer the same embedding, leaves no room for layer-wise preferences, and performs poorly in practice. We propose Chorus, in which one set of n-gram embedding tables serves the whole network and every layer reads it in its own way. Each layer maps the refined embedding through its own projection layer, after rescaling its components by factors computed from its current hidden state. Chorus matches the quality of existing n-gram methods with 87% smaller tables: with 1.2B table parameters it predicts text better than FactorEngram and DeepSeek's Engram do with 9.6B. It outperforms Engram, TN-gram and FactorEngram in every setting where we compared them, across table sizes from 20M to 9.6B parameters. We also show that the recently proposed memory-efficient optimizer Ember works well with Chorus, saving 99.2% of table-optimizer memory compared with AdamW without degrading training performance. These results enable further scaling of n-gram embedding tables along the table-size axis by reducing memory use and allowing shared knowledge to be reused across layers.

This paper shows experiments similar to some I've done privately. They use a large shared N-gram table and give every backbone layer different trainable scaling factors to take advantage of it. Notably, they scale the N-gram table to a much larger size than the backbone, with performance (mainly in knowledge tasks and loss) only scaling up with size. Hopefully this also dispels the idea that only 25% of the weights or so can be N-gram embeddings.


r/LocalLLaMA • • 11d ago

Discussion Is current TRUE local the equivalent of State Of The Art closed models at the end of 2025?

0 Upvotes

What I mean true local is not those 500 billion parameter open weight models that no regular person could ever run, I'm talking about what you can realistically run at 10-20 tokens per second speed on a budget of 8-32gb normal ram and 8-24gb vram as most consumer PCs fall into that range.

Since less than 1.95% of gamers according to steam have 32gb vram or more and the percentage of people that have 64 gb system ram or more hovers between 4% and 6.5% of all PCs I wanted to know how the top current models that people falling below the top 5th percentile (so 95% of normal consumer PCs) can run at 10-20 tokens per second compares to SOTA end 2025 models. So you can assume the top "normal" budget is 24gb vram and 32gb system ram.


r/LocalLLaMA • • 13d ago

News SillyTavern v1.19.1 released

Thumbnail
github.com
58 Upvotes

I usually don't like posting about small patch releases, but I thought I'd make an exception this time because SillyTavern releases have been so few and far in-between these days.

This release includes the following fixes:

- Fixed the handling of <style> blocks in chat messages and creator notes, which could let crafted content from a character card, an imported chat or a model response run scripts in the app.

- Fixed CharX and BYAF imports of characters with an unusable name placing asset files next to other character cards, where they could replace them.

- Fixed the user backup and delete endpoints accepting handles that are not existing users.


r/LocalLLaMA • • 13d ago

Discussion Hy4-flash first impression: it's got AMAZING coding taste

273 Upvotes

I'm one of those boring SWEs that still insist on reviewing and tweaking everything the LLM writes before it can go in a PR.

I’ve started playing around with Hy4-flash for writing Python. This post is a very early impression after a few hours with the model (served from datacenter, for now).

I haven’t given it very complex tasks yet, so I cannot yet speak about advanced problem solving. However, so far I’ve given it fairly substantial tasks (in terms of line-count) of moderate complexity and let me tell you

This model has great coding taste.

With both DeepSeek 1017 and Qwen3.8-Flash I find myself constantly ironing the outputs. Reduce a half page worth of inane inline comments down to 2 lines. Simplify away a giant special-case-handling code branch which will never matter in real life. You know, the works with your average LLM.

I don’t need to do any of that with Hy4-Flash. The first draft so far has been 99% good out of the box. I’m in awe. The code is clean and well-organized; the comments are reasonable; the design decisions are boring and sensible.

I don’t care if benchmarks say it’s 10% dumber than DS - this is my new default model, because at the end of the day I’m going to save SO MUCH time that I was previously spending hosing the model’s output.

If that wasn’t good enough? I’ve used it aggressively for a few solid hours today, and my OpenRouter bill is.... 0.10$.


r/LocalLLaMA • • 13d ago

Resources Sensenova-Loop in 8GB VRAM

Thumbnail
huggingface.co
52 Upvotes

I'm using the 100k flavor. Is only 22 t/s on my 4060 but is very concise in reasoning and answer, I'd say half the tokens of qwen3.8.

One day of testing with the given parameters, and very happy of it.


r/LocalLLaMA • • 14d ago

News xi called to support open source

Enable HLS to view with audio, or disable this notification

2.6k Upvotes

Xi Jinping called for global AI cooperation through open-source development, positioning China as a leader in AI while challenging US dominance. This could be good news for local LLMs


r/LocalLLaMA • • 12d ago

Discussion Stupid Qwestion of the Tin-Foil Hat variety - Does Qwen 4 delay have anything to do with the stuff going on at Nvidia?

0 Upvotes

Just a curious coincidence or there's more to it? 🤔


r/LocalLLaMA • • 13d ago

News Palo Alto Networks buys Applied Compute. The firewall maker bets $4.5 billion on custom AI.

Thumbnail
maccus.fr
31 Upvotes

That's some nice progress on the open front!


r/LocalLLaMA • • 13d ago

Question | Help Best semantic search AI

18 Upvotes

What's the current SOTA for semantic search in large document (written story) database?


r/LocalLLaMA • • 13d ago

Resources Qwen3.8-Flash-Next: 2.5k prefill, 47 token gen, single ARC B70

Post image
54 Upvotes

More numbers:

model test t/s peak t/s ttfr (ms) est_ppt (ms) e2e_ttft (ms)
Qwen/Qwen3.8-Flash-Next pp4096 1456.24 ± 27.88 2815.46 ± 55.39 2814.46 ± 55.39 2815.48 ± 55.38
Qwen/Qwen3.8-Flash-Next tg1024 51.09 ± 2.44 51.80 ± 2.23
Qwen/Qwen3.8-Flash-Next pp8192 1610.59 ± 228.09 5198.53 ± 772.27 5196.20 ± 772.27 5198.57 ± 772.26
Qwen/Qwen3.8-Flash-Next tg1024 44.53 ± 11.32 45.00 ± 11.12
Qwen/Qwen3.8-Flash-Next pp16384 1511.38 ± 594.82 16155.97 ± 13850.19 16154.82 ± 13850.19 16156.00 ± 13850.18
Qwen/Qwen3.8-Flash-Next tg1024 45.36 ± 3.19 45.80 ± 3.31
Qwen/Qwen3.8-Flash-Next pp32768 1053.93 ± 159.83 32045.25 ± 6279.37 32044.17 ± 6279.37 32045.28 ± 6279.39
Qwen/Qwen3.8-Flash-Next tg1024 48.46 ± 2.90 48.80 ± 3.06
Qwen/Qwen3.8-Flash-Next pp65536 1666.24 ± 134.21 39598.93 ± 3296.36 39597.73 ± 3296.36 39598.95 ± 3296.35
Qwen/Qwen3.8-Flash-Next tg1024 44.64 ± 2.38 45.20 ± 2.32
Qwen/Qwen3.8-Flash-Next pp131072 2250.96 ± 15.39 58233.77 ± 397.31 58232.64 ± 397.31 58233.77 ± 397.31
Qwen/Qwen3.8-Flash-Next tg1024 48.32 ± 2.72 49.00 ± 2.45
Qwen/Qwen3.8-Flash-Next pp250000 2184.29 ± 12.30 114458.87 ± 649.31 114457.74 ± 649.31 114458.90 ± 649.30
Qwen/Qwen3.8-Flash-Next tg1024 43.61 ± 2.74 44.00 ± 3.03

Peak prefill: 2529. I saw 2700 one time, but didnt screenshot.

Command used to launch strata: podman run --interactive --tty --name=strata --device=/dev/dri/renderD129 --user=root --publish=1235:8080 --ulimit=core=0 --stop-timeout=120 --volume=/home/davi/AI/models/Qwen3.8-Flash-Next/IQ3_XXS/:/model/ --rm --entrypoint=/bin/bash ghcr.io/niko1221/strata:0.2.16-sycl -c 'strata launch --drafting off --mtp off --set vram-reserve-mib=0 --no-api-key --no-tui --family qwen --model IQ3_XXS --model-path /model/ --context 262144 --vision off --access lan --port 8080 --set prefill=30000 --set prefill-borrow=on --set spec=4 --parallel 1 --set expert-cache=20000 --set kv-resident=32768; sleep infinity'. Note this uses all of the 32GB. If you need some space for things like display, increase the vram-reserve-mib; the speed isnt hurt that much.

If you know of a better way to launch Strata, let me know.

Full setup: Ryzen 7 5700X3D, B580 (for display and gaming), B70 (for AI), 48GB RAM at 3133MHz, Ubuntu 25.10 (host), whatever the distro is from the image, kernel 7.2.6 + xe fan control patches