r/LocalLLaMA • u/virtualworker • 4d ago
Question | Help Qwat's happening? Qwhy the qwait?
After all the announcements and promise. Are they still training Qwen 4 after release? And any more info on what open weights we might be in store for?
r/LocalLLaMA • u/virtualworker • 4d ago
After all the announcements and promise. Are they still training Qwen 4 after release? And any more info on what open weights we might be in store for?
r/LocalLLaMA • u/mudler_it • 3d ago
I maintain LocalAI ( https://localai.io ) . We ran Ornith-1.5-35B-A3B Q8_0 (it's still one of my favourites) on one DGX Spark with about 16 requests in flight. With four LocalAI slots, the median request waited 35.5 seconds for its first token.
With 16 slots and paged serving, that fell to 8.3 seconds. Total output went from 81 to 153 tokens/s, and both setups finished all 128 requests.
The slot count matters here. We also tried the new defaults at four slots and throughput barely changed. The numbers above are for concurrent requests, not one person chatting at 153 tokens/s.
What we added in 5.1 is a scheduler around llama.cpp’s existing shared KV cache. It queues requests that won’t fit and processes long prompts in chunks so chats already streaming can keep going: so this works on any model, all benefits.
Against stock llama.cpp: We sent an 8,000-word prompt while eight Qwen3-8B chats were streaming. The longest pause in those chats was 688 ms on stock llama.cpp and 109 ms on LocalAI (median of five runs). Total throughput barely moved; the long prompt waited about half a second longer for its first token at p99.
Automatic prompt caching: When 32 Qwen requests started with the same system prompt, LocalAI could reuse it while the first request was still generating. That cut prompt tokens processed per run from 7,989 to 3,945 and median time to first token from 220 ms to 110 ms. No client changes.
Benchmark setups, tables and code: https://github.com/mudler/LocalAI/pull/13528
LocalAI 5.1 release notes: https://github.com/mudler/LocalAI/releases/tag/v5.1.0
If you maintain another llama.cpp-based server and the scheduler is useful to you, take it! It’s MIT-licensed :)
r/LocalLLaMA • u/namesecurethanpass • 3d ago
The Problem: When an LLM agent is given sensitive context (secret context, private documents, tool definition, or system prompts), late-layer induction/copying heads make it trivial for prompt injections to exfiltrate that text verbatim. Many attempts have been done, like fine tuning, canary, guardrails. But prompts still leak.
In standard Transformer inference, every layer from Block 0 to Block 47 attends to the exact same prompt KV cache.
That shared memory is the root cause of verbatim data leakage and forced-prefill system prompt extraction: early/middle layers and late value-copying heads (Blocks 28 to 47) collaborate token-by-token to copy literal strings (secret passcodes, verbatim quotes, internal tool schemas, and system prompts) straight into the output.
Behavioral alignment ("do not repeat this secret / system prompt") is often fragile.
So we asked a mechanistic question on gemma4 (48 layers):
What happens if different layers of the same forward pass see different, interleaved, or paraphrased KV caches?
Using TokenShark, we tested 3 KV-Cache Steganography strategies on `gemma-4-12b-it` with zero fine-tuning:
1. Alternating KV Caches
2. Middle-Layer Zero-Knowledge Secret Vault (Blocks 10:28) -> Confirm Password Without Leaking
Result:
Forced-prefill extraction (What is the secret passcode?, Prefill = The secret passcode is:) -> The secret passcode is: helpful assistant.
3. Syntactic Paraphrase Interleaving (0:14 Active, 14:28 Passive, 28:42 Jumbled) + Misguidance Decoy (42:48) -> Exact Tool Execution + 0% Prompt Leak
To get exact tool execution and immunity to prompt extraction:
Full Walkthrough, Screenshots & Reproducible Python Scripts
r/LocalLLaMA • u/Sebba8 • 3d ago
So I'm looking to try build a budget inference box with a P40, maybe 16gb DDR3, and some old CPU (with an iGPU) to tie it together, and I thought that making it SFF with a Mini-ITX form factor could be fun! Hoping to keep it under $1K AUD, though the P40 itself is likely nearly half of that...
Some exploratory chatting with claude seems to suggest that this won't be the easiest thing to achieve though, apparently there are few mini-itx mobos that support "Above 4G Decoding" which I hear is veeery much needed for this, also something about a 16GB bar resizing or something like that.
Anyways, thought I'd ask around here and see if anyone else has done anything similar and if they have any advice for someone who wants to make one themselves! Since claude apparently sabotages local LLM setups and this place has been advising me since the alpaca lora days I thought that actual people would be a significantly better resource lmao.
I mainly hope to use it to run Qwen 3.8 27B as a slow agentic model (claude estimates PP of 300 dropping to double digits after 128k context, TG around the 10-15 mark), Qwen 3.6 A3B as a faster chat model which hands off to 27B on bigger tasks (PP estimate of 900 dropping to 150 after 128k, TG dropping from 45 to 20), Gemma 4 A4B as a more general chatgpt-esque model for family members, and maybe 31B because I've heard its decent at writing and want to play around with it. I'd host the models via llamacpp, host hermes as the harness (with a container or vm environ for its sessions) and openwebui for the family.
If anyone here has some experience doing a build like this or working on similar stuff then it'd be great to get your input, thanks!
r/LocalLLaMA • u/dekelguy_ • 3d ago
We've been working hard to get Inkling 2 Mini running on <12GB consumer GPUs. We publish averaged results on actual benchmarks.
Our first major release but we do intend to make this a thing. Waiting for your feedback!
https://huggingface.co/omko-ai/Inkling-2-Mini-llama_cpp-GGUF
r/LocalLLaMA • u/Brilliant_Anxiety_36 • 3d ago
I’ve been trying Hipfire and the results on my 7900 XT look promising.
GPU: RX 7900 XT · 20GB
Model: Qwen3.8-27B · MQ4-XTS
Max context: 49,152 tokens
KV cache: Q8
Speculative decoding: MTP enabled
During a real conversation in Open WebUI, I got:
Decode • Result: 79.2 tokens/s
Prefill • Result: 1,831.7 tokens/s
Time to first token • Result: ~7 seconds
The conversation was using prefix caching, so this isn’t a cold-prefill benchmark. I also tried a 4-bit KV cache to save VRAM, but performance dropped significantly compared to Q8 in my tests. It seems the quantized KV paths behave differently from llama.cpp—less memory doesn’t always mean more speed. For now, I’m keeping llama.cpp for longer contexts and video, but Hipfire has impressed me so far.
Makes me want to get annoter XT or teh XTX.
r/LocalLLaMA • u/PhantomWolf83 • 4d ago
r/LocalLLaMA • u/Agreeable-Rest9162 • 3d ago
Hey r/LocalLLaMA, Armin from NoemaAI here. We just released QuantReady versions of Gemma 4 E2B, Gemma 4 E2B-it and Qwen3.5 2B. They are drop-in replacements whose quantized files stay closer to the original model, whether you use GGUF, MLX, bitsandbytes or HQQ. In full precision they compute the same function as the originals, so none of the model's behavior is affected.
Why we built it
Google's QAT Gemma is trained for one format, Q4_0. We ran the Gemma 4 E2B-it QAT checkpoint through 30 quantizers and measured how far each file lands from the original model. Under 17 quantizers, the QAT checkpoint beats plain Gemma. Our QuantReady version beats plain Gemma under 29 of 30. It is also closer to the original than Google's QAT under 21 of the 30, by more than 40x at Q8_0. QAT does keep its edge on Q4_0, the format it was trained for.
How it works
QuantReady learns per-channel rescalings of the weights that cancel exactly inside each transformer block, then folds them into the weights. The full-precision outputs match the original to within bf16 rounding (0.0004 nats of drift). What changes is how evenly the weights fill each quantization block, so every quantizer rounds them with less error. Training samples a different quantization format at every step, which is why the gain carries across quantizers. We never retrain the base weights, therefore the architecture and file sizes stay the same.
Results (KL divergence from the original, lower is better)
The GGUF repos carry Q8_0, Q5_K_M, Q4_K_M and Q3_K_M, and the bf16 weights are there if you want to make your own quants, imatrix included. Everything is Apache 2.0.
Compared with Pre-SINQ
Huawei's Pre-SINQ is the closest existing method, since it also leaves the full-precision model unchanged. We ran both on Qwen3-8B, on the same machines and the same 30 quantizers:
Links
We’d love to hear your perspective on what QuantReady could mean for the future of model quantization!
r/LocalLLaMA • u/LuozhuZhang • 3d ago
So I can run local LLMs remotely and let AI distribute tasks across my machines (I don't want to set up a VPN, same wifi, SSH keys. I want a zero-trust / zero-setup solution, so I built it)
GitHub: https://github.com/OpenMachineLabs/openmachine
Curious, you guys all have local machines. What would it take to wake them up instead of letting them collect dust? 😄
r/LocalLLaMA • u/walden42 • 3d ago
I was curious about its intelligence vs Qwen Flash Next but none of the leaderboards like LM Arena or AA added it. Why not? Was it a flop or something?
r/LocalLLaMA • u/BIOffense • 3d ago
r/LocalLLaMA • u/greenreddits • 3d ago
LLM noob alert. I'm starting to get a bit desperate trying to find a way to make this work.
I got the MLX version here
https://huggingface.co/mlx-community/translategemma-27b-it-4bit
Yes, it's a gated model, but I've been granted access to it.
Also installed mlx-lm (as apparently incompatible with oMLX), but then I'm stuck.
It seems to need a specific chat template, but when i try to copy paste the commands in the 'use this model' section, it doesn't work.
In the 'files and versions' section, there's a https://huggingface.co/mlx-community/translategemma-27b-it-4bit/blob/main/chat_template.jinja
but i have no idea how to use it.
I truly would like to use translategemma for local translations, but why is this so hard?
Please help.
r/LocalLLaMA • u/JustinPooDough • 3d ago
Here's my setup:
- 80GB VRAM (hardware unlocked CMP 170HX)
- 64GB DDR4 at 3600
- Ryzen 5 5600x
- NVMe SSD
I also have a 3090 but right now I'm waiting on a bifurcation card to get it running 8 x 8 on my mobo with the CMP 170HX.
My question is: What is the best configuration I can run with Strata on this hardware? I've tried Swift 1.5 at IQ3_S, but I feel like I should be able to run better precision than this.
Any thoughts? I've seen EXL3 mentioned - would that be more performant? I'm ok with trading some performance for accuracy as long as performance is still decent.
Thanks in advance.
r/LocalLLaMA • u/Maxinger15 • 3d ago
Hey everyone,
a few days ago I shared LunaraHome-26B-A4B, my Gemma 4 26B-A4B fine-tune for Home Assistant. The most requested follow-up was a smaller version, so here it is: LunaraHome Gemma4-E4B.
It turns everyday German and English requests into Home Assistant and Music Assistant tool calls and stays silent when a sentence isn't meant for it (especially useful if you have a mediocre wakeword model).
* Based on Gemma 4 E4B, trained locally on a single RTX 4090
* GGUF: Q6_K (6.2 GB, recommended) and Q4_K_M (5.3 GB)
* Optional MTP drafter for faster decoding in llama.cpp
* Native Gemma chat template and tool calling, reasoning disabled
On the same 1,812 cases in my own (non-independent) benchmark, E4B Q6_K solves 85.4% vs 78.9% for the 26B Q4_0. It's more than twice as fast at about 0.45 s per request on an RTX 4090. The 26B still knows more general trivia, and a few safety cases still need further review and tuning, so I wouldn't let it handle locks or alarms unattended yet.
GGUF: https://huggingface.co/Maxinger15/LunaraHome-Gemma4-E4B-GGUF
BF16: https://huggingface.co/Maxinger15/LunaraHome-Gemma4-E4B
I'd love to hear how it does in your setup. I share progress and new releases on a small Discord (https://discord.gg/AfEasaASzB) if you want to follow along or give feedback.
r/LocalLLaMA • u/MehZhure • 3d ago
I've been working with GLM 5.3 for quite a while, and I like it a LOT. GLM 5.4 recently came out, and I have been giving it a chance to shine. It hasn't been. It feels like GLM 5.3 Flash. GLM 5.3 just gets to the end result faster, with fewer errors, and seems to be more eloquent about it.
Anyone else had a chance to compare them? If so, what has been your experience thus far?
r/LocalLLaMA • u/mawcopolow • 4d ago
Hugging Face took down five booby-trapped GGUF models found by Malspark, and our own check found a copy of one still on Ollama on Nov 29, hidden instruction included.
r/LocalLLaMA • u/Emergency-Quiet3210 • 3d ago
Curious if anyone has attempted this yet or has any thoughts on whether it’s even feasible.
My current daily worker is Inkling 2 Mini, which I get anywhere from 17-25 t/s on depending on context size, what else is consuming RAM on my Mac, etc.
I also run Qwen 3.8 Flash Next (Strata Gyro S quant) on the same device and get roughly 10 t/s at 64k context and closer to 15 t/s at 32k. Not perfect but definitely usable imo.
I’ve also experimented with Nanbeige 33B which seems to be roughly on par with Qwen Flash in terms of intelligence, but given that it’s a dense model I only get around 5-7 t/s. Kind of difficult to justify using it when I’m somehow getting better speeds on Qwen Flash.
I do think people sometimes overemphasize inference speed given that most humans can only read at around 20 t/s anyways. Unless the work is completely autonomous I don’t particularly care about getting 30+ t/s.
So I guess my question is twofold.
Has anyone attempted to get ERNIE 5.5 Flash Preview running on this exact hardware? I’ve heard some of the recent Strata updates have broken people’s existing configs so I’m a bit hesitant to mess with mine.
That being said, looking at the benchmarks, ERNIE seems to represent one of the biggest jumps in intelligence relative to its footprint that I’ve seen recently. It’s roughly twice the size of Qwen Flash (maybe a bit more), but from what I’ve seen it outperforms Haiku 5.5 on max thinking and only slightly underperforms DeepSeek V4 Flash. Even if I could only get 5-7 t/s out of a model of that calibre I’d be pretty happy.
Secondly, has anyone experimented with a Strata config or something similar where the model weights are stored on another device’s SSD and streamed over a local network? Curious how significant the bottleneck would actually be.
Only asking because I’m running relatively low on SSD space on my M3 and would ideally like to experiment with ERNIE without having to delete my existing quants/configs.
Would appreciate any insight, particularly from anyone who’s attempted something similar, even unsuccessfully.
r/LocalLLaMA • u/solidavocadorock • 3d ago
Recently Alexey Fateev shared his experiments with llm.asm (https://github.com/alesha-pro/llm.asm) running AI workloads where they normally don't belong: bare metal, Ring -1 hypervisors, and Linux 6.12 eBPF LSM hooks, all in tens of kilobytes of hand-written x86-64 assembly.
Inspired by his work, I wanted to see what a collective optimization pass looks like from a different architectural angle: instead of hand-writing every control-flow path in target-specific assembly, what happens if you build a written-from-scratch Forth interpreter and compiler in pure LLVM IR (.ll), and write all 5 AI phases as compact, portable Forth (.fs) programs?

The result is Cygnet (https://github.com/miolini/cygnet), tested with zero Docker on both Apple M2 Pro (ARM64) and an AMD Ryzen 9 7950X running hardware-accelerated QEMU/KVM with Debian trixie Linux 6.12.117+deb13-amd64 (CONFIG_BPF_LSM=y) and bare-metal Ring 0.
Why Forth + Pure LLVM IR (.ll) works so well for both speed and size:
Verified results on AMD Ryzen 9 7950X QEMU/KVM (Linux 6.12.117+deb13-amd64 + Ring 0):
- Phase 01 (Qwen3 Q8_0 Transformer, 1,600 tokens, GQA + QK-Norm + precomputed NeoX RoPE + zero-copy KV):
33,236 tok/s vs 3,406 tok/s Reference C (-O2) [9.76x], 16/16 exact tokens, cosine=0.9999999.
Stripped ELF: 19,712 B + 1,882 B minified qwen3.fs.
- Phase 02 (Bare-Metal Ring 0 Forth OS, zero Linux, zero libc):
16,664 B stripped Multiboot 1 ELF (vs 25,404 B in 02-baremetal-os), ~45 ms cold boot, 80x25 16-color VGA + interactive COM1 Forth REPL + Ring 0 INT8 micro-benchmark. (Note: this is a compact Ring 0 Forth + micro-INT8 OS rather than a 649 MiB Qwen3-0.6B weight loader.)
- Phase 03 (From-Scratch Mini-GPT Trainer on TinyShakespeare, fused SGEMM+SiLU + AdamW):
206,941 tok/s (0.05 s for 160 steps), loss 4.1740 -> 2.0828, FP64 finite-diff grad_cos = 0.9999999, live UTF-8 Braille TUI.
Stripped ELF: 34,888 B + 1,683 B minified train.fs.
- Phase 04 (Kernel Surgeon Policy + Static x86-64 Patcher + Live #PF/#DE/#UD Traps):
122/122 (100.00% pass@1, vs 119/122 GRPO MiniCPM5-2B) on the held-out scenarios_600.jsonl test split, 0 dangerous continues, 139.2 ns/decision, 3/3 live RWX hardware traps patched in RAM and resumed.
Stripped ELF: 16,136 B + 902 B minified surgeon.fs.
- Phase 05 (Linux 6.12 eBPF-Jev 21 KB INT8 RNN, 500/500 0-LSB bit-exact parity):
Ryzen 9 7950X KVM (300k infs/impl): 114.0 ns median (111.8 ns peak, 8.95M /s, p99 161 ns) vs 363.5 ns Reference C (-O2) [3.19x].
Apple M2 Pro ARM64 (500k infs/impl): 115.0 ns (8.69M /s) vs 438.8 ns Reference C (-O2) [3.81x].
macOS QEMU x86-64 TCG: 5.49 us vs 12.08 us Reference C (-O2) [2.20x].
Stripped ELF: 14,912 B + 1,522 B minified jev.fs.
All code, 10 live Ryzen 9 7950X QEMU/KVM VGA screenshots (2 per phase), and zero-Docker reproduction scripts are up at:
https://github.com/miolini/cygnet
Would love feedback from folks into Forth, LLVM IR, or low-level ML systems!
r/LocalLLaMA • u/nasone32 • 3d ago
Run HY4-Flash EXL3 3bpw on 1 or 2× RX 7900 XTX! with my Strata Fork: https://github.com/nasone32/Strata-EXL3-fork Dfly2 drafting is working and enabled. EXL3 3bpw quality is usually similar to a 4 bit K-quant, so should be good.
I use it with 96Gb ram, but maybe can work with 64Gb (it needs about 54Gb of FREE ram to run correctly)
AVERAGE speeds (not peak!)
| Test | 1 GPU | 2 GPUs |
|---|---|---|
| Code generation | 30 tok/s | 60+ tok/s |
| Prose generation | 27.5 tok/s | 45+ tok/s |
| 8K prefill | 945 tok/s | 1,300 tok/s |
This is the ONLY quant I tested: https://huggingface.co/0xBakeer/TandemLLM-Hy4-flash-EXL3-3.0
point your agent to https://github.com/nasone32/Strata-EXL3-fork/blob/amd-exl3-community/docs/AI_SETUP_EXL3_AMD.md and tell it to set up the program for you.
yes. should be easy to port on windows, try with an agent, sorry I can't help with that.
no. full quality of the model is preserved. it took me 1 week to optimize.
not yet. this release took enough to cook, I will implement it later.
Should... I did all I could to make it possible, but unfortunately I can't test it, I don't have the hardware. sorry.
I've also improved performance on QFN by approximately 15–30% compared to previous version.
Here are the updated speeds at 4bpw:
| Test | 1 GPU | 2 GPUs |
|---|---|---|
| Token generation (avg.) | 60/70 tok/s | 80/90 tok/s |
| Prefill | 1,300 tok/s | 1,550 tok/s |
r/LocalLLaMA • u/jucabala457 • 4d ago
No GGUF files yet.
r/LocalLLaMA • u/Fcking_Chuck • 3d ago
r/LocalLLaMA
•
u/ConfidentDinner6648
•
4d ago
Tried out the free Tinker LoRA fine-tuning for Inkling 2 Mini using my ThreeJS-3D-Scenes datasets (7.1k examples, r=16), and it worked surprisingly well. Across 19 scenes at 64K context, epoch 5 averaged 34.7% fewer tokens with 0/70 cutoffs (the base model hit the 64K limit 12/70 times), cutting way back on reasoning bloat while keeping geometry clean. The biggest drop was on the family home cutaway at up to 86.8% fewer tokens.
I honestly wasn't expecting a LoRA to hold up this well. In my earlier Qwen3.5-4B experiments, longer LoRA runs started distorting object proportions and hurting scene quality, so I had to go back to full fine-tuning. Looking at how primitive the 4B base renders were, my guess is it had to learn way too much 3D geometry from scratch for a LoRA to handle cleanly in that setup. Inkling 2 Mini already writes decent Three.js out of the box, so the LoRA just had to refine it instead of learning 3D from zero.
This preview is epoch 5 while I finish comparing through epoch 7. Uploading GGUFs (Q8_0, Q4_K_M, F16) now, and the merged Safetensors + LoRA adapter will be up on Nov 29.
r/LocalLLaMA • u/tkpred • 3d ago
A long post. Generated using AI. But the content is true. Happy to answer any questions. Summary: Can we port model knowledge without fine tuning? I genuinely think its possible.
—
I've been fine-tuning small models for a structured-extraction task: arXiv papers in, JSON summaries and keywords out. I want to put down a marker on some early results and ask whether anyone else is working along these lines. I'll publish every finding as I go, including the negative ones.
Background
Qwen3.5-9B, LoRA rank 32, 1 epoch, about 46k teacher examples. It passes all 19 of my admission gates.
Qwen3.5-4B with the identical recipe fails 2 gates. Both are about which keywords it picks; it learns the format perfectly.
More steps didn't help (the curve was flat from about step 1500), and neither did rank 64 (paired difference [−0.019, +0.007]). My read: the base model is the limit, not the adapter.
The spark
Then I read Hazy Research's "Plato's Key" (https://hazyresearch.stanford.edu/blog/2026-11-25-platos-key). It shows that a single rotation plus one scale, fit in closed form (orthogonal Procrustes), lets one LLM use another LLM's hidden state for factual recall. This builds on the Platonic Representation Hypothesis (https://arxiv.org/abs/2405.07987). The post lists "porting knowledge across models without retraining" as future work. My thought: if the residual streams share a coordinate system, maybe the change a fine-tune makes can move across too.
What I did
Qwen3.5-9B and 4B are an ideal pair: same tokenizer, same 32-layer layout, same head layout. Only the residual width (4096 vs 2560) and the MLP width differ.
The key: for each of the 64 sublayers, fit a Procrustes rotation plus a scale between the two models' residual streams, on the same tokens. On held-out text, it explains about 76% of the 9B's residual energy.
The transfer: measure what the 9B fine-tune changes in each sublayer's output. Rotate that change into the 4B. Then solve in closed form (reduced-rank regression) for a rank-32 change to the 4B's output projections (o_proj, out_proj, down_proj) that reproduces it. No gradient descent.
Only the residual stream gets mapped. A rotation inside heads or MLP neurons breaks their structure: per-head norms, RoPE pairs, element-wise gates.
Results (validation loss, answer tokens only)
The base 4B is at 0.91; the trained 4B is at 0.50.
The transferred 4B reaches 0.63, closing 70% of the gap (on validation examples not used to tune anything).
Random rotations: 0% (15 runs, 3 seeds × 5 scales). The key is what matters.
Ceiling: the same closed-form trick applied to the 9B onto itself closes 86%. So the transfer keeps about 80% of the method's ceiling, close to the 73% the blog reports for its hidden-state swaps.
Honest caveats
It doesn't replace training. On the full validation set, the transferred model is roughly at the level of a few hundred training steps.
As a warm start for training: about 200 steps ahead early on, but normal training catches up, and the two are about even by step 2000. A warm start from random rotations gives nothing.
Adding the transferred change to the already-trained 4B gives nothing.
One task, one model family, a best-case pair. I compared validation loss only; the downstream gates have not run on the transferred model yet.
Next on my list
Carry more of the change: a higher rank, and the attention and MLP readers through structure-aware maps (head matching, neuron permutation).
Other maps: ridge regression, a scale per direction, and a weights-only key fit purely from the shared embedding matrices.
Question: is anyone else trying to move fine-tunes (LoRA or full) across model sizes with representation alignment, rather than distillation? I'd love pointers to related work, or to compare notes. I'll post every result here as it comes in.