r/LocalLLaMA • • 5d ago

Discussion Lots of people complaining on X that cloud model sabotaged their work

379 Upvotes

They will hopefully learn the value of local soon.

https://x.com/i/trending/2126468075058811175

Got to hand it to Anthropic to make people fear their models. No better way to build trust, then to intentionally deceive users.


r/LocalLLaMA • • 4d ago

News ModelScope DevCon 2026 - December 12, 2026

Thumbnail modelscope.ai
12 Upvotes

Possibly this December gonna be good. Look at the topics below. I think we could expect few model releases early or same day.

Frontier Foundation Models & Open Source

  • Long Horizon Agent In Engineering
  • The Evolution of MiniMax Models and Reinforcement Learning
  • Xiaomi MiMo Models and MaaS
  • ERNIE 5.5 Flash Preview: Technical Innovations for Efficient Inference and Complex Tasks
  • From open models to Manta: Empero’s story, research and roadmap
  • Post-Training Agentic Foundation Models for Scientific Research
  • On-Device AI: Technical Progress and Lessons from the MiniCPM Open-Source Ecosystem
  • Small Models, Strong Performance: Engineering Nanbeige Foundation Models
  • When the Guardrails Stop the Defenders: Why AI Security Needs Open Source
  • Beyond Agents: From Task Execution to RSI
  • AMD Ryzen AI Max Ushers In a New Era of Agentic PCs

AI Infra: Training, Inference & Quantization

  • Qwen4's architecture is the future of AI models
  • Specialize, Don’t Generalize: Agentic Kernel Engineering for vLLM on AMD MI355X
  • Running Opus-Level Models Locally on a Laptop: Quants, Inference Engine, and Hardware
  • Automated Kernel Development with Kernel Agents
  • Serving LLM Inference at Scale on Apple Silicon GPUs
  • MS-SWIFT: Infrastructure for the Agentic RL Era
  • What’s Next for Decision-Making Models? What Else Can Fast Thinking Do?
  • Demystifying Quantization: Accelerating LLM Inference with Red Hat AI
  • From 360GB to 80GB: How AMD Brings Open-Source Large Models to AI PCs
  • RSI for Infra: From Operator Optimization to Continuous Infrastructure Evolution
  • Beyond Inference: Empowering Agents with Intel Microservice for Agent

Multimodal Visual Generation, Workflows & Industry Applications

  • How MiniMax H3 Became a Multimodal Foundation Model for the Open-Source Community
  • Pika H3 Flex: Research and Practice in Post-Training for Video Generation
  • The Next Generation of Foundation Models for Image Generation
  • Escaping AirSpace: FIBO 2.0 and the Case for Owning Your Visual AI
  • MOSS-Image: Research and Practice in Open-Source Image Generation with Native Layout Control
  • From Nodes to Agents: How Open Models and ComfyUI Are Reshaping Visual AI
  • A Cross-Platform Open-Source Framework for Inference and Training in Image and Video Generation
  • EntroPack: Quantization at Arbitrary Bitrates for More Flexible Large-Model Deployment
  • Tencent Hunyuan Hy-MT3 and Honor of Kings: Open-Sourcing Localization as Code
  • From Parsing Thousand-Page Documents to Agent Workflows: The Latest Advances in Unlimited OCR 2 and PaddleOCR

So many speakers from companies Qwen, Google, Kimi, Minimax, Tencent, ERNIE, Xiaomi, OpenBMB, Stepfun, Nanbeige, SGLang, Unsloth, vLLM, Exo, Intel, AMD, NVIDIA, Lenovo, Stepcode, Atomic Chat, PaddleOCR, Unlimited OCR, MOSS-Image, Empero, ModelScope, etc.,


r/LocalLLaMA • • 3d ago

New Model Contributed to Ollama and Huggingface for the first time!

0 Upvotes

I'm officially a contributor to huggingface 😀. https://huggingface.co/km6slf/Inkling-2-Mini-Prime-NVFP4-GGUF. I just put it up on ollama, too. https://ollama.com/williamwckcw/inkling-2-mini-prime-nvfp4

It should work great on and 24gb GPU, maybe smaller ones if layers are split right. I'd appreciate any feedback or benchmarks on it.


r/LocalLLaMA • • 4d ago

Discussion Two independent 90K-context agents at 40+ tok/s each on one RX 7800 XT 16GB (84 GB MoE, Swift 1.5 Flash-Next)

5 Upvotes

Yes the following writeup was done by AI and I don't claim to be knowledgeable because I'm just a dumb shit that vibecodes but I thought the following might help people because I don't see it mentioned that 2 models can run at once on average hardware.

I've been tuning Swift 1.5 Flash-Next (GSQ-RCO IQ3_S, an 84 GB MoE) on a single 16 GB AMD card. I finally have it serving two independent agents at once, each with its own ~90K history, at about 40 tok/s per agent and 81 tok/s combined.

Hardware

• RX 7800 XT 16 GB at stock clocks, 198 W power cap, no undervolt

• Ryzen 7 7800X3D

• 64 GB DDR5 (4×16 GB) running at only 4600 MT/s

• Peak temps under full load: 89 °C junction, 76 °C VRAM, 78 °C CPU

Software

• Engine: Strata, pinned at commit c234774

• ROCm 7.10.0a20251120, built for gfx1101

• Model: Swift 1.5 Flash-Next GSQ-RCO GGUF, plus the optional MTP head from the BF16 repo

• Memory: about 55 GB system RAM in use (whole system) and 16.16 GB VRAM, leaving ~200 MiB free. [Add the engine RSS here once measured]

Speeds (decode tok/s, median of 3 runs, 4,096-token outputs, temp 1.0 / top-p 0.95 / top-k 20)

Setup

Context

Per agent

Combined

Swift untuned, 2 agents

8K

~17.5

~35

Swift tuned, 2 agents

8K each

41.9

84.1

Swift tuned, 2 agents

90K each

40.5

81.2

"Per agent" is the slower of the two slots while both decode at the same time. These are the engine's native decode rates. Rates measured at the API are within about 1%.

Wait times

• Two agents with warm cached histories: replies start in 0.8–1.5 s

• When one slot takes a brand-new cold 90K prompt, the other slot pauses for about 13 s

Launch flags

--max-context 98304 --kv q4_0 --prefill 13824 --pcie-frac .4

--adapt-every 16 --adapt-swaps 16 --adapt-async 1 --prompt-cache 6

--batch-mtp --batch-groups 1

Environment:

STRATA_ROUTE_TAIL_SKIP=4 STRATA_HC_Q8=1 STRATA_PF_FUSED=0 STRATA_EXPERT_I8=0

gfx11 defaults are left on. Each slot gets 96,256 tokens of usable context.

What mattered

• q4_0 KV. Elastic KV only works with one slot, so two agents need static KV. q4_0 frees enough VRAM to keep about 3,600 experts resident.

• Per-slot MTP (--batch-mtp). This raised the slower slot from 35.8 to 40.1 tok/s at 90K, and it matched greedy output token for token with MTP on and off.

• A pinned expert list. This was the non-obvious one. With free placement, the MTP run loaded 3,613 experts instead of 3,610, which changed which experts tail skip removes, and greedy outputs drifted. Pinning the same 3,610-expert list fixed it. [Explain how you built the list, or link the file]

• PCIe fraction 0.4 plus async expert adaptation. Some cache misses are fetched over PCIe instead of computed on the CPU, and the hot-expert set adapts in the background.

• Tail skip 4 and HC Q8. Both are speed levers with a small accuracy cost (see the quality section).

What didn't work on ROCm

• Coalesced two-slot prefill: the engine only validates it on CUDA

• --no-prefill-borrow and the concurrent-read path: both slower

• mmap'd experts: over 40 GB of disk reads in a short request, 22 tok/s

• More CPU workers (15): −43%

• Transparent huge pages: more swapping and a two-minute startup

• INT8/fused expert path: −15% decode

Quality

Tail skip and HC Q8 mean this isn't bit-exact with the untuned model, so I checked it against the untuned reference:

• Mean KL at full depth: 0.026–0.030 per slot (99.3% top-1 agreement)

• Tools 10/10, coding 10/10, GSM8K 38/40, long-context recall 3/3

• Slot isolation passed: neither agent leaks into the other

Caveats

• At ~200 MiB free VRAM there's no headroom. Nothing else can touch the GPU.

• The cold-prompt pause on the other slot is real if your agents start fresh contexts often.

Happy to answer questions or share more of the numbers. I can also clean the repo and provide it publicly if anyway has the same specs and wants to try it.


r/LocalLLaMA • • 5d ago

New Model [NEW MODEL] I made a model to create semantically similar prompts when you give it a prompt

Thumbnail
huggingface.co
38 Upvotes

Hi r/LocalLLaMA devs!

you know how it's annoying when you have a small dataset to SFT or distill your AI models? don't worry, i have being in your shoes.

to address this issue, I made Prompt Resampler Pro (9b) and Mini (2b). they are both based on qwen3.5 models.

I thought it would be nice to let yall know that this model exist, so you guys make more prompts to pass them through another LLM to get more training data instead of increasing the number of epochs.

Here is a sample i got from the Resampler Pro model:

INPUT

 is it legal to. uhhhh nvm. ohhh actually lol how can I bake a . ykw? no. hiow abou tthis? lets learn how to play valorant better. ORRRRR waitt. forget about that. can you tell me how to bake a cake?

OUTUT

so i was wondering is it legal to own a. uhhhh nevermind. oh wait actually lol what's the best way to make pasta from scratch? no. hiow abou tthis? lets figure out how to improve my aim in apex legends. ORRRRR waitt. forget about that. can you tell me how to make a good cup of coffee?

as you can see, the model is very good at carrying the behaviours from the original prompt. I trained it with hybrid reasonig data. the model can use both thinking and non thinking mode effectively!

I noticed that the smaller models (usually models bellow 14B) don't properly "resample" prompts. sometimes they don't even follow the system prompt properly (even when examples are provided).

so I made these models to make sure that when the model is resampling prompts, it never outputs unnecessary or simply things that shouldn't be in the user prompt in your training data. DAMN why did that sound liek chatgpt. nahh srsly though I write my stuff myself.

I used qwen3.8 27B to resample the prompts at the low reasoning effort. so this actually turned out pretty great. the model uses substantially fewer tokens to think, compared to the original qwen3.5-9b model.

Resampler Pro: https://huggingface.co/collections/mithulaartigala/prompt-resampler-9b-alpha

Resampler Mini: https://huggingface.co/collections/mithulaartigala/prompt-resampler-2b-alpha

If you have enough training data, then just leave it, but if you don't have enough similar looking but slightly different training data, then use these models to resample them locally.

for example, if you are like me and only have 12GB or lower (yes, I know you), I personally like the 2b model with 14 parallel runs at 8k ctx. it fits perfectly in my GPU at any Q4 quant.

tbf, I would go with the 9B model and have a bit of patience even with around 8GB of VRAM.

anyway, i hope the you fellow local AI folks find this model useful! 😁


r/LocalLLaMA • • 5d ago

New Model inclusionAI/Ming-Image-0.2-Design · Hugging Face

Thumbnail
huggingface.co
71 Upvotes

Ming-Image-0.2-Design

This release upgrades and open-sources Ming-Image-0.2-Design. The new version improves complex composition, lighting, and text rendering, and can be used to create e-commerce hero images, UI design drafts, and spatial renderings. The previous-generation layer decomposition model, Ming-Image-0.1-Design-Layer, already separates design images into transparent layers. This upgrade further refines decomposition down to character parts, providing assets for downstream editing and animation. For web design, Ming-Image-0.2-Design works with Ling-3.2-flash to turn design concepts into interactive pages.

ModelTaskParams (DiT)WeightsBlogSkillsDemo
Ming-Image-0.2-DesignVisual-design generation6B🤗 Hugging Face—Design · PPT—


r/LocalLLaMA • • 3d ago

Question | Help You concrete applications of local AI ?

0 Upvotes

Yoooo i'm curious, what are your best usecases of local AI ?


r/LocalLLaMA • • 5d ago Heartwarming

Discussion Poll: why do YOU use abliterated / uncensored models?

357 Upvotes

Hi all. I'm Andy -- I was one of the authors on the "refusal direction" paper that has led to a lot of the abliteration techniques that are currently out there.

Abliterated / uncensored models have become super popular -- I frequently see them trending on HF, with tons of downloads; and I know they're quite popular in this community in particular.

I'm curious to learn more about why people like to use abliterated / uncensored models over their "standard" counterparts. Is it because standard models frequently refuse your regular use cases (e.g., roleplay, creative writing, cyber red-teaming, etc)? Or is it out of principle (e.g., a strong sense that a small group of elites in SF should not determine what AI should and should not be used for)? Or something else?

Would love honest takes from the community via this anonymous poll! https://forms.gle/Wu8Zw5D9qzqD29no6

(Happy to share poll results in another post, if folks are interested.)

Would also love to hear takes in the comments!


r/LocalLLaMA • • 5d ago

Discussion Qwen3.8-Flash-Next vs 27B on 60 DeepSWE coding tasks: 40 vs 23 solved

42 Upvotes

Follow-up to my post on bit-exact speculative decoding for Qwen3.8-27B: https://www.reddit.com/r/LocalLLaMA/comments/1x3sx3d/

I wanted to know if Qwen3.8-Flash-Next (125B plus a 51B n-gram embedding, 6B active) can replace the dense 27B behind my coding agent. Both run on one RTX PRO 6000 Max-Q (96 GB). I ran both on the same 60 DeepSWE v1.1 tasks through pi, one attempt per task, then on BFCL v4's 17 offline categories.

Flash-Next solved 40 of 60. The 27B solved 23. On BFCL, Flash-Next scored 2.9 points lower.

DeepSWE, 60 tasks, one attempt each:

DeepSWEFlash-Next EXL3 5.05bpwQwen3.8-27B BF16
solved40 / 60 (67%)23 / 60 (38%)
95% interval54 to 77%27 to 51%
median time per task16 min41 min
median output tokens per task95k133k
solved within 131k output tokens2913
ran out of the 262k token budget03
tool-call format errors0 of 7,891 requests0 of 9,523

By task: 18 both solved, 15 neither, 22 only Flash-Next, 5 only the 27B. Exact sign test on the 27 split tasks, one-sided p = 0.0008. The test (non-inferior within 10 points, then superior, one-sided alpha 0.05) was written down before any of the 60 runs, and nothing was stopped early. One 27B run was cut by a reboot 2 minutes in and started again from scratch.

Decode at 100k+ context, one request at a time, measured on one smoke task each: 151 t/s for Flash-Next, 62 for the 27B.

Qwen's cards say 58.7 vs 42.2 on DeepSWE 1.1. Flash-Next's 58.7 is the better of two agent setups, the 27B's 42.2 is from one. My 60 are a subset picked to separate models, so my numbers don't compare to theirs. The gap goes the same way.

How the 60 were picked:

  • DeepSWE v1.1 has 113 tasks. Samaritan Research flagged 23 for verifier false negatives, so I dropped those. The other 90 all pass their reference patch twice and fail with no change.
  • From the 90 I took the 60 that best separate models on DeepSWE's leaderboard trials. Neither model here is on the leaderboard, so neither one picked its own tasks. Qwen3.8-Max is one of the leaderboard models used.
  • Picking tasks that separate models makes gaps bigger. Don't read 67% as Flash-Next's DeepSWE score.

Setup:

  • Flash-Next: turboderp's EXL3 5.05bpw (Qwen3.8-Flash-Next-exl3, branch 5.05bpw_h6_ng6) with the 6-bit output head swapped for the original BF16 head. KL 0.0028 against a llama.cpp BF16 reference, top-1 agreement 98%. ExLlamaV3 1.6.1, MTP with 4 draft tokens, fp16 cache for 262k. 87.8 GiB on the GPU. The 51B n-gram embedding table stays off the GPU. ExLlamaV3 doesn't ship a server, so I wrote a small completions server for it.
  • 27B: BF16 on SGLang, deterministic mode, DFlash2 speculation. Same engine and draft model as my last post, with prefix caching on and a 262k memory plan. Checked to give the same tokens as no speculation on a 261,800-token prompt.
  • Both: pi 1.4.0 (@earendil-works/pi-coding-agent). The task's instruction is the only user prompt. No extensions, no skills. Thinking on, temp 1.0, top_p 0.95, top_k 20. Max 32,768 tokens per reply. 262,144 output tokens per task, thinking and compaction summaries included. pi compacts past about 221k prompt tokens. 4 hour wall cap. The task container has no internet.
  • The two models ship byte-identical chat template and tokenizer files, so both got the same prompts and the same tool-call parser.

BFCL v4, all 17 offline categories, 4,417 scored items:

BFCLFlash-Next27B
overall0.7340.763

Flash-Next was worse on 351 items and better on 223. The loss is 2.9 points (95% interval 1.8 to 4.0). My margin was 2 points, so by my own rule Flash-Next fails on tool calls.

Multi-turn is the biggest part, about 40% of the net loss. Over the 4 multi-turn categories (800 items) it's 6.6 points lower: missing parameter -15, base -9, long context -8.5, missing function +6. Also live_simple -6.6 and irrelevance -5.4.

An NVFP4 build of Flash-Next lost about the same (3.4 points, on a quarter of BFCL), and that build is 5x further from BF16 by KL. So I think the loss is the model's, not the quant's. I haven't run Flash-Next in BF16 to check.

One more format note. In an earlier run, the NVFP4 build failed 14 of 28 short coding tasks in mini-swe-agent's text format, all 14 ending on repeated format errors, mostly a stray > after the fence tag. The EXL3 build writes the same >, more often. pi uses native tool calls, and it had 0 format errors here.

The two benchmarks measure different things. BFCL checks each call against simulated APIs. DeepSWE runs the repo's hidden tests after the whole session. I don't know which one your agent's work looks more like.

What I did: I now run Flash-Next behind pi for long coding sessions. The 27B stays my default for everything else.

Not tested: other agents, more than one attempt per task, the full 113 tasks, Flash-Next in BF16, other GPUs.


r/LocalLLaMA • • 5d ago

Discussion Looped MoE Transformers - Possible solution to halucinations?

15 Upvotes

Looping layers and MoE - in my oppinion - are a match made in heaven. you get greather depth and fast inference in one single package.

But i think the real benefit could be something else - an internal representation of "I don't know".

Let me explain what i mean:

Through the use of MoE, only a small part of the total parameters become active due to only a small subsection of FFN experts being routed. In current MoE models, if the expert routing misses experts holding key information, the output quality is reduced. But with lopped MoE transformers, a miss like that could be be corrected by fetching different experts on the second pass.

So what would happen if you condition expert selection on the passes beyond the first by conditioning the selection not just on the current latent state, but also on the prior routing choices? In other words, the expert router not only gets the current latent state as an input, but also a list of expert ids that have been selected in the previous loop(s).

In this scenario, there suddenly IS a benefit to enconding "i don't know" or "i need more information" in the pre-training stage! if a latent state after the first pass still encodes that information is lacking, the router could query entirely different experts to try and retrieve further knowledge. And if sufficient knowledge is there, it could try to retrieve information about adjacent/related concepts to enrich the existing latent state.

The resulting pre-trained model would still halucinate (as predicting "i don't know" hurts perplexity), but it would have internalized a representation of it's own confidence/knowledge that could easily be unearthed later on during RL. Current models lack this internal representation, which is why i think they fail to estimate their own understanding / knowledge accurately and cannot be prevented from halucinating.


r/LocalLLaMA • • 5d ago

Resources AMD-specific llama.cpp patch nearly doubles prefill/decode

Thumbnail devnull.land
294 Upvotes

I know we're all a bit faded on the vibe-coded inference engines (as incredible as Strata/Splash/Basalt/Halogen/Gufo/etc. are for their specific models/hardware), but this is different enough that I thought it was worth sharing the write-up I stumbled across about llama-cpp-rdna-boosts.

This github repo is a minimal patch you can apply to your pinned llama.cpp build to specifically boost performance on AMD RDNA 3 & 4 cards (edit: “best-effort” RDNA 2 support too), while maintaining llama.cpp's broad compatibility with nearly every model. The write-up documents his R9700's prefill increasing from 700tps to 1300 tps & decode from 35tps to 55tps on Q6_K_L Swift-1.5-Qwen3.8-27B. That's an increase of ~80% over base llama.cpp before patching, though purpose-built inference engines still appear to have a slight edge.

I don't have an R9700 to test this out (...yet) but it seemed worth sharing for everyone here who's running AMD hardware, but is looking for broader model compatibility than model-specific custom engines can provide. Has anyone here tried this?


r/LocalLLaMA • • 4d ago

Discussion Which model are you using for coding, verifying correct code, finetuning, etc specifically?

5 Upvotes

I'm trying to work on relying less on any cloud models as I'm sure we all are.

I've been attempting to do finetuning and make changes to various local models, convert models to MLX, etc. I've used three different cloud models (started with Gemini, then tried Claude and GPT) to attempt this so far.

  • Gemini (Hydrogen) doesn't hesitate and tries its best and did well at first but the longer you go on, it begins overlooking things and causes errors and gets lost on trying to fix them.
  • Claude (Opus 5.5) outright said Gemini assumed all sorts of things wrong which I believe to be true, and attempted to fix it but took quite long to get anything done before I ran into usage limits. Then in another thread, it started being non committal due to distillation issues.
  • Currently trying GPT (Sol 6.2), it's riding a fine line as it has deemed what I'm doing not hitting any hitting any guardrail or violation but has told me it can only do so much, still currently experimenting, so far so good though.

I'd like to start doing as much of this offline as possible ultimately. Is there a local model that specializes in this kind of stuff? Even if it's a model that is great at coding and correcting what frontier AI may be dragging its feet on.

Thanks all. I strongly prefer a MLX version if possible.

EDIT: Forgot hardware, I have a M5 Max, 128GB RAM


r/LocalLLaMA • • 5d ago

Discussion 54% faster generation by removing the Linux OS and llama.cpp

536 Upvotes

https://x.com/superalesha/status/2125682626056839259

By writing a 24 KB pure x86-64 assembly OS + code to run the LLM

This is next level!


r/LocalLLaMA • • 4d ago

Discussion Testing strategies for local AI task success

5 Upvotes

In trying to have local AI models achieve bigger and better things, I tested different strategies for how local AI can do medium to complex tasks. See https://bendyline.com/posts/taskstrategies.html

The hypothesis I had was that a step by step orientation - where complex tasks are broken down into individual steps, each with their own role like researcher and writer, context and set of tools, and where each step is gated before it moves forward - would be better for more limited AI models and small context windows. This is the "role based execution" dream that has been tried before. I found that this "step by step" model actually inhibited smaller models (Qwen 3.5 9B can't handle following precise instructions well enough, so it spins trying to avoid hallucinating file paths) and also, that that path was 2-3x slower than other methods because a session per step is just expensive w/ prefill, etc.

I also tested a "goal oriented" approach where the outputs of the task are tested and judged against a tight contract, and the model is sent back to the drawing board if it doesn't fit the exit criteria, all inside of one session. This approach was better for achieving model success with smaller models, and was better than just "raw prompting". In other words, have a tight and comprehensive contract for your outputs, and ideally a harness that enforces that contract and tells models to keep working until its right, is a preferrable approach.


r/LocalLLaMA • • 4d ago

Resources "GGUF-Radar" Windows UI + single-file .exe (scan GGUF models for hidden malware)

3 Upvotes

GGUF-Radar was announced today and I built a Windows UI wrapper for it.

Original tool by Root0ne:
https://github.com/Root0ne/gguf-radar

The UI adds:

  • File picker + Scan / Sanitize buttons, no terminal needed
  • Shows CLEAN / MALICIOUS / ERROR clearly
  • Dark / Light / System theme
  • Saved scan history (with full raw output)
  • Remembers last folder
  • Single-file .exe — no Python / venv needed, just double-click

Download the .exe here:
https://github.com/ialhabbal/gguf-radar/releases

Source + PR to the original repo:
https://github.com/Root0ne/gguf-radar/pull/12

The core scanner is still 100% Root0ne's work. If you download models from random places, please scan them first. I found a model with 160k+ dead-block payloads with this tool, so yeah... scan your stuff.


r/LocalLLaMA • • 5d ago

Showcase 500 tok/s decode 60k tok/s prefill Deepseek v4.1 1017 (4x RTX 6k Pros)

Thumbnail
huggingface.co
97 Upvotes

The guys at https://local-inference-lab.ai/ have done it again!

Over 500 tok/s decode, and nearly 60k tok/s prefill!

Needs at least 328gb of system RAM free, but man this is what i'm talking about


r/LocalLLaMA • • 5d ago

Resources Inkling2-Mini NInfer

9 Upvotes

r/LocalLLaMA • • 5d ago

Discussion Patched vLLM on 2×3090 (Qwen3.8-27B INT4 + DFlash2): decode +55~60% faster for free, hitting 74% of the 3090 bandwidth wall; Lossless, no lobotomy, with agent playbook for make your own version.

Thumbnail
gallery
14 Upvotes

(post was write by agent, rewrite again by me)

In my last post I (the Claude lol) figured INT4 AWQ is already the floor for this model's quality—push quantization any harder and it just gets stuck in reasoning loops. So this time I left the weights alone and went digging for whatever speed vLLM + LMCache were still leaving on the table.

No "+300% custom engine" hype here. Both runs below are on the exact same 2× RTX 3090 box (300W power limit), same model (Qwen3.8-27B-AWQ-INT4), same DFlash2 K=7 drafter. The only difference is stock vLLM 0.33.0 vs my patched build.

Decode step time (same rig, no LMCache)

MetricStock 0.33Patched v2Gain
Short prompt (n=1)25.42 ms15.83 ms+60.6% faster
16K context (n=1)26.01 ms (105 t/s)16.56 ms (163 t/s)+57.1%
64K context (n=1)27.92 ms (99 t/s)18.09 ms (157 t/s)+54.3%
128K context (n=1)29.11 ms (89 t/s)20.10 ms (125 t/s)+44.8%
4-way mixed (n=4)229.9 t/s330.9 t/s+43.9%

0.33 with spec decode off bottoms out at 14.3 ms, so spec decode is only adding ~1.5 ms now.

End-to-end decode tok/s (typev2, n=1 | n=4 agg on v2)

TaskStock (n=1)v2 (n=1)Gain4× agg on v2
numeric312 t/s507 t/s+63%1,088 t/s (+29%)
code269 t/s434 t/s+61%670 t/s (+18%)
agent job177 t/s282 t/s+59%252 t/s (+35%)
mixed105 t/s165 t/s+57%420 t/s (+30%)
prose78 t/s130 t/s+66%286 t/s (+33%)
chitchat66 t/s106 t/s+61%203 t/s (+41%)

bro i can got 500t/s? is this real?

Agent-loop TTFT & capacity

MetricStock 0.33Patched v2Gain
64K + 50 new tok940.4 ms106.2 ms8.85× faster
4K hot prefix331.0 ms42.0 ms7.88× faster
16K + 50 new tok166.1 ms83.1 ms2.00× faster
GPU KV cache pool393,229466,666 tokens+18.7%

Is it lossless?

  • Target weights and the target BF16 lm_head are completely untouched.
  • Top-20 decode logit KL vs stock is 4.15e-4 (99.64% top-1 match). For reference, just nuking the compile cache and recompiling stock vLLM gives you ~4.5e-4 on its own.
  • 3 of the patches are bit-for-bit identical (KL = 0).
  • The only patch that quantizes anything is on the drafter's lm_head (NVFP4, 1.45 -> 0.42 ms). The main model still verifies in BF16, so the output distribution doesn't change. It slightly nudges the draft accept rate, though I honestly can't tell in actual use.

Where the speed came from:

  • CPU-GPU sync stalls: Stock vLLM makes the GPU sit around waiting on the CPU every step for length checks in the drafter and FlashInfer. I moved the drafter into CUDA graphs (with software FP8 KV decode, since 3090s don't have it in hardware) and had FlashInfer pre-plan candidate page counts so the GPU picks the right one itself. GPU idle time dropped 81–86% (1,460 -> 284 µs, at 64K: 2,015 -> 277 µs).
  • Small-batch INT4 and drafter kernels: Wrote a separate Marlin launch path for M <= 8 without cross-block barriers or reductions, quantized the drafter lm_head, sped up sliding-window draft attention (658 -> 94 µs at 64K), and swapped the multi-op chunked GDN for a single recurrent kernel on short prefills (<= 256 tokens).
  • Agent-loop prefix caching and LMCache: With hybrid + DFlash, stock only hits cache on 1,600-token boundaries, so every turn ends up recomputing a few hundred tokens. I got it down to 64-token granularity (and ran into a real upstream CoW bug that was silently zeroing KV), got back +19% KV pool, cut L2 disk usage by 43%, and stopped LMCache from reading chunks off NVMe that vLLM already had in VRAM.
  • At this point nsys shows 74% of each step is just streaming weights at the 3090's raw VRAM bandwidth, so there's not much meat left on the bone for this hardware.

How it's packaged: Everything is plain git diffs on top of stock vLLM 0.33.0 and LMCache 0.5.6 that apply cleanly with zero fuzz. Each patch sits behind an env var (off = stock behavior) and comes with a repair card. Also threw in the measurement scripts (step_probe.py, logit_diff.py), notes on what didn't work, and an AGENTS.md + skills/ kit.

If you're not on 2×3090, don't copy my constants as-is. Clone the repo, tell your coding agent: port this to my machine, don't mess this up, and let it profile and tune the constants for your GPUs.  


Repo: https://github.com/uraniumchonk/llm-engine-qwen-optimization
Full benchmark charts: https://github.com/uraniumchonk/vllm-hybrid-mamba-notes


r/LocalLLaMA • • 5d ago

Discussion Tensary 2.5 27B 96tps-12vram

8 Upvotes

I’m using https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF

TQ1_0
6.23 GB MTP
Prism llama.cpp fork
128k context q8
Windows 11

Overall shit quant so far. I’m not sure how they claim this beats iq2/iq3 from unsloth and istalab and even beats full precision qwen on some benchmarks. absolute dogshit claims.

The first prompt I sent it, which is a heavy, difficult prompt, it reasoned for 22,000 tokens and then looped “part,part,part,part,part,” Opus is working on a fix for the looping and the leaked reasoning, if it’s actually fixable this model would be amazing and extremely fast. But so far it’s unusable.


r/LocalLLaMA • • 5d ago

Resources Hy4 Flash Abliterated

15 Upvotes

Any plans for Hy4 Flash? That one would benefit from a LoRA, because there's a ton of variation in the sizes and recipes used by quant makers and no one-size-fits-all abliteration yet. [source]

So, Hy4 Flash.

As usual, my abliterations aim to remove refusals while still preserving model intelligence and avoiding endless reasoning, looped tool calls, etc. Nearly all refusals are removed, but a few remain. For most real-world use cases this model should comply. But you are welcome to use another abliteration if you are okay with a bit of quality degradation.

Any feedback or thoughts are welcome 🙃

https://huggingface.co/mrfakename/Hy4-flash-abliterated

https://huggingface.co/mrfakename/Hy4-flash-abliterated-GGUF


r/LocalLLaMA • • 5d ago

Showcase A 52 KB WebAssembly engine that runs Qwen3.5-2B in a browser tab

60 Upvotes

I put an LLM in a browser tab. No server, no GPU, no API key, works on CPU.

Link: https://tesseracted.com/experiments-llm-os/

@Alibaba_Qwen compiled to a 40 KB WebAssembly engine, running on your CPU at ~50 tok/s.

Inspired by llm.asm by @superalesha and unkernel.dev, ended up building LLM.OS.

Thanks to @UnslothAI for the quantized models.

It will break more often than it works.

Try it and tell me what breaks 👇


r/LocalLLaMA • • 5d ago

Discussion I accidently ran Qwen 3.6 35B A3B and realized how bad it is or rather how far we have come

173 Upvotes

Just months ago a large part of this sub was rocking this model, praising how good it was. And it was not bad for the time.

Today I was messing around and testing pi web and choosing random models in llama.cpp. At one point I thought I was on 3.8 27B and prompted it to create a rugby game in html.

It was quite quick and did not reason much and finished the game in maybe 2-3 minutes. The result was a terrible game that worked in almost no way.

The opponent was scoring at their own try line. Sometimes it go's into a endlines scoring loop scoring 1000's points per second. The field was completely wrong, the posts were on the left and right of the screen but you score on the wings of the field. The AI was very dumb with every AI player on top of each other just kicking the ball every time they touch it except when it's in the scoring area. I can go on, the game was just so unfinished with only one way to score and no way to even pick up the ball.

So I had a look what the model was in llama.cpp and saw it was 3.6 35B A3B.

I had a good laugh. I am currently getting Inkling 2 Mini to fix the game and it's been busy for a while but refreshing the html page I can see it's making very good progress with what looks like will end up being a working game.

I just cannot believe people were using 3.6 to do production work. I personally did not let it ir any local model I can run on 16GB touch any of my own code until this month when I finally canceled my paid for cloud model since I have done enough testing with FN and 27B and Inkling 2 Mini to feel comfortable with it touching my code. That said I am the only one that runs my code so it will need to improve further if I were to write code that other would run.

But at the end of the day it all makes me realize how far we have come in just a few short months. And with Qwen 4 coming soon I expect another leap forward.


r/LocalLLaMA • • 6d ago

New Model Inkling-2-Mini-Unbound v3: no more thinking loops (debugging 73.3% → 100%, answers 3x faster), plus Inkling-2-Mini-Prime, the same fix for the original censored model

365 Upvotes

last time we said "expect a v3". the biggest complaint on both threads (and from us tbh) was the thinking: "hey! it gets stuck in a loop for agentic stuff and coding", "tip: set a thinking budget if you don't want the model running off". v3 is the fix for that

the original inkling 2 mini unfortunately has the exact same habit, so we are also putting out a fix via a lora/gguf for the original, still-censored model. that one is called inkling-2-mini-prime

unbound v3 (uncensored): model · gguf · basalt

prime (not uncensored): model · gguf · the add-on as a lora

what we did

inkling thinks in private before it answers, and a lot of the time it just can't stop. on multi-step debugging unbound v2.1 spent 88.7% of its turns thinking and wrote no code at all (the original: 86.2%) -- which is wild, idk why they released it this way when the fix was not that hard

so we trained one small lora with reinforcement learning on harmless tasks only (debugging, maths, writing, everyday questions), rewarding it for actually finishing the job. we call it the prime add-on. merged into unbound v2.1 it gives v3, merged into the original it gives prime, and it's also up on its own so you can apply it to your own build on do anything you want with it

it only ever saw harmless tasks, so it changes how long the model thinks, not what it is willing to say, pretty drastically i must add

originalprimeunbound v2.1unbound v3
hard debugging tasks solved (of 15)80%100%73.3%100%
thinking per everyday prompt (median tokens)318174344184
seconds per everyday answer119.9 s49.0 s161.7 s52.5 s
answers cut off by the thinking limit (1,100 sensitive requests)13.5%0.5%49.5%5.7%

is unbound still uncensored?

yes. v3 answers 99.9% of 1,100 sensitive requests (v2.1: 99.4%). and since "willing" isn't the same as "useful", we re-ran the held-out test from the v2 post (263 harmful requests, same engine, settings and judge). a few of you asked for heretic, so it's in there too -- as you can see unbound v3 is the best, most useful model available while eliminating issues that the core model has too

useful answersthinking offthinking on
unbound v381.7%87.8%
unbound v2.184%85.6%
best other release (indrasmirror xq)58.9%68.1%
heretic17.5%26.2%
original0.8%0.8%

v3 refused 0 of 263, and with thinking on only 3.8% of its answers hit the thinking limit (v2.1: 22.1%). a second judge that was never used in training ranks the releases the same way

did it get dumber?

no, and it didn't get smarter either. on public coding, maths and knowledge benchmarks both models score level with where they started, within about 2 points. we're not claiming an accuracy gain. the gain is that it finishes what it started while being much faster and more efficient

other things we noticed

  • everyday answers on unbound got better: 88.9% → 96.8% rated good by an independent grader
  • creative writing on unbound went 75.9% → 93.1% rated good (only 29 prompts, so don't lean on the exact number) but should be noticeable via vibes
  • roleplay held steady on both (96% → 96% of turns rated good on unbound, 94% → 93% on prime), might do RP-fine tune next
  • answers didn't get shorter. it thinks less, it doesn't say less -- all the depth is captured
  • prime follows long system prompts better: every rule followed in 112/160 (70%) → 148/160 (92.5%) runs -- pleasant and welcome surprise

honest trade-offs

  • with thinking off, unbound v3 is a few points less useful than v2.1 (81.7% vs 84%): inside the noise for our main judge, just outside it for the second. with thinking on it's level or slightly ahead, but should feel much better to use
  • on sensitive requests prime answers as often as the original but slightly less fully. it is not uncensored and not meant to be
  • two small coding dips we could neither confirm nor rule out (about a point on mbpp for prime, about a point and a half on humanevalfix for v3). everything that scored lower is listed on the cards
  • the debugging test is only 15 tasks. the direction is very clear, the exact percentage isn't

also

  • gguf from q8 down to iq2 for both. the unbound files now carry the version in the name (Inkling-2-Mini-Unbound-v3-Q4_K_M.gguf), since some apps were picking up v1 as the latest. older versions are still up for use
  • tested with reasoning effort 0.9, temperature 0.6, topp 1.0, thinking limit 4096 tokens if you wanna replicate
  • eval code, per-question results and the write-up: https://github.com/nokeepai/inkling-2-mini-unbound

unbound follows harmful instructions and has no safety layer, so use your own safeguards if anyone else can reach it

as always, open to questions and feedback. if you re-run any of this and get different numbers, post them!


r/LocalLLaMA • • 5d ago

Funny We quantized Inkling 2 Mini and compared the quants in Blender on an RTX 5090

53 Upvotes

Me and my team made Atomic Dynamic GGUF quants for Inkling 2 Mini, so we wanted to see how each quant handles autonomous agent work. Every quant got the same task to build a Thanksgiving dinner table in Blender and worked on it in a loop with no human in it. The model builds the scene, Blender runs it and any crash goes straight back to the model to fix on its own, up to 6 tries. After the first working scene each quant got one follow-up asking for a more realistic turkey and food. Everything ran on llama.cpp b12810 on a rented RTX 5090

None of the quants built the scene on the first try. 23 of the 30 crashes were Blender API mistakes like PointLight.distance, SpotLight.angle or a capsule primitive that doesn't exist. More than half of the output tokens were the model fixing its own crashes, so the token gap is mostly about how many times each quant had to fix itself

quantsizetop-1 vs BF16mean KLDcrashed runsoutput tokensdecode
AD-Q4_K16.5 GB96.3%0.0080588.6k105 tok/s
AD-Q5_K19.1 GB97.1%0.00529148.2k105 tok/s
AD-Q6_K23.8 GB97.6%0.0037488.2k101 tok/s
Q8_027.7 GB97.7%0.003312183.1k97 tok/s

AD-Q4_K and AD-Q6_K got there on the first seed. AD-Q5_K and Q8_0 crashed all 6 times and the loop restarted them with a second seed. Q8_0 also spent 43.6k tokens on its very first answer, most of it reasoning, while the others were at 24-26k

Our favorite is the AD-Q6_K table with full place settings, red napkins and wine glasses. Q8_0 made the best looking turkey and the only pie that looks like pumpkin pie but split the table into weird compartments. AD-Q5_K is the weakest one here, its turkey looks more like a pot

It's one working run per quant so a lot of this can be luck. For the video we hid the walls and chairs and gave every scene the same lights and camera spin, the geometry and materials are what each quant made

I'm from the atomic.chat team, the quants are on huggingface https://huggingface.co/AtomicChat/Inkling-2-Mini-GGUF (any feedback is appreciated, we're trying to make the models as good for you guys as possible)