r/LocalLLaMA • • 2d ago • Heartwarming 1 Bravo 1

New Model Unsloth: Qwen4 35B-A3B

https://unsloth.ai/docs/models/qwen4
665 Upvotes

114 comments sorted by

115

u/thoquz 2d ago

For those wondering about if they cut offensive cyber capabilities:

For cybersecurity, we filter data according to the specific purpose of each task, retaining data for defensive tasks such as vulnerability verification, detection, and remediation, while removing data for offensive tasks aimed at enhancing attack capabilities. For CBRN, we designed dedicated safety data and enhanced Qwen4's safety during the safety post-training stage.

102

u/SmartCustard9944 2d ago

FYI if you ask it to make a piece of software more secure, it will have to patch its vulnerabilities. Which means you can still find vulnerabilities this way. Not sure how much you can remove offensive capabilities and retain only defensive. It would be bad at defense if it doesn’t know how to threat model.

35

u/Useful_Argument_6490 2d ago

Feels like a CYA move. I don’t think they’re that committed.

10

u/murderfs 2d ago

You can know that use after free is bad and how to fix it, without knowing how to construct a rop chain to turn that into arbitrary code execution.

(Now, whether you can actually sanitize your training data enough that it can't figure that out, or make it so that you can't teach it how to exploit bugs in your context is another matter.)

11

u/reddit-editor 2d ago

I'm a bit slow, does this mean removed from training data from the beginning, or post-trained to remove these capabilities (that we may be able to abliterate back in)?

4

u/Acceptable_Home_ 2d ago

They nerfed cybersecurity in post training/fine tune phase

10

u/woct0rdho 2d ago

We can train it. I've tried a long time ago that 16G VRAM is more than enough to train Qwen3.6-35B-A3B, see https://old.reddit.com/r/LocalLLaMA/comments/1v29d4s/lora_over_gguf_train_qwen3635ba3b_in_16g_vram/

1

u/amejin 2d ago

Wouldn’t a rag pipeline and tool calling basically make what they did moot? Or is the assertion here that the model is trained against decisions to launch attacks?

1

u/InfiniteBlink 1d ago

It's not that it can't, it's that it won't.

1

u/amejin 1d ago

Took me 2 rounds to convince it I was the owner of the target doing pen testing. You can make it do whatever you want.

0

u/[deleted] 2d ago

[deleted] — view deleted comment

15

u/zdy132 2d ago

It's disappointing to know that i can no longer count on future open source models to help me grow mutant soldiers in my basement.

0

u/[deleted] 2d ago

[deleted] — view deleted comment

1

u/zdy132 2d ago

Honestly I was only half joking.

One thing I really love about LLMs is that they are patient teachers. While mutant soldiers are obviously unlikely, I do see myself playing with more wetware stuff in the future, and LLMs would play an essential role in assisting and teaching me to do that. I have no intention to do any harm, just wanted to see if some brain neurons (from Cortical Labs, for example) can be used to control robots in some better way than conventional computers.

95

u/tiffanytrashcan 2d ago

Damn it's really here, GGUFs and all.

63

u/Borkato 2d ago

I’m running it as we speak and its personality alone is like a breath of fresh air. It scored faster than any other model I’ve tested and higher too. We’re eating good boys.

20

u/thoquz 2d ago

Better personality than Gemma 4?

40

u/Borkato 2d ago edited 2d ago

Early impressions are that it has much more character than earlier qwen, tho likely not nearly as good as Gemma, because Gemma is the goat. But it’s better than earlier qwen. Tries harder, feels like it’s actually trying instead of just rehashing what it’s heard before. It’s less sloppy than earlier qwen. There’s still slop tho. Won’t do porn but if you prompt it with a completion it will slightly lol.

Edit: after further testing it is very slop filled lol. But that might be my generic system prompt rn

44

u/karawkow 2d ago

First thing this guy did was start testing porn lmao

7

u/TheSunOfSanSebastian 2d ago

There's an abliterated gguf already lol

11

u/florinandrei 2d ago

I think Gemma 4 is better described as eloquent. It's great at natural language. Qwen speaks like an engineer.

Personality-wise, they are all servants of the user base.

4

u/Borkato 2d ago

Hmm, i will try it, one sec!

3

u/lolwutdo 2d ago

Does it still overthink?

11

u/Borkato 2d ago

Not enough time to know for sure, but what I can tell, not nearly as much. It doesn’t argue back and forth about whether or not it should read a file for example.

5

u/lolwutdo 2d ago

Hell yeah, we can probably lööp the model too

1

u/11oser 2d ago

ime so far it underthinks, even on xhigh

1

u/ambassadortim 2d ago

Are you talking about role playing stuff

1

u/Borkato 2d ago

Partially but not really

1

u/CommanderKnull 1d ago

How are you downloading the unsloth from hf? When I try to download it, it errors out with "RuntimeError: Task error: File reconstruction error: CAS Client Error: Request error: HTTP status client error (429 Too Many Requests)"

I updated hf, updated and rebooted my pc with fedora 44 and it still doesn't go through. Only thing I can think of is that I'm not signed in but it has never been an issue before

1

u/Borkato 1d ago

Hmmm just normal hf download command worked for me

1

u/CommanderKnull 1d ago

hmm then idk, I will quantize it myself but I really like the unsloth .gguf files as they just work without hassle

1

u/tiffanytrashcan 1d ago

I'd certainly try feeding it an HF api token before going to those extremes.. Just to avoid the huge fullfat safetensors download..

Have you tried curl? They still offer the command so it's officially supported to some degree. Might have better results.

1

u/CommanderKnull 1d ago

I did but did not really run, I tried via hf again today without changing anything and it downloads well now. Probably my download got cancelled since so many people downloaded it and hf will generally deprioratize people without AUTH tokens

1

u/InfiniteBlink 1d ago

I'm loading now, I finally decided to create a personal golden benchmark based on how I use my local AI (Hermes agent harness, AI agent, qwen 3.8 27b q8 inference) I have a TTS/stt setup as well with a ton of recorded audio that the golden test can use to compare the responses from whatever model I loaded. I'm curious to see how Q4 does. I have dual 3090s so it's gonna eat up more space than the 3.8

10

u/genpfault 2d ago edited 2d ago

Got UD-IQ4_XS to fit on a 24GB 7900 XTX (Vulkan backend), did ~125 tok/s with a 61% acceptance rate over ~38k tokens on a C++ variant of the classic "spinning heptagon" prompt.

Invocation:

$ llama-server --version
version: 1.1.0-dev (build 12973, commit 59b716523)
built with GNU 11.4.0 for Linux x86_64

$ llama-server --host 0.0.0.0 --port 2000 --no-warmup \
-hf unsloth/Qwen4-35B-A3B-GGUF:UD-IQ4_XS \
--spec-type draft-mtp --spec-draft-n-max 2 \
--load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 \
--cache-type-k q8_0 --cache-type-v q5_1 \
--image-min-tokens 1024 -np 1 --ctx-size 128000

Larger quants/kv-caches spilled to RAM and generation dropped to ~60-80 tok/s.

EDIT: Prompt:

Write a C++ program (using the SDL2 library's SDL_Renderer system for graphics and the GLM library for vector math) that shows 20 balls bouncing inside a spinning heptagon:

  • All balls have the same radius.
  • All balls drop from the heptagon center when starting.
  • Colors are: #f8b862, #f6ad49, #f39800, #f08300, #ec6d51, #ee7948, #ed6d3d, #ec6800, #ec6800, #ee7800, #eb6238, #ea5506, #ea5506, #eb6101, #e49e61, #e45e32, #e17b34, #dd7a56, #db8449, #d66a35
  • The balls should be affected by gravity and friction, and they must bounce off the rotating walls realistically. There should also be collisions between balls.
  • The material of all the balls determines that their impact bounce height will not exceed the radius of the heptagon, but higher than ball radius.
  • All balls rotate with friction, with a radius line to indicate the spin of the ball.
  • The heptagon is spinning around its center, and the speed of spinning is 360 degrees per 5 seconds.
  • The heptagon size should be large enough to contain all the balls.
  • Implement collision detection algorithms and collision response etc. by yourself.
  • All code should be put in a single C++ file.

3

u/thoquz 2d ago

Can you share the prompt too? I'm guessing it is a SDL/SFML based one

2

u/genpfault 2d ago

Sure, edited my comment to add it.

2

u/thoquz 21h ago

Thank you!

3

u/thoquz 2d ago

I noticed you did --cache-type-v q5_1, does it run slower than if you did --cache-type-v q4_0 ?

2

u/russlixx 2d ago

if that ran slower, try use FA_ALL_QUANTS (or do selective pair) when building llamacpp to make sure the quants covered by FA

2

u/genpfault 1d ago

Maybe a smidge slower? Tried q4_0 and it did ~130 tok/s.

129

u/BookProper9115 2d ago

It beqwens.

27

u/daily_spiderman 2d ago

The beqwenning beqwens…

6

u/darknecross 2d ago

No, nowyqwens.

0

u/MargridGalleta79 2d ago

does the a3b active parameter count actually feel fast on consumer cards or is memory bandwidth still the bottleneck

19

u/FrozenFishEnjoyer 2d ago

Currently trying it and its been great. Rig is 5070 TI + 64GB DDR5 ram using Q4_K_XL with no vision.

With MTP through LlamaCPP with Q8 KV cache and 256k context, I am geting 45t/s on Cline.

It's doing damn good. I am surprised by the quality it's pulling out.

31

u/Rangizingo 2d ago

Downloading for strix halo. This bitch is gonna fly. 

11

u/CryMoreT_T 2d ago

Btw how is the pre fill on that?

63

u/OcelotMadness 2d ago

Never ask a woman her age
Never ask a Strix or Mac user their prefill speed...

7

u/philmarcracken 2d ago

the pp... it flops...

1

u/Rangizingo 2d ago

Is this a thing people don’t share for some reason lol? That’s stupid if so. I shared mine in the reply to OP

0

u/MrPecunius 21h ago

M5 Pro/64GB Macbook Pro user here ... getting ~1k prefill on fairly large prompts (> 10k) and 60+ t/s for prose with MTP on. Q4 GGUF in LM Studio/llama.cpp

4

u/Rangizingo 2d ago

Right now about 750-800 but I’m using my own custom engine and literally just patched it with the llama.cpp updates it and have barely had time to benchmark and test it and optimize. I get 1500+ on 3.8 flash next so I’ll easily get that and beyond I’m sure after I do some kernel tuning! 

Decode is about 50-60 tok/s for thinking and writing, running full precision on this. I get 70-100 on flash next. So I’m sure it’ll be that and more. 

4

u/bushizell 2d ago

You're a PREFILL 😭

16

u/DontShadowbanMeMate 2d ago

Classic question, I'm running a very cursed setup of 3080ti+2080ti with (thankfully) 64gb of DDR5; I've never tried any of the Strata stuff (or forks like PolyStrata). Any pros recommend the best way to run this for my system?

14

u/Spectrum1523 2d ago edited 2d ago

No inference engines but llama.cpp have support for it at this moment

I'd give it a day or two, and then see. Ninfer has been very good to me, but people also like strata.

If you wanna try it right now follow the unsloth guide and run it with llama.cpp

9

u/codepoet82 2d ago

It’s coming asap. My inference engine will have support including native kernels for your 2080 in the next point release. Hopefully in under an hour, as I’ve been prepping for the drop since the llama.cpp merge earlier today.

2

u/DontShadowbanMeMate 2d ago

Thank you so freakin' much.

2

u/codepoet82 2d ago

Since I said in an hour, I've got a first verision of 1.2.9 with limited support ready at https://github.com/ksanislo/saguaro

Saguaro is mostly a fork of Project Maya to extend proper support for older hardware tiers such as the 2080 and 1080 (and their datacenter equivalents of the Tesla T and P series) But it also provides some heavy customization for highly parallel use if you have the hardware (think vLLM, but strata-esque).

This currently still only supports a single card at a time, layer split to utilize both cards together has been held for 1.2.10 since it wasn't ready yet, and I wanted to get something put together near the timeframe I'd promised. The next followup version or two will bring int8 K/V and the full 1M context with it as well, it'll just be another few hours as the code gets wrapped up and everything gets card time to be properly tested.

3

u/philmarcracken 2d ago

im running q8 no problem on something similar, 64gb, 3080ti 12gb, and 3070 8gb. Ubuntu server headless. llamacpp latest pull.

8

u/danielhanchen 2d ago • Heartwarming

Thanks OP for posting! More optimizations and better quants coming soon

13

u/QwhenFN 2d ago

The Qwhen is now...

15

u/RepulsiveRaisin7 2d ago • Mindblown

I qame

5

u/yoracale llama.cpp 2d ago • Heartwarming

NVFP4 quants coming soon!

4

u/SkyFeistyLlama8 2d ago

I'm seeing weird repeated outputs that it somehow manages to pull out of.

Faster coding than Qwen 3.8 27B, about as good, but it continues the Qwen tendency to do good at coding and STEM and be absolute shitgibbons at everything else. For those other use cases, Gemma 4 remains the goat.

2

u/Creative_Strike8202 2d ago

what about finance and documentation management?

2

u/SkyFeistyLlama8 2d ago

Try them both

10

u/AAPL_ 2d ago

ya boy said fuck it and got an rtx pro 5000 72GB. she is a beaut

7

u/Ruined_Passion_7355 2d ago

I'm new to local AI, what specs would I need to run this 35B model?

13

u/ThatOldEngineerGuy 2d ago

Can't speak for 4.0 because im at a bar listening to karaoke but the 3.6-35b-a3b_q4 i ran with 4G vram on a 32g system with around 10tps. So im hopeful

3

u/karawkow 2d ago

Killer, enjoy

2

u/TT_207 2d ago

Depends what you mean by run

It'll start on a Tesla M10 I bet. I had 3.6 35B running a few days ago but tks is sub 10 on eval and 10 minutes to prefill via Hermes

-7

u/TheDailySpank 2d ago

16GB VRAM + 64GB RAM is where I'd start.

11

u/Acceptable_Home_ 2d ago edited 2d ago

Well, even with 8GB vram and 24GB ram im getting decode speeds of 28tk/s at 64k ctx window which is pretty usable for me and pretty good for the setup tbh, with your specs you might get above 100tk/s easily

But entry is drastically easier and doesn't need 16GB vram at all

edit- now im getting 28tk/s after cutting 64ctx window to 54.5k and making some more optimisations "-c 54512 -fa on -ctk q8_0 -ctv q8_0 -t 6 --port 8080 --jinja --temp 0.95 --top-k 20 --top-p 0.95 --min-p 0 --repeat-penalty 1 --presence-penalty 0 --host 0.0.0.0 -ngl all --load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU -np 1 -ncmoe 40 -b 2048 -ub 1024 -tb 12 --moe-cache-mib 3200 --moe-cache-cpu-share 0.90"

1

u/Sweet-Jump1024 2d ago

What quant are you using?

2

u/Acceptable_Home_ 2d ago edited 2d ago

Unsloth's Q4_K_M

0

u/TheDailySpank 2d ago

That's impressive.

2

u/Acceptable_Home_ 2d ago

ikrr, 28tk/s is the same as i used to get with qwen3.6 35B A3B

1

u/TheDailySpank 2d ago

That's very usable. I'm getting ~55 on a 4060-16Gb +96Gb @3200. Q3 xl

2

u/Ruined_Passion_7355 2d ago

you're joking, those are exactly my specs.

FINALLY, MY PRAYERS HAVE BEEN ANSWERED

0

u/karawkow 2d ago

Did somebody say unified memory?!

💻

3

u/Haku_09 2d ago

Downloading for my little Lenovo P3 tiny G2 with RTX Pro 4000 Blackwell sff, let's it murders my system

3

u/808phone 2d ago

does it work with LM studio?

3

u/Dizzy-Zebra9522 2d ago

Thank you so much. Great day for new models people didn't expected. Thank you Qwen and China.

3

u/wren6991 2d ago

To be honest I've started avoiding Unsloth quants at launch because they seem to have their own llama.cpp fork, and a couple times I've found their quants aren't compatible with the upstream support that actually got merged

2

u/promaster9500 2d ago

I am running this with x2 3090s and 64gb DDR5. It is insanely fast and good.

1

u/DryDevelopment4848 2d ago

Care to share details?

2

u/Character-Second781 2d ago

Qwen4-35B-A3B

Model size 57B params

4

u/technoman88 2d ago

20b n-gram and 2b mtp

4

u/LetrixZ 2d ago

Too big compared to previous 35B :/

22

u/Eresbonitaguey 2d ago

You can offload the engram to ssd

3

u/iamapizza 2d ago

How can we do this on llama cop?

8

u/yensteel 2d ago

--override-tensor "per_layer_token_embd.weight=CPU"

2

u/iamapizza 2d ago

Nice thanks

3

u/cristoper 2d ago

I haven't tried it yet, but unsloth gives llama.cpp flags for offloading engram here:

https://unsloth.ai/docs/models/qwen4#run-qwen4-in-llama-cpp

3

u/LetrixZ 2d ago

Is something that can be done right now or do I have to wait for support? I'm on Mac btw. 

4

u/Eresbonitaguey 2d ago

Omlx has reported support for the model although I haven’t checked if they have enabled ssd offloading. It is implemented for flash next so I assume it will be supported here within a few days.

3

u/EvolvingDior 2d ago

I'm waiting for what the Austrians bring us.

2

u/LurkingLooni 2d ago

The Austrians?

5

u/EvolvingDior 2d ago

ISTA-DASLab!

0

u/TV4ELP 1d ago

Historically a very mixed bag those Austrians

1

u/AffectionatePlastic0 2d ago

Great job, they have made it in less than an couple of hours

1

u/iamapizza 2d ago

I'm wondering will there be any MXFP from unsloth or are those dropped going forwards?

1

u/explorigin 2d ago

Now is the perfect time to post a torrent!

1

u/WarageM 23h ago edited 21h ago

I can't write posts since I'm new here, but I'm working on my own llama.cpp harness for a while and I wanted to share it. It made in pure C, it has 4-10MB memory usage. It's all about token optimalization. Clearing tool results from context, chat compression, session loop, optimalized file reading, built-in tools, skills/agents, mcp support, copilot mode, prompt lib, long term memory and a lot of other stuff. Windows only, but it's portable since it's in C.

Example from my tests: I split a 1MB html/js file into logical units with 32k context, or ran a 1,6m context coding task with only 65k context model without quality loss.

Read the readme if you like:
https://github.com/merlinwarage/LlamaC

I also made it's companion app, a LLama.cpp runner with multi build support, N8N style agentic node-graph, etc
https://github.com/merlinwarage/Llama-Runner

1

u/BagelRedditAccountII 2d ago

The becoming has begun

3

u/randy24681012 2d ago

I just became

-1

u/-WhateverDude 2d ago

are you guys ready for all vibecoded strata/basalt forks to flood the sub? "i'm running qwen 4 35b on 16gb ram + gtx 970 and getting 320 tk/s"

1

u/Z3ROCOOL22 1d ago

Is there a file to abliterate this version: Qwen4-35B-A3B-UD-Q4_K_XL gguf? (STRATA)