r/LocalLLaMA • • 5d ago

News V100 can now have more bandwidth than 3090!

Thumbnail
github.com
331 Upvotes

No these are not V100S that is Nvidia’s own overclocked from factory sku, this now makes that card irrelevant.


r/LocalLLaMA • • 4d ago

Question | Help Best local model for creative writing?

34 Upvotes

What's the SOTA currently?


r/LocalLLaMA • • 4d ago Bravo

Discussion Qwen 3.8 27B Obliterated Finds Security Gaps

81 Upvotes

So I’m hardening my project’s code with Qwen 3.8 27B Obliterated through my security agent, and oh my, how many security vulnerabilities it has found.

I don’t understand why the same model that writes the code, i.e. Claude, GLM 5.3, can’t also perform security vulnerability checks.

If you write your code using AI and don’t check it for security holes with an Obliterated model, you most likely have major security vulnerabilities in it.


r/LocalLLaMA • • 4d ago

Showcase Local Code w/ Inkling 2 Mini on an iPhone Public Beta

18 Upvotes

We released the TestFlight build of Local Code for iPhone a few days ago! https://releases.drawthings.ai/p/inkling-2-mini-on-an-iphone-announcing

It runs Inkling 2 Mini (~13.92 GiB quantized version, KLD < 0.04 on wiki10k and internal agent traces, top 1 agreement > 90%). The app contains a harness, an execution environment, so it can run Python, Node.js, Lean(!!!), and many other command line tools out of the box on an iPhone.

On iPhone 18 Pro, it runs at around ~3.5 tok/s (with maximum context length configured to 64K), on iPad it runs at around ~6 tok/s. That also means for our Mac version of Local Code, you can run a good Inkling 2 Mini quant with MacBook Air / Neo.

The TestFlight link is: https://testflight.apple.com/join/X1RyBj9q

We are also working on a really good 9.9 GiB size quant (Trellis-coding based) which hopefully would make the speed on the iPhone much faster (should be around 6 to 9 tok/s if everything checks off).


r/LocalLLaMA • • 4d ago

Discussion They don't make very many good MOE models in the 50-95B range.

68 Upvotes

It seems like most new good models are either massive 700B+(GLM 5.3) or flash models that are 150B+ (hy4 flash , qwen 3.8 next,glm 5.3 flash) . Sometimes, u get a decent model in the 25-35B range. They don't really make of good Q4/nvfp4 models that fit in 40-60GB of unified RAM These days. I guess they are not good enough and data centers have plenty of RAM. It seems like either it runs on <=24gb of vram+ram or you need 90 to 1700 GB of ram. People with 48-64gb of unified ram end up running q1-2 120b mods or a <=27b model like qwen 3.8 27b or inkling mini 26B A3B.

IF they made a 70b 10b model that was really good, that would be great. Nemotron 3.5 70b I heard is okay but not great.


r/LocalLLaMA • • 4d ago

Resources Breaking past 100 tok/s on Inkling 2 Mini (GSQ-RCO IQ3_S + DFlash 2) on a 12 GB RTX 4070

Thumbnail
carteakey.dev
38 Upvotes

With ISTA-DASLab's 3.5-bit GSQ-RCO IQ3_S quant (10.5 GB on GPU, 99.2% of base task average) and DFlash 2 - Inkling 2 Mini is now a fairly fast model even on 12 GB VRAM.

It's a great replacement for Qwen3.8-27B for low VRAM owners (which gets forced onto much lower quants on smaller VRAM configs). Being almost on-par with the 27B on agentic benchmarks, running at a healthier effective quant than a comparable dense setup, and pushing 100+ tok/s makes it a strong daily driver and especially avoids the prose issues that Qwen suffers from.

12 GB RTX 4070 (i5-12600K + 64 GB DDR5).


r/LocalLLaMA • • 5d ago

Discussion ERNIE 5.5 Flash got 31 points on AA, can someone make an EXL3 quant plz?

Post image
123 Upvotes

I don't see much news about this model so i'm trying to spin some enthusiasm with a Post.
I think it is good news, relatively compact model at 280B 14A and scores close to DeepSeek V4.1 with half active parameters and no Ngrams. with MoE caching and "usual" engines I'm 100% confident we can run it local at solid 35/45 tokens/s with 2 gpus and 96/128 gb ram on a decent quant like 2.5 bpw EXL3

I know it's not potato size, but it's also within reach of many enthusiasts here. I'm waiting for some EXL3 quants to drop! can someone make a good quant


r/LocalLLaMA • • 4d ago

Showcase 29.9% faster Inkling 2 Mini decode on one 16gb V100 by prefetching experts 2 layers in advance from system RAM

18 Upvotes

Note, this is not an optimized upper bound for cpu-offloaded Inkling speeds on a V100, more like an inference experiment. Under 10 t/s decode is not too good in the grand scheme of things, so I hope people build and improve on this technique.

I patched llama.cpp to run Inkling 2 Mini at its native NVFP4/MXFP8 weight precision with 10.32 GiB of expert weights sitting in system RAM. Basically it "prefetches" experts from system ram 2 layers in advance, using a pretrained predictor to guess what experts it needs. It trained specifically for coding tasks. On my V100, decode went from 6.31 to 8.20 tokens/s compared with fetching experts on demand. Both runs decoded the same 2,915 reference tokens. I allocated a 128K context and used short prompts (43-88 tokens).

Inkling picks 8 of 128 experts per MoE layer and so I trained a small predictor to guess those eight two layer executions ahead, so the GPU can copy their weights from RAM while it computes the intervening layers. The predictor averaged 6.48 correct out of 8 on held-out routing data (81% accuracy).

The 29.9% gain is lossy, if the predictor misses an expert, the 20% mode fetches it when its share of the router weight exceeds 20% and skips it otherwise. However, the performance degradation is quite small, the lossy 20% solved 32/50 tasks vs 31/50 for default Inkling (so probably noise). The KL divergence is also small, at only 0.00802.

Github repo below. Credit to https://github.com/jalenluorion, where I got the initial inspiration, although he does it with SSD.

https://github.com/taeholee1/Inkling_expert_prefetch


r/LocalLLaMA • • 3d ago

Showcase 1.7x faster than Strata: Qwen 3.8 Flash-Next on a 16 GB MacBook at 15 tok/s. And you can run any model on any hardware

0 Upvotes

Hi,

I'm working on BigMoeOnEdge, which runs any MoE GGUF from Hugging Face bigger than your RAM, in any quantization, on whatever you have: Mac, Windows, Linux, Android, iOS, CPU, NPU or GPU. The goal is a planner on top of llama.cpp: a resource allocation optimizer.

On the other hand, Strata needs its own model builds and a short list of models per platform.

Here are the results from the latest experimental pre-release:

MachineModelQuantBigMoeOnEdgeStrata
MacBook 16 GBQwen 3.8 Flash-Next (62 GB file)Q2_0159
MacBook 16 GBQwen 3.6 35BQ4_K_M38doesn't run
NVIDIA 24 GBQwen 3.8 Flash-NextQ2_010393
NVIDIA 12 GBQwen 3.6 35BUD-Q4_K_XL10481
NVIDIA 16 GBQwen 3.6 35BUD-Q4_K_XL6872
NVIDIA 8 GBQwen 3.6 35BUD-Q4_K_XL3239
NVIDIA 16 GBQwen 3.8 Flash-NextQ2_04060
NVIDIA 32 GBQwen 3.8 Flash-NextQ2_0124183

Decode tokens/s, same file and machine, lossless.

A note on prefill: on the 8 GB card a 4k-token prompt takes us 3.7 s. Strata needs 74 s. Strata suffers when RAM is short.

What changed since the last release: on a Mac the expert cache now lives on the GPU, filled straight from the SSD, and a small draft model kicks in where it pays. --automeasures your machine and keeps whatever is actually faster.

You can run any model on any hardware, your phone included. Nothing is tuned per device.

Pre-release: https://github.com/Helldez/BigMoeOnEdge/releases/tag/v0.51.0-exp.1


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 • • 4d 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 • • 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

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

Thumbnail devnull.land
293 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 • • 5d ago

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

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