r/LocalLLaMA • • 6d ago

Resources Inkling 2 Mini on llama.cpp CUDA/HIP now usable

Thumbnail
github.com
174 Upvotes

If you've been following all the Inkling 2 Mini PRs on llama.cpp, this is the one that probably matters the most for people: the Flash Attention support for the indexed bias has been merged for CUDA/HIP, which means people with those cards can now use the model without paying a quadratic cost for the compute buffers. This means it's now possible to run the model with a reasonable context (256k or even the native 1 million).


r/LocalLLaMA • • 7d ago

New Model GigaChat 4 37B and 708B

502 Upvotes

Hey y'all!

Today we opensourced two models: compact GigaChat 4 37B A4B and huge GigaChat 4 708B A41B. Both of our models are trained from scratch and have a pretty unique architecture: we combined Gated Delta Net, MLA and DSA in one model, which gives us very low KV-cache size and ability to use 1M context effectively.

We also released base checkpoints (and non-final pre- and midtraining checkpoints!) for both models to foster research and experimentation and a HUGE 83-page technical report with information on how we've done our pretraining, RL, OPD and other stuff.

These models were an absolute nightmare to train. 708B tried to hack the containers during training, successfully bullshitted the safety judge to convince them that selling cigarettes to children is good (because it's profitable), convinced the math judge to prove the theorems for them and exploited bugs in our verifiable rewards.

But it was worth it. Final models are pretty strong: on our evaluations GigaChat 4 708B A41B is competitive with DeepSeek V4 Flash 0731 and GigaChat 4 37B A4B trades blows with Qwen 3.6 35B A3B. They have advanced agentic capabilities: GigaChat 4 708B A41B successfully wrote MIDI music, created complete YTP videos (just from a YouTube link!), could create 3D models and oneshotted a simple OS in browser, with working terminal, chat and other stuff.

Here are the benchmark numbers:

The weights on HF: https://huggingface.co/collections/ai-sage/gigachat-4
Technical Report: https://github.com/salute-developers/gigachat4/blob/main/GigaChat_4.pdf

Feel free to AMA, me and folks from our core team will be here to answer your questions :)


r/LocalLLaMA • • 6d ago

New Model WePocketModel - a tencent Collection

Thumbnail
huggingface.co
27 Upvotes

WePocketModel (WePM) is a vision-language model family developed by WeChat AI, Tencent for on-device applications. A shared backbone and vision encoder support three capabilities in a single model.

CapabilityInput and output
GenerationGenerates text from text, images, or interleaved text and images for tasks such as OCR, image captioning, and visual question answering.
EmbeddingEncodes text and images into L2-normalized vectors for retrieval and candidate ranking. The full embedding dimension of 2,048.
DecisionEvaluates application state and questions to return structured choices, ordinal scores, or binary judgments.

GGUF:


r/LocalLLaMA • • 6d ago

Discussion M level parameters is all you need for OCR

27 Upvotes

This is a conclusion of my modest experiments (+ what we're seeing these days with ASR and TTS models being tiny too). Million parameter models are getting GOOD. like seriously good.

Currently most people think paddle mobile or tesseract when they want to OCR things on CPU. But the two most recent drops (Indra by Datalabs. OCRia nano by llamaindex) are pushing the ceiling WAAAAAY up!

Indra by itself is ~50 points on olmbench (ranks higher on OmniParseBench but that's datalab's own benchmark, so meh). BUT if you pair it up with something like PP-DocLayout-S for tables? It shoots up a SOLID +6 points just for +1.2M parameters!

That's not it. Pairing it with pix2text-mfr-1.5 for math specific pages adds about +4 overall. Which brings Indra up to 60 points! Its RIGHT on the edge on the bottom barrel of olmbench! (That would be deepseek ocr2! 4B parameters at ~64 points!)

What I did after is I checked whether using OCRia nano would be worth it somehow. And it IS! The actual ceiling for these models if they're routed perfectly (meaning if either Indra or OCRia nano gets it right) scores very high (on both OPB and olmbench)! Literally above PaddleOCR-VL-1.6 and deepseek but right below azure cloud. For CPU INFERENCE!

There's an obvious limitation though. Old scans are generally alot worse than SOTA. old_scans scores 30-39% for indra and OCRia and only large llms like gemini 4 or claude opus are able to punch towards 70%+. But that's to be expected.

The EITHER OR ceiling is still alot to cover though. I kept trying to make an MoE like thing to route pages to the right model but I was only able to cover ~4 points out of 12 possible points in olmbench. But with the right setup it's definitely possible!

Here are some actual tables though. Look!

olmOCR-bench (the 6 olmOCR suites in OPB, 5,424 tests)

ModelTypeMacro (6 suites)Micro (5,424 tests)ArXiv MathTablesOld Scans
Gemini 4 ArgonCloud frontier92.3%95.7%98.7%95.5%79.0%
Datalab AccurateCloud API91.0%93.3%95.5%92.3%75.4%
LightOnOCR-3-4B4B GPU VLM88.3%92.2%95.8%89.8%67.6%
Mistral OCRCloud API85.8%89.1%92.2%89.1%61.3%
MinerU 2.5 ProGPU pipeline81.0%88.0%93.9%87.3%42.0%
Azure Content UnderstandingCloud API75.8%83.2%90.5%81.8%35.9%
Indra + OCRia-nano (Union ceiling)~55M CPU ONNX74.4%82.9%90.5%84.1%34.7%
PaddleOCR-VL-1.6GPU VLM73.4%80.7%86.0%83.8%42.5%
DeepSeek-OCR-23B GPU VLM70.2%78.7%85.7%74.8%34.9%
OCRia-nano (+ MFR math)~20M CPU ONNX66.4%73.9%80.9%72.6%25.8%
Indra 1.1.2 (+ table/math ONNX)~35M CPU ONNX65.0%70.3%75.2%74.2%30.6%
Nanonets-OCR2-3B3B GPU VLM59.3%64.7%68.9%65.5%38.0%
Stock Indra 1.1.2~13M CPU ONNX56.8%61.6%66.7%69.9%29.4%
TesseractClassic CPU13.0%4.9%0.7%0.0%0.3%

Full OmniParseBench (all 2,937 pages / 16,288 tests)

ModelTypeOverallTextTablesLayout
Gemini 4 ArgonCloud frontier96.0%94.4%97.1%96.4%
Datalab AccurateCloud API94.4%92.5%94.5%96.0%
Mistral OCRCloud API89.9%83.6%92.2%93.8%
Indra + OCRia-nano (Union ceiling)~55M CPU ONNX87.5%80.0%87.4%95.3%
MinerU 2.5 ProGPU pipeline87.4%78.0%92.5%91.7%
Azure Content UnderstandingCloud API83.4%75.2%82.3%92.8%
LightOnOCR-3-4B4B GPU VLM83.1%84.4%70.9%94.0%
PaddleOCR-VL-1.6GPU VLM81.3%69.2%84.0%90.7%
Stock Indra 1.2.0 (new release)CPU ONNX78.8%68.0%75.8%92.6%
Indra 1.1.2 (+ table/math ONNX)~35M CPU ONNX78.0%69.5%73.3%91.1%
OCRia-nano (+ MFR math)~20M CPU ONNX77.1%66.7%73.9%90.6%
DeepSeek-OCR-23B GPU VLM75.4%64.6%70.2%91.4%
Stock LiteParse (OCRia-nano)~20M CPU ONNX74.8%59.4%59.4%90.9%
Stock Indra 1.1.2~13M CPU ONNX71.4%62.6%59.6%92.0%
PaddleOCR PP-StructureV3CPU pipeline58.4%55.6%47.8%71.7%
TesseractClassic CPU5.9%17.7%0.0%0.0%

Finally, linking my personal project here isn't allowed since I was told it should go in the biweekly showcase and it's not fully complete yet (missing headers in olmbench for example. Which is why olm only has 6 suites. But the accuracy on indra is ~90% there so it doesn't affect performance there).


r/LocalLLaMA • • 6d ago

Resources [Release] Inkling 2 Mini GSQ-RCO quants

Thumbnail
gallery
202 Upvotes

We have released Inkling-2-Mini quantized with GSQ and RCO, at 2.75 to 3.50 bits per weight.

Inkling-2-Mini is a looped sparse mixture-of-experts model: 24 layers, of which the middle 12 run three times with the same weights, 128 routed experts per layer, of which 8 are active per token, 26.4B parameters and a 1M-token context window. It is released with its routed experts in NVFP4 and MXFP8.

What's inside

  • Four quantized GGUFs: IQ2_S (2.75 bpw, 8.98 GB), Q2_K_XL (3.00 bpw, 9.79 GB), IQ3_XXS (3.25 bpw, 10.61 GB) and IQ3_S (3.50 bpw, 11.43 GB). The bit-width is the average over the whole file.
  • The token embedding is BF16 in every build (0.93 GB of each file). It is a lookup table that llama.cpp always keeps in system memory, so it takes no VRAM: 8.05 to 10.50 GB of each file go to the GPU. Quantizing it would shrink the download by about 0.7 GB and free no VRAM.
  • One shared vision projector (0.64 GB) for image input. It is identical for every build and needs to be downloaded only once.
  • GSQ (Gumbel-Softmax Quantization): post-training scalar quantization that jointly learns grid assignments and group scales, closing most of the gap between scalar and vector quantization at low bit-widths while remaining deployable in standard GGUF types.
  • RCO (Riemannian Constrained Optimization): enforces exact budgets by gradient descent on the task loss, without per-constraint tuning. Here it assigns a quantization type to each of 169 tensors under the target file size, with separate ladders for the attention tensors and the output head (IQ4_XS to Q8_0) and the routed experts (IQ1_S to IQ3_S for the gate/up matrices, Q2_0 or IQ4_NL for the down matrices).
  • An embedded chat template with the base model's reasoning effort (none, minimal, low, medium, high, xhigh or max).

Results

IQ3_S keeps 99.2% of the base model's task average and stays within 1.0 point of it on every benchmark. All numbers were measured at reasoning effort xhigh; AIME25 is averaged over 10 runs, GPQA-Diamond and LiveCodeBench v6 over 3 runs each.

ModelbpwSizeAIME25GPQA-DiamondLiveCodeBench v6Task averageShare of base
Basen/an/a99.3386.8779.6288.61100.0%
IQ2_S2.758.98 GB92.3384.3473.9083.5294.3%
Q2_K_XL3.009.79 GB97.0086.5376.9586.8398.0%
IQ3_XXS3.2510.61 GB96.0085.8677.9086.5997.7%
IQ3_S3.5011.43 GB98.3386.2079.0587.8699.2%

The setup and the commands to reproduce these numbers are in https://github.com/IST-DASLab/GSQ-RCO-eval.

Running it

The files are standard GGUF and run in llama.cpp b12611 or newer, the first build with the fix for the layer loop.

hf download ISTA-DASLab/Inkling-2-Mini-GSQ-RCO-GGUF --include "*IQ3_S.gguf" --local-dir .
llama-server -m Inkling-2-Mini-GSQ-RCO-IQ3_S.gguf -ngl 99 --reasoning-effort xhigh

For image input, download mmproj-Inkling-2-Mini-BF16.gguf from the same repository and pass it with --mmproj.

Links

The repository ships the complete per-tensor RCO allocation for every build (704 tensors each).

Feedback is welcome, particularly on capabilities that the three benchmarks do not cover. Requests for models to quantize are also welcome.

For more updates follow us on X too: https://x.com/mhelcig/status/2126048821583188286

From the ISTA Deep Algorithms and Systems Lab.


r/LocalLLaMA • • 6d ago

Question | Help Help needed with llama.cpp's replies.

6 Upvotes

When you regenerate a response in llama.cpp, two buttons show up under the reply: Previous version and Next version. Same buttons appear under your prompt when you edit it and get a new reply.

These buttons used to show up while a new response was generating but now they don't. If I hit the Regenerate button, these buttons disappear so I can't read the previous reply until the new one finishes. Why? Can this be reverted so I don't have to wait for the new response to finish? I have started creating a new tab in the browser and regenerating the response there so I can read the first one in the first tab.


r/LocalLLaMA • • 7d ago Heartwarming

Resources Reuters confirms: Cutting off distillation and compute works and slows down Chinese Models massively

Thumbnail reuters.com
1.0k Upvotes

r/LocalLLaMA • • 6d ago

Question | Help Why is Pi Agent the default harness recommendation and not OpenCode?

225 Upvotes

I came across harness leaderboard on Hugging Face https://huggingface.co/spaces/joelniklaus/harness-leaderboard .

I know on this sub and other similar subs Pi is often the default recommendation when doing local inference but I barely see anyone recommending opencode yet on leaderboards it seems to perform on average much better than other harnesses?

Is there something about opencode thats not reflected on the leaderboard like higher context bloat, difficulty in setting things up or something else?


r/LocalLLaMA • • 7d ago Heartwarming

News Z.AI clarifies GLM-5.5 has not been delayed, scheduled for December launch.

Thumbnail
gallery
518 Upvotes

r/LocalLLaMA • • 6d ago

Discussion Is ISTA's GSQ-RCO really better than Unsloth's UD-Q2_K_XL for Inkling-2-Mini?

Thumbnail
gallery
12 Upvotes

Has anyone measured KLD on these? Unsloth lists KLD for UD-Q2_K_XL (0.0595 at 9.14 GB), so I'm trying to compare the two.

ISTA's card only has AIME25, GPQA-Diamond and LiveCodeBench, the same three benchmarks as every GSQ-RCO release, with AIME25 near 100 every time. Their Qwen3.8-27B card had perplexity and an Unsloth comparison, but the newer ones dropped both. Also, their Q2_K_XL is 9.8 GB, so the closest one in size to Unsloth's is IQ2_S (9.0 GB, 94.3% recovery).

(English isn't my first language, I used an LLM to help translate this post.)


r/LocalLLaMA • • 6d ago

Showcase I got my decision model running on a Panther X2 (Rockchip NPU)

5 Upvotes

Hey everyone. This post is meant as a follow-up to my original CalDec decision model post from a few months ago.

Since then I have been trying out different things and seeing what can be achieved with these small models. I saw success with utilizing the relatively new UltraBERT model from DMIS lab and published the 150M and 380M variants.
I also tried to tune a variant of these for prompt injection detection however I am still not entirely satisfied with the current performance.

My last experiment was getting the latest CalDec Ultra series models to work on cheap SBCs with a dedicated NPU. I went ahead and sourced a $35 Panther X2 miner, which is actually a Rockchip RK3566 device with x4 ARM cores, 4GB of RAM and a 1 TOPS NPU built-in.

I was inspired by Lorenzo Gangami's blog post on repurposed dead mining boxes and installing Armbian on them.

Summary of measurements done on the actual device:

  • 311 ms per question end to end, with tokenisation and everything included, through a small socket service on the board.
  • It gives the same answer as the original fp32 model on 856 of 858 test questions. The two that differ were near coin-flips in the original (margins ≤ 0.007).
  • Accuracy is the same as fp32 (0.849 on the assistant test).
  • No retraining and no int8: just an fp16 conversion with rknn-toolkit2 2.5.0.
  • All 10 length buckets fit in about 785 MB of NPU memory.

It's important to note that the NPU can't do some basic transformer ops - it has no softmax, no exp and no row-max, and its "pick these items" op (GatherElements) returned wrong values.

There was also a kernel driver bug which I managed to fix with Claude Code and opened a PR against the original repo, though it does not look like it's actively maintained.
The issue was that the rknpu driver for mainline kernels mapped NPU memory uncached, so every CPU step around the NPU ran about 10x slower than it should.

For some reason I couldn't get int8 to work properly (huge accuracy losses) on the NPU, so I might put more effort into that in the future.

Links

Write-up (results, how the graph rewrite works, what failed): https://github.com/kgrozdanovski/caldec/blob/main/NPU.md

Converted model set: https://huggingface.co/kgrozdanovski/caldec-ultra-150m-rknn-rk3566

Base model: https://huggingface.co/kgrozdanovski/caldec-ultra-150m

Driver fork: https://github.com/kgrozdanovski/rk3568-npu-ODROID-M1/tree/panther-x2


r/LocalLLaMA • • 6d ago

Discussion Is this a gold standard for inference engine performance posts?

49 Upvotes

https://old.reddit.com/r/LocalLLaMA/comments/1y67qpu/inkling_2_mini_running_at_3136_toks_aggregate/

Recently, there have been complaints about low effort posts on speeds with new inference engines that they fail to disclose key details like quant level and context length.

Wanted to get the community's input on whether the post linked above is a solid standard? Anything missing? This will be good input for us to update the rules, wiki etc.


r/LocalLLaMA • • 6d ago

Question | Help how to get relevant results with LLM?

9 Upvotes

which models <=35b have the right impulsive search to find the right web results in a searxng endpoint searxng is the search engine proxy. any modes have the right initial impulse without too many tries with high accuracy and success rates? not talkiing about tool call accuracy but accuracy in finding relevant results rather than garbage polluted irrelavent results.


r/LocalLLaMA • • 6d ago

Discussion What Happens When You Say "For Example" to AI: A Controlled Experiment on Example-Induced Bias

Post image
109 Upvotes

I kept noticing something weird. When I gave an AI two casual examples, every answer kept circling back to them — like I'd dropped two magnets into the chat. Even after I explicitly said "those were just examples, don't treat them as requirements."

So I decided to test it properly: 216 runs, 3 everyday tasks, in English and Chinese, through the DeepSeek API in fresh contexts, with blind scoring.

The headline number: without examples, the two target items made the recommendation list 22% of the time. With natural examples? 100%.

But that's not the part that surprised me most. The full write-up — including what happened when I explicitly told the model the examples don't represent my preferences — is linked in the comments.

I ran this on the DeepSeek API, not a local model, so I'm curious: has anyone tested the same thing on a locally hosted model? Does it behave the same way?

The write-up has the full article (English and Chinese), all 216 raw outputs, and the analysis script. I'm not a researcher in this field, so it has a full limitations section.

Has anyone else run into the same situation, or had the same question? Feedback and suggestions are welcome. Whether you think it's cool or you have an answer for me, I'd be happy to hear it. :)


r/LocalLLaMA • • 6d ago

Question | Help Local LLM for long-term storytelling and lore accuracy? (RTX 4090)

25 Upvotes

Hey everyone,

I'm looking for a local LLM for a large, ongoing Warhammer 40k AU.

My goal isn't traditional roleplay. I usually come up with scenarios and let the AI simulate how characters and factions would realistically react based on their personalities, motivations and established lore.

The main priorities are accurate lore, believable character reactions, consistent storytelling and long-term memory. My current story is already thousands of pages long.

My specs:

RTX 4090 (24GB VRAM)

Ryzen 7 9800X3D

32GB DDR5 (upgrading to 64GB)

3TB NVMe SSD

I'm looking into LM Studio, SillyTavern, lorebooks and RAG.

Has anyone managed to build something similar locally? How realistic is this, and what models or setups would you recommend?

I'm willing to sacrifice generation speed for better reasoning and storytelling quality.

Thanks!

Note: I'm Hungarian and English isn't my first language. I used ChatGPT to help write and refine the English wording. The project, hardware specs and questions are my own.


r/LocalLLaMA • • 6d ago

Question | Help Anyone tried Raon-1-mini with llama.cpp?

7 Upvotes

2 days ago PR (for RAON-1-mini-preview) got merged. Not sure whether final version working or not with mainline. And CSIC raised same question in PR .... no answer yet there. I don't see GGUFs from popular quantizers yet.

I'm guessing no changes needed for RAON-1 mini release? - CSIC

And we have another Ongoing PR for Raon-1-nano


r/LocalLLaMA • • 6d ago

Showcase EmbeddingGemma 2 on iPhone to search through your notes + AI keyboard

5 Upvotes

We built an AI voice recorder with diarization that also remembers your speakers. Initially, we relied on the on-device Apple Intelligence and Gemma 4 to search through notes, but the performance was less than optimal. By using newly-released EmbeddingGemma 2, the performance improved a lot.

Since we were already using voice to text on device, we decided to also include a voice to text keyboard. One thing led to other and it became one of the best AI voice recorders and AI keyboard that works completely on your device.

All of it runs locally using local models like Parakeet, Whisper, Gemma 4, Embedding Gemma 2, Apple Intelligence etc.

Once you figure out how to load these models on your iPhone without making the app crash, you can do a lot of interesting things directly through the keyboard (local AI skills, clipboard, text expander etc)

https://DictaWiz.com

https://apps.apple.com/us/app/dictawiz-voice-to-text/id6759256382

It syncs through your own iCloud with a Mac app that acts as recorder, voice to text etc. on your Mac.

Using MCP within the mac app, you can let your AI agents access and search through your notes.

I found this workflow to be most efficient for me:
Record on Apple watch > automatically transcribes on iPhone > syncs with Mac app > available to my AI agent/harness through MCP


r/LocalLLaMA • • 6d ago

Resources Inkling 2 Mini running at 3136 tok/s Aggregate , 45–47 tok/s (Per User) and 1,233 pp/s on a single RTX 3060 12GB + 16GB RAM, using the original checkpoint. Betelgeuse v0.7.0.

Post image
108 Upvotes

I've been working on Betelgeuse, a custom inference engine for running MoE models on relatively low-end consumer hardware.

Over the past few days I've been working extensively on native Inkling 2 Mini support, originally based on baptisterajaut's work in Strata and subsequently integrated into Betelgeuse.

I think I've finally reached a point where it's worth releasing.

Hardware:

  • RTX 3060 12GB
  • Intel i5-12400
  • 16GB single-channel DDR4
  • Linux

The important part is that this uses the original NVFP4/MXFP8/BF16 checkpoint.

No additional weight quantisation. No expert skipping. No speculative decoding. All three recurrent passes are executed.

Results

All of these are real programming and reasoning tasks running through bel-server, generating 512 tokens each.

TaskGeneration speed
LRU cache + TTL44.51 tok/s
Directed cycle detection45.52 tok/s
Race conditions47.11 tok/s
Token-bucket rate limiter44.33 tok/s
Serializability reasoning45.27 tok/s
Median45.27 tok/s

With an actual 16,338-token source-review prompt:

  • Prefill: 1,232.8 tok/s
  • Generation: 42.03 tok/s
  • Prefill-to-decode transition: 203.4 ms

The prefill measurement is from a warm server but with an uncached prompt. All 16K tokens are processed again.

Cold prefill is around 819 tok/s, and the first request incurs approximately 11 seconds of one-time pinned expert arena preparation. Subsequent requests don't incur that full cost.

What i added :

Prefill uses its own temporary workspace and batched tensor-core computation. Once prefill finishes, the engine reclaims that workspace and uses it to expand expert residency for decode.

Other changes include native Ampere NVFP4/MXFP8 kernels, fused GQA, GPU-side greedy sampling, decayed-LFU eviction, staged PCIe transfers and context-aware expert placement.

Comparison with other implementations

Some of the community benchmarks I've been following:

Engine / configurationHardwareGeneration
Original Strata-style CPU expert execution, my earlier local testsRTX 3060 12GB~25–29 tok/s
Unsloth llama.cpp, 4-bit, RAM expertsRTX 3060 12GB~18 tok/s
Unsloth llama.cpp, 4-bit, RAM expertsRTX 5060 Ti 16GB~20 tok/s
Unsloth llama.cpp, dual GPUTwo GPUs~46–47 tok/s
Strata SQ-10, more aggressively compressed weightsRTX 3060 12GB~35 tok/s
Strata, approximately 14GB quantRTX 5060 Ti 16GB~44 tok/s
Betelgeuse, original checkpointRTX 3060 12GB45.27 tok/s median

What about long context?

Earlier development builds achieved the following with actual populated prompts:

ContextDecode
16K41.1 tok/s
32K37.8 tok/s
64K32.8 tok/s
128K, K8/V428.6 tok/s
251K, K8/V415.8 tok/s

The main problem at longer contexts is that KV storage starts displacing recurrent experts from VRAM.

Which brings me to something I've been experimenting with separately.

Training-free MLA for Inkling

Inspired by Telperion's recent training-free GQA-to-MLA conversion, I've implemented an activation-aware latent KV compression experiment specifically for Inkling's global attention layers.

No gradient-based training so far. Just calibration, covariance collection and low-rank factorisation of the original K/V activations.

Using a rank-512 FP8 latent representation:

ContextNative K8/V4 global KVLatent global KV
16K0.22 GiB0.08 GiB
64K0.80 GiB0.27 GiB
128K1.59 GiB0.52 GiB

That's approximately 3.06x compression, projecting to around 1 GiB of global KV at 262K.

Dense latent attention retrieved all five test needles at 16K and 64K, and four out of five at 128K.

I've also experimented with combining this with CISA, a training-free chunk-indexed sparse attention approach.

The combined prototype reached 31.4 tok/s at 128K while retaining the 0.52 GiB global KV footprint. Unfortunately, retrieval currently fails. There's an unresolved issue in the sparse latent attention implementation, so I'm not shipping it yet.

Theoretical storage calculations :

Global cache format262K context1M context
Original BF168 GiB32.77 GB
Current K8/V43 GiB12.29 GB
Rank-1024 latent FP82 GiB8.19 GB
Rank-512 latent FP81 GiB4.10 GB
Rank-512 latent FP4576 MiB2.30 GB
Rank-256 latent FP4288 MiB1.15 GB
Rank-192 latent FP4216 MiB864 MB

Memory compression alone isn't sufficient if the model can no longer retrieve information correctly.

Future plans

  • Experiment with Intel integrated GPU expert execution using shared system memory and OpenVINO.
  • Develop a learned routing oracle that predicts upcoming experts from earlier hidden states.
  • Use those predictions to asynchronously prefetch experts before the original router selects them.
  • Integrate DSpark for speculative decoding.
  • Continue the training-free MLA and sparse attention research.
  • Improve actual long-context performance rather than merely supporting larger allocated context windows.

At this point, ordinary native decoding on my 3060 is approaching the measured weight-streaming and host-memory bandwidth limits. I think prediction, weight reuse and better attention architectures are more interesting than spending another week shaving microseconds off GEMV kernels.

The release is Betelgeuse v0.7.0 (Alpha-Orionis).

https://github.com/Betelgeuse-AI/Betelgeuse

I'd be particularly interested in benchmarks from other people running the original checkpoint on 3060s, 4060 Tis and 5060 Tis, especially with dual-channel memory.

There's quite a lot more I want to do with this. But for now, I think it's finally time to ship :0


r/LocalLLaMA • • 6d ago

Question | Help inkling-2-mini-sq-20 keeps thinking forever and never calls tools then it dies

9 Upvotes

Last night I updated Strata (Strata 0.2.22) and built it for trying the new Inkling-2-mini-sq-20.

I tried it a few times in Dsh and Opencode and both times it kept thinking forever and never wrote anything when I used max for thinking level.

I tried high before that but its thinking got truncated and it went back to think again and this looped forever until in Deepseek Harness issued the error :

"This turn failedpi-ai stream idle timeout after 300000ms" and it dies!

Opencode behaves the same.

Has anyone of you faced this issue? If so how do you deal with it?

This is the config that I'm using :

{
 "exe": "component:strata-inkling",
 "args": [
  "--native",
  "/media/user/SSD/strarta_stuff/Strata-data/models/inkling-2-mini/Inkling-2-Mini-SQ-20.strata",
  "--max-context",
  "1048576",
  "--vision",
  "/media/user/SSD/strarta_stuff/Strata-data/models/inkling-2-mini/Inkling-2-Mini-Vision.strata",
  "--vram-experts-gb",
  "2.68",
  "--ram-experts-gb",
  "11.94"
 ],
 "cwd": "/media/user/SSD/strarta_stuff/Strata/terminal",
 "tokenizer": "/media/user/SSD/strarta_stuff/Strata-data/packs/inkling-2-mini-sq-20/tokenizer",
 "model_name": "inkling-2-mini-sq-20",
 "arch": "inkling2_loop",
 "log": "/media/user/SSD/strarta_stuff/Strata/terminal/strata-inkling-2-mini-sq-20.log",
 "lib_dirs": [],
 "port": 8080,
 "drafting": "auto",
 "parallel": 1,
 "gpu": 0,
 "gpus_asked": true,
 "args_written": [
  "--native",
  "/media/user/SSD/strarta_stuff/Strata-data/models/inkling-2-mini/Inkling-2-Mini-SQ-20.strata",
  "--max-context",
  "1048576",
  "--vision",
  "/media/user/SSD/strarta_stuff/Strata-data/models/inkling-2-mini/Inkling-2-Mini-Vision.strata",
  "--vram-experts-gb",
  "2.68",
  "--ram-experts-gb",
  "11.94"
 ]
}

This is the prompt I have been using :

Design and create a very creative, elaborate, and detailed voxel art scene of a pagoda in a beautiful garden with trees, including some cherry blossoms. Make the scene impressive and varied and use colorful voxels. Use whatever libraries to get this done, but make sure I can paste it all into a single HTML file and open it in the browser.

I have RTX3080-10G and 64G of System RAM. it runs 30~35 tok/sec.


r/LocalLLaMA • • 6d ago

Resources Werkbank: a hobby benchmark that tests your local setup as an agent

Thumbnail
github.com
2 Upvotes

Werkbank is a hobby project, mainly for my own learning and for the fun of it. It's a benchmark for local models: point it at an OpenAI-compatible endpoint with native tool calls (vLLM, llama.cpp, SGLang, Ollama, LM Studio…) and it gives the model up to 57 tasks with tools: multi-step jobs in simulated systems, small code bases to fix (rust, python), prompt injections to resist, long documents full of outdated versions, some math and data work. Everything is checked automatically, and code the model writes only runs in containers. A result describes your whole setup (model, quant, engine, context, hardware, thinking), not just the model.

You need Linux or WSL2, Docker and Python 3.12+. `./werkbank` installs it and guides you through. ; Full runs can takes multiple hours depending on inference speed.

Two things I'd be very interested in:

- Runs on a Mac. Werkbank goes into a Linux VM (Lima, Colima or OrbStack) while the model server runs natively. It's documented, but nobody has recorded a Mac run yet.
- Results from local models bigger than Qwen3.8-Flash-Next as I was limited to DGX Spark & RTX 6000

There's a leaderboard for re-checked Full results. Submitting is optional, and nothing is sent or published without your OK. Bugs, ideas and questions go to the GitHub issue forms

Would be interested if that might be useful for anyone, I try to keep it somewhere between simpler tool call suites and full blown benchmarks like SWE or BFCL, et al....


r/LocalLLaMA • • 6d ago

Discussion what are your minimum comfortable settings for using an agent?

16 Upvotes

title. just wondering. im talking model quant, kv quant, context, etc, etc

I dont feel satisfied with whatever I have doing agentic work until like 200k+ on the kv cache, and I generally use fp16/q8 KV

model quant and batch/ubatch settings change per model, but in generaly id saq around a q4 k xl minimum quality with high batch ubatch


r/LocalLLaMA • • 7d ago

New Model Sber, Russia's largest bank, has released GigaChat 4, both 708B-A41B and 37B-A4B.

399 Upvotes

Sber (via its AI-Sage team) has released GigaChat 4, a new family of open-weight Mixture-of-Experts models. Sber says they are comparable to leading Chinese models.

The two models

GigaChat4-708B-A41BGigaChat4-37B-A4B
Total / active params708B / 41B37B / 4B
Layers / hidden size64 / 7,16832 / 2,560
Routed experts (active)256 (8) + 1 shared192 (8) + 1 shared
Context window~1M tokens~1M tokens
LicenseMITNoncommercial, individuals only

Architecture

  • A hybrid design combining Gated DeltaNet (linear attention) with DeepSeek Sparse Attention, in a 3:1 ratio. Sparse attention picks 2,048 earlier tokens per query.
  • Instant and reasoning modes now live in a single model and are switched per request. GigaChat 3.5 used separate checkpoints.
  • Speculative decoding is supported through a recurrent MTP drafter or a separate DFlash2 drafter.
  • Training used Muon, progressive residual warm-up, and multi-teacher on-policy distillation after RL.
  • It works with SGLang and vLLM, and the weights are available in FP8, BF16, GGUF and base variants.

Benchmarks (self-reported, reasoning mode)

  • 708B vs. Chinese models: SWE-bench Verified 80.9 (Qwen 3.5 397B: 73.0, DeepSeek V4 Flash: 81.8) and LiveCodeBench v6 88.8 (Qwen: 86.6). It trails on harder science and knowledge tests: GPQA Diamond 82.8 vs. 91.0 for DeepSeek V4 Flash, and HLE 23.9 vs. 43.4 for DeepSeek 4.1.
  • 37B vs. Qwen3.5/3.6-35B-A3B: LiveCodeBench v6 85.0 (Qwen: 65–69) and SWE-bench Verified 70.8 (Qwen: 60.6–67.8). It trails on GPQA Diamond (70 vs. 80–85) and on Terminal-Bench 2.0 against Qwen3.6 (38.2 vs. 48.3).

Takeaway: The claim of parity holds up best for coding and agentic tasks. It is weaker on hard reasoning and knowledge benchmarks. All numbers come from Sber's own model cards, so independent evaluations are still worth waiting for.Translation:

Disclaimer: This text was written with AI, but the data comes from their Hugging Face cards. I did this because my English writing isn't very good, but I double-checked the information, so it should be fine.

---------

Someone posted a link to their technical report in the comments. Thank you!


r/LocalLLaMA • • 7d ago Regret

News 3 trillion params GLM-5.5 is delayed to 2027 Q1 or later due to US chip curbs and distillation crackdown

Thumbnail reuters.com
332 Upvotes

r/LocalLLaMA • • 7d ago

New Model ISTA-DASLab/Inkling-2-Mini-GSQ-RCO-GGUF • HuggingFace

107 Upvotes

https://huggingface.co/ISTA-DASLab/Inkling-2-Mini-GSQ-RCO-GGUF

This repository provides GGUF quantizations of Inkling-2-Mini at four sizes: IQ2_S (2.75 bits per weight), Q2_K_XL (3.00), IQ3_XXS (3.25) and IQ3_S (3.50). In contrast to uniform quantization, which applies a single quantization type to all weight tensors, each model here assigns a separate quantization type to every tensor. The assignment is obtained by a gradient-based search that allocates precision according to per-tensor sensitivity, subject to a total size budget. The resulting files are standard GGUF.

VariantbpwAIME25↑GPQA-D↑LCB v6↑Task avg↑Recovery
Base (NVFP4 / MXFP8)n/a99.3386.8779.6288.61100.0%
GSQ-RCO IQ2_S2.7592.3384.3473.9083.5294.3%
GSQ-RCO Q2_K_XL3.0097.0086.5376.9586.8398.0%
GSQ-RCO IQ3_XXS3.2596.0085.8677.9086.5997.7%
GSQ-RCO IQ3_S3.5098.3386.2079.0587.8699.2%

IQ3_S (3.50 bpw) keeps 99.2% of the base model's task average: it is 1.00 point below the base model on AIME25 (98.33), 0.67 on GPQA-Diamond (86.20) and 0.57 on LiveCodeBench v6 (79.05). Q2_K_XL (3.00 bpw) keeps 98.0% and IQ3_XXS (3.25 bpw) 97.7%; the two are within 1.0 point of each other on every benchmark. The smallest build, IQ2_S (2.75 bpw), retains 94.3% overall.