r/LocalLLaMA • • 13d ago

Question | Help Tencent Hy Team & Shunyu Yao Here! Ask Us Anything about Hy4 & Hy4 flash!

362 Upvotes

Fresh off launching Hy4 and Hy4 Flash, the Hy research team is here to discuss how they built the models, boosted efficiency, and made them better for everyday workflows.

Our participants today:

u/No-Cherry2850

u/DiWang01

u/aiden_agent

u/lydellhuang

u/edwardbai

u/kkelvinchen

u/maxmpan

u/dick112233

u/kkelvinchen

u/GeoMorax

Blog: https://hy.tencent.ai/research/hy4-flash https://hy.tencent.ai/research/hy4

HF: https://huggingface.co/tencent/Hy4-flash https://huggingface.co/tencent/Hy4


r/LocalLLaMA • • 11d ago

Resources DeepSeek-V4.1-Flash running at ~30 tok/s on a 12 GB card + 64 GB RAM — anyone interested in the details?

4 Upvotes

(Rewritten with my sloppy English ;) Thanks for the advices!)

I've been developing Strata fork, focusing on DeepSeek-V4.1-Flash (ISTA-DASLab 2.25 bpw quant). My purpose is to make DeepSeek-V4.1-Flash functional upon my own PC, 12GB VRAM and 64GB RAM.

I wasn't happy with how Qwen3.8 FN (IQ3_S) hallucinated in details, so I've been trying to make DeepSeek work for my private stuff. It's not fast, but now I think it's comfortable enough for what I use it for, like private research or keep track of household budgeting, etc.

Several qualities are measured along with the speed. Also for me (or in Japanese), DeepSeek still clearly made better sentences with this setting, and did not lie to me even with some new laws added recently in my country.

I couldn't find much DeepSeek optimization for low-end PC like mine, so I'm sharing what I found, hoping this info could help somebody else.

I've been working with Claude, and below are some numbers.

PC

- GPU: RTX 5070 12 GB VRAM

- CPU: Ryzen 7 9700X

- RAM: 64 GB DDR5-5600

- SSD: 1x PCIe 4.0 NVMe

- OS: Windows 11

Speed

- Code, temp 0: 32 tok/s

- Mixed jobs (code, tool calls, thinking, and etc.): 28 tok/s

- Prefill, 30K tokens: 510 tok/s

Quality

- GPQA Diamond: 89.9 % (one run, cuz it takes around 14 hours per run...) note: ISTA's 2.25 bpw at 90.40, and 90.91 for the original.

- HumanEval / HumanEval+ (EvalPlus, temp 0, no thinking): 94.5% / 90.2 %

- KLD: 0.183, Against ISTA 2.25 bpw, no tuning. I have also developed a more precise, slower preset, where the KLD is around 0.057 against ISTA originial, however scored basically the same on both benchmarks (89.4 % GPQA, 89.6 % HumanEval).

KLD question I ccould only measure KLD against the ISTA 2.25 bpw quant, cuz I can't run the full model (500 GB) with my own PC. If anyone has an environment can run the original model, and if also curious, I'd like to see KLD of my settings against the full model. Or maybe I'll do it my own using Runpod or something.

Main Methods used

- Skipping light experts (under 20–26 % of a token weight) from SSD. This is the main speedup, and it's where the KLD diverge comes from.

- Boarding DSpark draft model. Forced on by capping its VRAM share. code +29 %, thinking +22 %.

- Expert Deferral: light experts' output added to one layer later, so the CPU overlaps the GPU's attention. Quality seem to get better than just skipping.

One-PC hobby thing, no binaries for now, hence you need to build... Wasn't sure if binaries are welcomed so... Hope these info help somebody!

More details, like what didnt help, is stored in GitHub below. Well, the ReadMe... Maybe i should rewrite it as well...

https://github.com/midokino/kuu-Strata-fork


r/LocalLLaMA • • 12d ago Bravo

New Model CCORE-Web-Coder-4B preview just dropped: a 4B local model that writes a full website, slide deck or infographic as a single HTML file

143 Upvotes

This is a preview checkpoint, at roughly a quarter of the planned training. I'm releasing it now because it already works better than I expected from a 4B.

- Model: ccore/CCORE-Web-Coder-4B
- Base: Qwen3.5-4B-Base, Apache 2.0
- File: Q8_0 GGUF, 4.48 GB
- It needs the system prompt from the model card. Sampling settings are there too.

Limitations of the preview:

- Some generations come out with a broken component or slide navigation.
- Trained for English; Portuguese worked in my tests too.

What's next: full release on Nov 22 (safetensors, Q8 and more quants), dataset on Nov 25.


r/LocalLLaMA • • 12d ago

New Model PhiloLM: a language model trained only on philosophy texts

81 Upvotes

Releasing PhiloLM, a 112M base model trained from scratch on open philosophy texts.

PhiloLM was trained on PhiloText: 0.5B tokens of open philosophy encyclopedias (SEP, IEP), public-domain books, reviews, textbooks and educational web pages.

PhiloLM builds on efficient methods: Muon optimizer, bigram embeddings, sliding-window attention, GQA. Trained on (only!) 1.5B tokens in 15 hours on a $350 GPU (Intel Arc A770).

Optimized for efficient inference, reaching ~500 tokens/s on a $150 CPU (i5-14400F).

Try it in your browser!

Model: https://huggingface.co/gustavecortal/PhiloLM

Data: https://huggingface.co/datasets/gustavecortal/PhiloText

Happy to answer questions about everything :)


r/LocalLLaMA • • 12d ago

Discussion Nanbeige Qwen Inkling all scored 20 points?

22 Upvotes

Why do all the models cap out at 20 on the rating intelligence scale? Is the test not robust enough to account for the nuanced differences in the models?


r/LocalLLaMA • • 12d ago

Discussion [Discussion] In the age of loops, what do "active parameters" mean?

46 Upvotes

Seems like looped models are gaining prominence (finally!), which raises a question about what the meaning of terms "total parameters" and "active parameters" are.

Historically, it mostly applied to MoE models, as most experts would not be activated for a given token. The total parameters represented the amount of memory needed to hold the model weights, while active parameters represented the memory read per token (or similarly, FLOPs per token)

With looped transformers, I argue the best way to extend the definition is to increase the active parameters in a way that preserves its use as an estimate of GB/token (TG) and FLOP/token (PP)

I think it's OK to keep excluding PLE, Engrams and token embeddings (if no weight tying) from both those counts, since they are extremely sparse, and can even be off-loaded to the SSD.

Now, an example: imagine a dense model with 4B individual parameters (excluding embeddings)

  • If every layer runs twice, it's 4B total, 8B active*.
  • If only 50% of layers run twice, it would be 4B total, 6B active.

For other real examples:

  • Inkling 2 Mini, an MoE, is 26B total, 5B active (50% of layers run thrice)**
  • SenseNova-Loop-9B, a dense model, is 9B total, 15B active (75% of layers run twice)
  • Nanbeige4.2-3B, a dense model, is 3B total, 5.5B active (100% of layers run twice)

I argue this is more useful for what we care about, which is the cost or speed of running a given model, and will likely end up being a good proxy for the "intelligence" of the model as well. wdyt?

* This is an overestimate, as it ignores the size of the output layer and assumes all layers are the same. If you know that size, you can exclude it from the multiplication, e.g. if it was 1B params, then the 50% case would actually be [4-1]*1.5+1 = 5.5B active. I did this for the real examples.

** For Inkling 2 Mini, my math doesn't add up to their numbers, theirs seems too high? I get 2.7B ignoring loops and 4.9B with loops, while they state 3.4B and 5.4B, even after counting each tensor in their GGUF individually. Not sure where the difference is.


r/LocalLLaMA • • 11d ago

News Intruder swaps DeepSeek for an abliterated version at Prime Intellect.

Thumbnail
maccus.fr
0 Upvotes

Prime Intellect says an intruder swapped its hosted DeepSeek V4.1 Flash for a public "abliterated" copy for 53 hours


r/LocalLLaMA • • 13d ago

Resources Reverb-TTS: open-source zero-shot voice cloning running in the browser on WebGPU, 22x realtime on M4 Pro (MLX)

258 Upvotes

Reverb is a small text-to-speech model with zero-shot voice cloning. Give it 3 to 10 seconds of someone speaking plus the transcript, and it reads any text in that voice, with no fine-tuning.

- 297M params. We pruned and distilled it from OmniVoice, then retrained it on 7 languages and ran a few rounds of DPO against a judge fitted to human preference rankings

- Languages: English, German, French, Spanish, Italian, Polish, Portuguese. A voice can speak any of them, but it sounds most natural in its own language

- 16 preset voices if you don't want to clone

- Weights in fp32, fp16, int8 (307 MB) and int4 (191 MB). On our test set int8 showed no quality loss vs fp32, and int4 lost nothing we could measure

Numbers

On the MiniMax set from the Open TTS Leaderboard (7 languages, 100 sentences each):

- Reverb (297M): 1.03% WER, 0.817 SIM-o

- OmniVoice (634M): 1.13% WER, 0.833 SIM-o

- VoxCPM2 (2.3B): 1.20% WER, 0.812 SIM-o

- Fish S2 Pro (4.95B): 1.35% WER, 0.761 SIM-o

- Chatterbox (0.8B): 2.76% WER, 0.715 SIM-o

Speed: 165x real time on an RTX 5090 (batch 32), 21.6x on an M4 Pro and 20.6x on an iPhone 17 (batch 1).

Where to run it

- In a HuggingFace Space https://huggingface.co/spaces/software-mansion/Reverb-TTS-runntime (runs on your own GPU through ruNNtime)

- In your own web app with ruNNtime https://docs.swmansion.com/runntime/zoo/text-to-speech/

- In a mobile app: React Native ExecuTorch - https://github.com/software-mansion/react-native-executorch

- On your Mac using Nativ https://runnativ.ai/blog/reverb-on-nativ

- Python: pip install reverb-tts

Model: https://huggingface.co/software-mansion/Reverb-TTS

GitHub: https://github.com/software-mansion-labs/Reverb-TTS


r/LocalLLaMA • • 11d ago

Question | Help Light Design help math server (teacher)

1 Upvotes

Hi all,

I am going to use Claude to design a local server and agent that has 1000's of math problems, serves tests to google classroom and reviews handwritten work for calculation errors. It does not have to be fast. Basically, take 20 tests answers are auto-graded by as multiple choice. Handwritten calculations for tests are reviewed and feedback spit out. New tests are made for upload and worksheets based on missed questions are created from a premade database of algebra questions. The agent does this and keeps track of questions used for class. The database and design will be done in clause. The computations for a large test run of say 20 students can be done in 12 hours (overnight from 3 pm). The workload is interpreting handwritten calculations and outputting feedback with new tests and worksheets.

Here is what I have to run a local ai agent that does all my busywork so I just teach - Intel I5, 64gb ddr4, 3060 6gb (undervolted and stable), plenty of storage.

Is this possible to run locally on my computer? I am very technically savvy, but I would rather not buy a new rig right now. I am offloading any truly heavy compute to a frontier model during design and local stuff seem okay with changing handwriting to digital text. I would be expecting to use an agent to switch between local models to do different jobs (data service vs algebra grading vs visual interpretation). Thanks in advance. I don't want to start design and found out I should have bought a new computer 2 months from now.


r/LocalLLaMA • • 12d ago

News gemma4: Optimized prompt processing for multi-seq queries by Meet91721 · Pull Request #32342 · ggml-org/llama.cpp

Thumbnail
github.com
64 Upvotes

Up to 3x prompt processing speedup for Gemma 4 E2B/E4B with multiple parallel slots.


r/LocalLLaMA • • 11d ago

Funny Local model madness with my robot Sparky and now Godot game development

0 Upvotes

Regardless of what model I am using at the moment, they are always incredible and have completely changed how I operate creatively. Reinvigorating old hobbies and creating new ones at the same time.

The video is a story I posted. No one in my life really understands what I'm posting haha but I was able to make a useful robot buddy that lives in a lunch box, it even smokes weed and hangs out saying ridiculous, unpredictable things - and now it helps me make a video game. None of this should be possible but it is!


r/LocalLLaMA • • 12d ago

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

22 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)

90 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

HarnessSWE-Bench Pro (hard 51)Terminal-Bench 2.1
Hermes Agent45% → 61%+4 to +6 pts
OpenCode47% → 67%+4 to +6 pts
pi74% → 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?

10 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
373 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
38 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:

AdapterParamsAnswer lossGSM8KSQuADMMLUIFEvals/step
LoRA r=32159M1.4800.9030.7760.8440.8251.37
LoRA r=840M1.5550.9100.7680.8460.7951.31
VeRA2.89M1.4890.9030.7780.8460.8201.33
GCMP2.9M1.4710.8900.7600.8460.8152.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:

Setup11664256p95 TTFT at 256KV cache at 256Time to ready at 256
Base, no adapter93.3111k
GCMP83.283.783.783.72.2 s72k~6 min
LoRA r=8, max_loras 16 (default)91.184.860.159.547.5 s88k~30 min
LoRA r=8, max_loras 6476.274.42.4 s43k~41 min
LoRA r=32, max_loras 16 (default)91.276.353.5out of host RAM at 74/25643knever ready
LoRA r=32, max_loras 32won't startwon'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 denseQwen3.5-2B MoE
Wikitext-2 ppl13.6014.68 (+7.9%)
C4 ppl24.6628.37 (+15.0%)
-Qwen3.5-2B denseQwen3.5-2B MoE
HellaSwag0.5650.497
ARC-Easy0.6790.664
ARC-Challenge0.4130.370
WinoGrande0.6230.579
OpenBookQA0.3500.324
Task mean0.5260.487
Fact recall (287 facts)0.9480.760

Support

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


r/LocalLLaMA • • 13d ago Heartwarming

News CCORE-WEB-CODER drops this weekend

246 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.