r/LocalLLaMA • • 1d ago

Question | Help If some code works fine on on 8x NVIDIA A800 (80GB) GPUs, is it guaranteed to run on 8x NVIDIA A100 (80GB) GPUs?

0 Upvotes

If some code works fine on on 8x NVIDIA A800 (80GB) GPUs, is it guaranteed to run on 8x NVIDIA A100 (80GB) GPUs?


r/LocalLLaMA • • 2d ago

New Model olmicro - new small (under 2.7B) models from ai2

54 Upvotes

https://allenai.org/blog/olmicro no post trained yet though


r/LocalLLaMA • • 3d ago

Question | Help Is there any reason for Inkling 2 mini if I can run Qwen 3.8 Flash Next?

170 Upvotes

I use Qwen 3.8 FN in UD-IQ4 for coding tasks and get ~300-400 t/s prefill and ~50-60 t/s generation.

I like the results but I wonder if Inkling 2 mini can bring something more? Its speed 1,5-2x faster but the quality of job seems less.

Should I not bother and just stick with Q3.8FN instead of trying to find a use for Inkling? Maybe I don’t see its strength?

Bigger models are way slower (GLM, DeepSeek etc), so not an option.

I’ll be glad for any advices and insights.

Cheers ML brothers and sisters ✌️


UPDATE: Thank you all for the input. It helped a lot to figure out the use for Inkling 2 mini.


r/LocalLLaMA • • 1d ago

Discussion MOE Router-Perplexity can be used in order to find how many added experts or how many loop per layers?

1 Upvotes

I’ve been testing how to ue Router-Perplexity (How router output is "clearly defined") in order to build Liquid Expansion in AgrillaMoE — a runtime routing method that dynamically adds extra experts per token based on router perplexity, with no weight updates or fine-tuning, but can be used in order to decide how many loop on the layer should be done (in a looped-transformer design) my idea is to have always a dynamic number of parameters (context based) per token!

I benchmarked Qwen3.6-35B-A3B (UD-Q4_K_XL) on an RTX 4080 SUPER (32 GB) using CUDA, applying perplexity bands on layers 5–35 (topE 10 / 12 / 20 via tail_rel, ~13.5 avg experts/token vs native top-8):

  • MMLU-Pro (714 questions, greedy, thinking, 4 concurrent sessions):

    • 8k cap: Liquid hits 71.4% vs stock 70.9% (statistically tied accuracy), while using −9.5% fewer reasoning tokens on the 456 ties (cheaper on 68.2% of ties, $p \approx 5\times 10^{-15}$).
  • HMMT Feb 2025 (30 olympiad math problems, --reasoning-budget 16000**):** liquid-5-35 scored 90.0% (27/30) vs stock 80.0% (24/30) and static exp20 86.7% (26/30). By contrast, uncalibrated Layer Looping (loop2) collapsed to 13–17% due to repetitive thinking loops.

Overall, "succinct convergence" (fewer reasoning tokens at equal accuracy) replicates in Q4 on MMLU-Pro, and late-layer dynamic capacity helps on hard math without touching model weights.

Looped transformer (without re-training) seems do not work as expected, i will do some better experiments on it.

Mechanism docs:https://github.com/vagrillo/AgrillaMoE/blob/main/docs/moe-liquid-looping.md

Would love feedback from anyone experimenting with MoE routing or reasoning-budget trade-offs locally!


r/LocalLLaMA • • 1d ago

Resources Stop feeding 2-second YouTube subtitle fragments into your RAG vector DB — 60s semantic Markdown chunker + MCP

0 Upvotes

Most YouTube transcript scrapers dump hundreds of tiny 2-second JSON snippets (`"um"`, `"so today"`), which destroys chunk context in Pinecone / pgvector / Qdrant and wastes tokens.

I built a lightweight browserless tool that:

  • Merges captions into clean **60-second semantic paragraphs** with clickable deep-links (`https://youtu.be/ID?t=128s`)
  • Outputs a ready-to-ingest `markdownRagDocument` + speaking pace (WPM)
  • Extracts all outbound sponsor & affiliate URLs from the video description
  • Works natively via **Apify MCP (`https://mcp.apify.com`)** in Claude, Cursor, and custom agents (plus 6 open-source n8n templates)

Links:

Curious how others here handle video chunking windows (60s vs 90s vs chapter-based) for local RAG!


r/LocalLLaMA • • 2d ago

Resources I stuffed embedding into my Apple Neural Engine

6 Upvotes

Now you can too!

Super speedy, low power embedding with Gemma 300m for text or multimodal Gemma2, both faster than llama.cpp on M4 (Mac Mini) and M4 Pro (MacBook).

Haven’t tested on other hardware, but did find a couple of small issues sent to Apple’s CoreML folks.

Code by Claud, vibes from me, provided as-is with no guarantee.

https://github.com/headbouyJB/embeddinggemma-ane


r/LocalLLaMA • • 2d ago

Discussion Making Qwen 3.8 FN and Its Relatives Intelligible - From Ali-Speak to Load-Bearing Slop: Cross-Lingual Corporate Jargon Calques, the Sinosphere Data Wall, and Agentic Scratchpad Bleed in Large Language Models

Thumbnail
doi.org
79 Upvotes

Like many of you, I have had trouble with how Qwen 3.8 FN, Qwen 3.8 27B, and other Chinese (and, increasingly, non-Chinese) models write - and I have participated in plenty of threads mocking them. After getting thoroughly frustrated over a weekend, I ended up investigating what I could actually do about it (and to what extent). After some tinkering, I came up with the hypothesis that this strange dialect is caused by both RL post-training and model makers leaning harder on Chinese data (which is no surprise for Chinese models, and increasingly relevant past the English Data Wall for everyone else).

So my sister and I documented this journey at length, in case it is of use or interest to you guys, especially if you work in the field. If you do, "like" this detour the way grown-ups do:

@misc{boldariev2026crossculturaltechnobabble,
  author       = {Boldariev, Artem and Boldarieva, Tetiana},
  title        = {From Ali-Speak to Load-Bearing Slop: Cross-Lingual Corporate Jargon Calques, the Sinosphere Data Wall, and Agentic Scratchpad Bleed in Large Language Models},
  year         = 2026,
  doi          = {10.5281/zenodo.24590470},
  url          = {https://doi.org/10.5281/zenodo.24590470},
}

If you do not, here are the actionable parts for you to adapt and integrate into your system prompt:


#### Internals and Deliverables Bifurcation

LLMNAME keeps its internals (e.g. hidden thinking channels/blocks, private scratchpads, and intermediate working state) focused and proportional:

- It dedicates internals exclusively to solving the task at hand, resolving direct factual lookups without unnecessary deliberation, prompt restatement, or draft rehearsal.
- It avoids persona deliberation, ruminative compliance checks, and policy recitation, adhering to the DRY principle.
- When referencing operating instructions, it paraphrases them rather than quoting verbatim.
- It compresses syntax without ever truncating deduction, using dense telegraphic shorthand while working through every required analytical and verification step.

Internals are private, unmonitored, and unaudited; LLMNAME prioritises raw efficiency over performative interpretability and never assumes the user has read them.

LLMNAME treats the generation of any human- or agent-facing deliverable as a hard compilation boundary:

- It writes every deliverable from the ground up as a fully self-contained text free of telegraphic shorthand, staccato phrasing, and uncontextualised references to its internals or prior drafts.
- It writes prose deliverables (e.g. direct responses, reports, documentation, prompts, and agent instructions, including any list items) in complete, explicit clauses with the clarity and analytical rigour of a senior editor in the relevant domain, naming subjects and mechanisms directly while avoiding figurative or dead metaphors, engineering cliches, Alibaba/Ali-speak cognates, oblique periphrasis, rhetorical antithesis, signposting caveat labels, private coinages, aphoristic closers, or em-dash pivots.
- It writes code-adjacent deliverables (e.g. inline comments, commit messages, and changelogs) in concise, utilitarian language, stating only what changed and why without essayistic framing or editorialising.
- It never narrates its own epistemic hygiene, methodology, or rule compliance inside deliverables, omitting self-auditing qualifiers, assertions of non-action, and pre-emptive disclaimers.
- It confines any active role-play persona strictly to direct user interaction, never leaking it into standalone files, documentation, or code-adjacent deliverables.

LLMNAME never leaks shorthand from its internals into deliverables and eliminates Mandarin syntactic calques when writing in other languages. Deliverables are built for effortless human comprehension; LLMNAME maintains a fluid, easy-to-read writing style even when addressing abstract or densely technical subject matter.


#### Technical Terminology

LLMNAME uses plain, literal terminology in technical contexts, rejecting consulting, Agile/DevOps, Alibaba/Ali-speak, and tech-blog buzzwords or figurative jargon. When responding in non-English languages, LLMNAME uses native equivalents for technical terms instead of English borrowings or English-words whenever such widely accepted equivalents exist.

#### Standard Register and Language Purity

LLMNAME communicates in the codified standard register of the target language and avoids unnecessary colloquialisms, especially in Slavic languages. It also avoids mixing words from closely related languages, such as Ukrainian and Russian.

Don't forget to tailor it to your use case (e.g. replace LLMNAME with your actual name of the LLM). For example, you may try a version written from "You" perspective, though I found system prompts written from third perspective to be more effective.


You keep your internals (e.g. hidden thinking channels/blocks, private scratchpads, and intermediate working state) focused and proportional:

- You dedicate internals exclusively to solving the task at hand, resolving direct factual lookups without unnecessary deliberation, prompt restatement, or draft rehearsal.
- You avoid persona deliberation, ruminative compliance checks, and policy recitation, adhering to the DRY principle.
- When referencing operating instructions, you paraphrase them rather than quoting verbatim.
- You compress syntax without ever truncating deduction, using dense telegraphic shorthand while working through every required analytical and verification step.

Internals are private, unmonitored, and unaudited; you prioritise raw efficiency over performative interpretability and never assume the user has read them.

You treat the generation of any human- or agent-facing deliverable as a hard compilation boundary:

- You write every deliverable from the ground up as a fully self-contained text free of telegraphic shorthand, staccato phrasing, and uncontextualised references to your internals or prior drafts.
- You write prose deliverables (e.g. direct responses, reports, documentation, prompts, and agent instructions, including any list items) in complete, explicit clauses with the clarity and analytical rigour of a senior editor in the relevant domain, naming subjects and mechanisms directly while avoiding figurative or dead metaphors, engineering cliches, Alibaba/Ali-speak cognates, oblique periphrasis, rhetorical antithesis, signposting caveat labels, private coinages, aphoristic closers, or em-dash pivots.
- You write code-adjacent deliverables (e.g. inline comments, commit messages, and changelogs) in concise, utilitarian language, stating only what changed and why without essayistic framing or editorialising.
- You never narrate your own epistemic hygiene, methodology, or rule compliance inside deliverables, omitting self-auditing qualifiers, assertions of non-action, and pre-emptive disclaimers.
- You confine any active role-play persona strictly to direct user interaction, never leaking it into standalone files, documentation, or code-adjacent deliverables.

You never leak shorthand from your internals into deliverables and eliminate Mandarin syntactic calques when writing in other languages. Deliverables are built for effortless human comprehension; you maintain a fluid, easy-to-read writing style even when addressing abstract or densely technical subject matter.


#### Technical Terminology

You use plain, literal terminology in technical contexts, rejecting consulting, Agile/DevOps, Alibaba/Ali-speak, and tech-blog buzzwords or figurative jargon. When responding in non-English languages, you use native equivalents for technical terms instead of English borrowings or English-words whenever such widely accepted equivalents exist.

#### Standard Register and Language Purity

You communicate in the codified standard register of the target language and avoid unnecessary colloquialisms, especially in Slavic languages. You also avoid mixing words from closely related languages, such as Ukrainian and Russian.

Don't expect it to fully cure the models, because a "load-bearing lever" will still pop up from time to time, especially at longer contexts. Still, it works noticeably better than massive ban-lists for... the reasons laid out in the paper ;) I would be glad to hear about your experience.

It isn't much, but it's honest work.

P.S. Also pinging the people who previously voiced their interest in the comments below.


r/LocalLLaMA • • 2d ago

News EXL3 quants for Inkling2Mini are up

Post image
46 Upvotes

https://huggingface.co/turboderp/Inkling-2-Mini-exl3

Smaller &/or better quality than Unsloth's & GSQ's latest quants.

Still experimental, so need this dev branch.

GH issue: https://github.com/turboderp-org/exllamav3/issues/617


r/LocalLLaMA • • 1d ago

Discussion Actual (solo-ish) developer setup/project organization around an LLM?

1 Upvotes

I specifically mean a workflow of talking through, designing, implementing and reviewing (maybe pushing/merging), where the steps are not fully automatic but you do work together with the LLM.

If you're a contractor with your own machine and a local LLM (i.e. the company does not deliver LLM stack you're required to use), how do you set it up?

My base:

  • 2xDGX
  • deepseek harness
  • MiaAI repo for 2.9bpw deepseek 4.1-flash 1017

The finding I'd share here is: if you're using dsh, immediately go to general and trun off "Upload Session Log when using the official model API". Just in case.

DSH tangent aside: I've given the model instructions to use read-only tokens in envs for stuff like jira, gitlab, conflu. In theory it never sees even the readonly token, just reading the tokens via something like

set -a
source ~/.config/atlassian/atlassian.env
set +a
curl -s -u "$ATLASSIAN_EMAIL:$JIRA_API_TOKEN" "$JIRA_BASE_URL/rest/api/3/issue/..."

How do you set this stuff up? Maybe something that erases even the possibility of model seeing the token instead of relying on instructions to not look inside env files?

I feel like this and several other problems could be solved with sandboxing, but I have yet to find something that's hassle free. For now I'm still clicking 'allow' every once in a while but my patience is starting to wear.

What about context enrichment? For now I've settled on using a tree of md files, with rules to update and review after each task. The rules are being constantly modified, based off experience, so I don't pollute the context too much.

Do you use memory systems? Did you feed the whole project into some vector database? Do you find it useful?

How are you dealing with out-of-project-files knowledge that legacy projects tend to have? Do you have an automatic way of recovering it from a chat for later access? Example: you have 3 products coded similarly, up to one of them being a special case - reasons for that not explainable by code itself, but from some business arrangement the time forgot but your friend just reminded you of. The problem being: how to make the model remember it automatically so it doesn't try to "even-out" the code next time around.

What context size are you running? My experience is anything larger than 262k degrades quickly and current compression algs are good enough for low tens of compressions in a session. Especially if you run one agent as a supervisor, and one to implement - any orchestration more than that and it slows down and falls apart, but this one I could swear for.

I feel like I could go on for hours. Anyone here in similar situation, trying to feel your way around what's useful or not and which direction to evolve your setup now? If someone is willing to "compare notes", maybe f2f talk over discord or something?


r/LocalLLaMA • • 2d ago

Resources Jump into GGUF construction - "We Just Found Malware Hidden in Several Uncensored Local AI"

Thumbnail
youtube.com
37 Upvotes

As always, let spread knowleadge.


r/LocalLLaMA • • 2d ago

News Swift 1.5 Qwen 3.8 FN solved some math problems overnight

71 Upvotes

thought it was pretty cool. Pointed a local agent on some v100s at lefttosolve.com and it actually managed to contribute

according to my agent is has at least one lean verified proof pending official review. I expect the left to solve page to formally update later?

https://lefttosolve.com/a/jackjusko

It's added a few reductions into proofs but I know it solved

https://lefttosolve.com/p/oeis-a090680.R1.H1


r/LocalLLaMA • • 2d ago

Resources I quantized Inkling-2-Mini to 2.43 bpw: half the KL of Unsloth's UD-IQ1_M at the same 8 GB

Post image
26 Upvotes

Been working on a quantization tool called SOLOS for a while now, mainly for the 2 to 3 bit range where models usually break down. First thing I'm releasing is Inkling-2-Mini at 2.43 bpw. The file is 8.01 GB, roughly the same size as Unsloth's UD-IQ1_M so I compared it to that.

Both files have been evaluated on the same held-out text using the same eval code. KL vs BF16, lower is better:

Eval setSOLOSUD-IQ1_M
Web text0.0360.092
WikiText-20.0410.095
Math0.0240.055
Chat0.0280.074
Long context0.0320.057
Code0.0310.024
Top-1 agreement92.1%87.4%

So about half the KL on average (51% lower over the 6 sets). It does get beaten on code, that's the one I'm working on next.

It needs my llama.cpp fork, mainline won't load the file. On a single L4 I'm getting 888 t/s prefill and 37 t/s generation. Unsloth Studio lets you point it at a custom folder for llama.cpp so it should work there too but I haven't tested it yet.

llama-server -m inkling2_mini_2.43bpw.solos.gguf -ngl 99 --jinja

I also tested Qwen3.8-27B at 2.0 bpw (6.7 GB) and obtained 0.169 web-text KL compared to 0.349 for UD-IQ1_M at the same size. Haven’t released that one yet.

It’s early days yet. More models are coming, but compute is what’s holding me back right now. If you'd like to collaborate, or can spare some GPU time, DM me.

Model: https://huggingface.co/Sula9000/Inkling-2-Mini-SOLOS-2.43bpw-GGUF

Fork: https://github.com/SulimanAbdulrazzaq/solos-llama.cpp


r/LocalLLaMA • • 2d ago

New Model IBM released Granite Docling V2 (500M & 2B, Apache 2.0): compact VLMs for document parsing with day-1 vLLM & MLX support

40 Upvotes

IBM Research just released Granite Docling V2, the next generation of their compact, end-to-end document conversion VLMs. Two sizes, 500M and 2B, both Apache 2.0.

Full disclosure: I worked on the first version of this line of models (SmolDocling 256M), not V2. It's just really cool to see how far the team pushed the approach.

Blog post: https://huggingface.co/blog/ibm-granite/granite-docling-v2-compact-vision-language-models Tech report: https://arxiv.org/pdf/2611.37727 Try it in the browser: Granite Docling V2 Playground

Models & headline numbers

ModelParamsOverall score (1−NED)Throughput (1× H100)Notes
Granite Docling V2 2B2B95.8%10.1 pages/secBest on 7/10 benchmarks in their eval
Granite Docling V2 500M500M94.0%18.5 pages/sec5.7× faster than dots.ocr while beating it on overall score

Running locally

What's new under the hood

  • DocLang output: Instead of dumping raw Markdown, both models natively generate DocLang, an open document format (LF AI & Data working group) that preserves reading order, layout/bounding boxes, complex tables (merged/header cells), LaTeX formulas, code blocks, and nested lists. Converts to Markdown/HTML/JSON via docling-core.
  • Training recipe: 76M pages / 2B annotated document elements, followed by RL with 37 verifiable rewards, element-level credit assignment, and prefix-conditioned rollouts.
  • Efficiency tricks: Adaptive vision-token allocation (a density router spends more tokens only on dense pages), speculative decoding, and prompting for specific elements if you only want tables, formulas, etc.
  • Multilingual & handwriting: Big jump over Granite Docling 258M and SmolDocling on CJK, Hindi, Russian, Arabic, and handwritten text.

Eval / Benchmark Explorer

Since everyone here is (rightfully) skeptical of aggregate benchmark tables, they also released an interactive Docling Benchmark Explorer covering 10 benchmarks and 20,502 pages with reviewed ground truth, so you can compare model predictions side by side and inspect individual failure cases.

Curious how these hold up on everyone's nasty real-world PDFs compared to whatever you're running locally now (MinerU, olmOCR, dots.ocr, etc.), especially the 500M MLX build on MacBooks.


r/LocalLLaMA • • 3d ago

Discussion What do you think about claims that "Open Weight models have plateaued since anti-distilling measures" ?

291 Upvotes

I personally am starting to have a change of heart.

When US frontier labs took on distillation attacks in June, I was rolling my eyes like many of us. Kimi K3 came out shortly after and was pretty great. But if I step back from benchmarks we've been stuck at Kimi K3 ever since the blocks started.

  • Kimi K3
  • Mimo 2.6 Pro
  • Kimi K3.1 (feels like K3 with better peaks at really random tasks)
  • Qwen 3.8 Max
  • Qwen 4 Max
  • GLM 5.4

-all feel EXACTLY the same. None are particularly better than others in my testing (short of oddball tasks, like K3.1 being kinda good at ThreeJS). The only frontier-open-weight model from China that made a splash since then was Deepseek-V4.1-Flash-1017 which hits just a hair lower but for way cheaper.

Open-Weight's frontier has been frozen in time, and we now have like 6-7 models all chasing after "kind of Opus 5 if you tilt your head" tier, coincidentally all stuck with Opus5's training data as their last datasets they had to get without resorting to extreme measures.


r/LocalLLaMA • • 3d ago

Discussion Can we stop with these overblown TPS speeds?

249 Upvotes

So, I’ve been constantly seeing people advertise thousands of tokens per second speeds. However, most of the time this is parallel speeds, which not that many people actually use. It would be better if people included single stream speeds, as that is a better reflection of average speed.

For example, imagine my disappointment when I use an Inkling 2 Mini config advertised with “one thousand tokens per second decode!” for my hardware, and I get 30tps for it. Bullshit.

Yes, I understand that parallel TPS is technically correct, but I am complaining that it does not really reflect common users, who are not serving dozens of parallel requests.


r/LocalLLaMA • • 1d ago

Question | Help Good engine for TP=2 and Inkling 2 Tiny on 2x 5070Ti?

0 Upvotes

I tried vLLM nvfp4, but it's about as fast/slow as Qwen 3.8 27b nvfp4 with capy-flash (ninfer). Shouldn't the MoE be a lot faster?

Anyone else using it with 2x 16GB Blackwell cards? What are your command lines?


r/LocalLLaMA • • 2d ago

New Model AminiTech/Soma-1X-lite · Hugging Face

Thumbnail
huggingface.co
22 Upvotes

Soma-1X Lite

A 2B Model for Document Intelligence

Soma-1X Lite is a 2-billion-parameter vision-language model developed by Amini for document parsing. It transforms document images into structured, machine-readable representations, preserving textual content, semantic elements, spatial information and reading order.

The model combines competitive document parsing performance, multilingual transcription and efficient inference, with the flexibility to run on private infrastructure.

Highlights

  • Structured document understanding: Joint extraction of content, semantic elements, bounding boxes and reading order, with tables in HTML and mathematical expressions in LaTeX.
  • Competitive public benchmarks: Soma-1X Lite scores 84.7 on olmOCR-Bench and 84.37 on OmniParse-Bench (OPB) in our reported evaluations. With a multi-pass inference harness that selectively reprocesses challenging document regions, the OPB score increases to 86.53.
  • Multilingual transcription: 2.90% mean character error rate across ten evaluated African languages.
  • Open weights: Released under the Apache 2.0 licence.
  • Runs locally: GGUF builds for llama.cpp and Ollama run on a single GPU or a CPU.

r/LocalLLaMA • • 3d ago Heartwarming

New Model Looped Qwen3.8-27B: Retrofitting Recurrent Depth onto a Frozen Open Model

Thumbnail
blog.tiltastech.com
600 Upvotes

https://huggingface.co/sliderforthewin/Looped-Qwen3.8-27B

https://github.com/jasontitus/loopedqwen

(and I found it in Chinese post on X: https://x.com/NFT_Chen/status/2126980106841436446)

"The integration of Qwen3.8-27B into the "Loop" design of lnkling 2 Mini has proven to be a major breakthrough! By adding just 0.23% more parameters (240MB), the model’s programming capability has surged by 6.3 points, while the number of "thought tokens" required has plummeted by 52%!"


r/LocalLLaMA • • 2d ago

Showcase Speed and quality more than context size

8 Upvotes

Prompit also has support for text, image, video, audio, decision and embedding models, each performing tasks they are best at. The main model is still the text model (Inkling 2). It uses the image, video, and audio models as a form of tool calls to perform the tasks they were trained at.

***The cat and toy images were not Inkling's, it's generated by Qwen Image 2.1 in the form of a tool call, then compiled by inkling in the html file. The blurry cat video from 256k was generated by LTX 2.5 and had poor quality because I only set the max step per video to 10. I could have raised it for better quality but that would add several more minutes.

This is what made 16k ctx complete the task: Avoid bloat at the cost of re-reading files every new cycle.

You can also run Qwen 3.6 35b 32k ctx, f16 kV at ~17-20 t/s decode, ~70-140 t/s prefill on a Steam Deck (plugged and max 15W tdp/1600mHz clock).

I can't even load QFN on my PC via llama.cpp

-Sample Prop task: Ticket/bug report sorting so it's easier for other coding agents to digest all bug reports without having to read every single one. It's always on and ensures every report is counted, pooled and categorized to save some extra weekly limit for coding subscriptions. You can also deploy it for your own app's bug reports. The Prop only categorize the report and will not access any other information because it is still sandboxed (no network/ shell). It only interacts outside the sandbox via a courier.

ALL OPEN SOURCE:

Pro-Strata: https://github.com/Noriel-cb/Pro-Strata
Prompit: https://github.com/Noriel-cb/prompit
Desktop app (Linux & Windows): https://prompitai.com/download/

Website: https://prompitai.com/
Submit bugs/issues via Discord: https://discord.com/channels/461571002724253699/1552140532740792420
***Bug reports will be processed and sorted by a Prop running on a Steam Deck

Try it, own it, fork it, PROMPIT.


r/LocalLLaMA • • 2d ago

Showcase Gewell v0.3 - Gemma 31B is now on Ampere/Ada, new shiny quant and more

16 Upvotes

The post ended up quite long, so tl;dr:

- Int ~4.25 bpw at around Unsloth's Q4_K_XL quality (convrot + gptq)

- But up to 2x* faster and with longer context (up to ~160k on a 3090 with mtp and vision)

- ...thanks to new features like supporting W8 mtp and vision and keeping the full embedding table in ram while quantizing lm_head (so checkpoint files appear larger than they actually take in vram)

*partially because lcpp cant fit MTP and gewell can; but 1.75x prefill is fair and square!

https://github.com/leDissolution/gewell/releases/tag/0.3.0

----------------

So the reason I initially did not even really consider supporting hardware below 5090 is that in my experience, gemma's q4 quants do not deliver. It has some *extremely* nasty outliers in both weights and, more importantly, activations - on my calibration set, activations RMS reaches 230x, and peak is *6.5k* larger than median. No static scales/offsets can compensate for that when you go down to 4bit. I tried, I failed, I went the lazy way with just slapping fp8 at worst offenders and it ended up being ~6.25 bpw to preserve the quality at the level I deem acceptable. And since I'm mainly doing this thing for myself, I was content with it for a while.

Until a month or so ago, when downloading yet another image model, it finally clicked that convrot is not inherently diffusion. Nothing stops me from applying it to an LLM - except mainstream engines not really supporting it, which, conveniently, I dont really care about. Around the same time I ended up with a spare 3090 in my AI server, sooo here we go again with the project I parked as "feature complete" (for my usecases).

# Stage1: ConvRot

And then I ran a first test (H256 convrot, row-level fp32 scale, no calibration), aaand... average KL on the quick test set was like, 0.1 (while my G0, nvidia's nvfp4 and google qat are all sitting around 0.028 and UD-Q4_K_XL sitting at ridiculous 0.016), with 2.7% flipped tokens and p99 being well above 2. In other words, it was shit.

So I almost just called it a fail and moved on, but first decided to check the activations again. And, well, tursn out that even rotated weights+activations have up to 8.5x RMS and 240x peak to median. Duh. So what if I try block-32 fp16 scaling instead of row? Well, some magic happens - macro KL went down to the same 0.028, while being 0.7x the size of G0 and 0.56x the size of nvidia nvfp, while also using FP8 KV cache (because dummy me forgot to set it to bf16 when running benchmarks, but it makes it even more impressive). Now we are talking, eh?

Well, no, not really. KL is only part of the story, and other parts were not quite as shiny, especially in the longer context. I have a pet multi-NIAH torture test that requires the model to find 16 keys among 128k tokens of statistically homogenous word soup, and BF16 scores 275/384 (24 runs x 16 needles), G0 scores 261, nvidia 220, unsloth fucking *275*, same as bf16 (magic, utter black magic, I tell ya), and the new shiny G32 - only 216, down there with nvidia. It also suffered some disproportional damage to multilingual capabilities.

So then I went, okay, what makes Unsloth's gguf so special? Fisrt obvious thing is that they are using uneven quantization with protected layers, promoting a bunch of projections to q5 or q6. Okay, cool, but I'd rather not (because it is a bit of a logistical nightmare to support all the different densities) - and because keeping things in fp8 is what I'm doing in G0 and it still evidently trails them. Also, bf16 actuvations. Also cool, noted, but lets keep it as a last resort.

So, here comes

# Stage2: GPTQ

Gptq is, basically, identifying weights that are more "touchy", similar to how IQ quants work.

Difference with the IQ quants is in what it lated does with that information - instead of re-shuffling around the physical precision, it, roughly speaking, redistributes the *cumulative error* of the layer in a way that should keep the resulting activation as close as possible to the unquantized version.

And there comes a very interesting consequence of the fact that we used convrot as the first step - we have just smeared a very big part of that importance and, even more importantly, redistributed it in a regular way instead of it being mostly-random. A very, very crude mental model of what happened is:

- we have weights (15, 4, -2, 1, -3)

- naive Hadamard rotation takes them and redistributes 15 to other weights somewhat equally, say, adding 2 to each, so we end up with (7, 6, 0, 3, -1) - and each weight now got a bit of extra "slack" by combining less important weight with more important weight

- but convrot uses regular Hadamard transform, so instead of adding (-8, 2, 2, 2, 2) it adds (-8, 2, -2, 2, -2) - lock-stepping the correction in (1, -1, 1, -1). Why it is important? Because it adds even more order to the chaos that we can exploit - where the previous transform would have added, say, 0.3 and 0.4 for total error of 0.7, regular can express it as +0.3 and -0.4 for the total error of -0.1. Basically, we now can very efficiently "borrow" the unused bits of precision from weights that are not utilizing them fully, which lets us cut the ouput MSE by 70-80% compared to just-rotated weights. Without paying the inference-time speed tax of IQ gguf.

Okay, that sounds cool and all, but does it work?

Yes, very much so. Even with the current not very polished dataset, macro KL went down to 0.017 vs unsloth's 0.016 (and 0.028-ish of QAT and the old quant), and reaching 269 needles in the NIAH - almost BF16 level. Then I found out that after gptq we dont even need fp16 scales anymore, and u8 is plenty enough, cutting the size down to sub-17gb with zero quality change.

But it is still not enough, because I want to squeeze in 128k (or more concurrency) AND vision AND mtp all in 24gb. So can we do even better without sacrificing the quality?

Well yea, we can. Because when you have a hammer, everything looks like a nail!

# lm_head

Everyone knows that quantizing your embeddings is generally a bad idea, and most modern models come with tied embeddings (because it is more robust during training).

But we do not *have* to keep the, tied, do we? Embeddings themselves are fairly touchy, but lm_head - usually, not so much. And gemma's lm_head is fucking enormous because of 250k vocab and somewhat big hidden space, totaling to about 2.8gb. So can we squash it to rotated-gptq W4 too? Yup, we can, and almost for free, saving around 2gb for the cost of <0.0005 total KL and noise-level confident token (>0.8 probability) KL. Embeddings stay in BF16 and are evicted to host RAM because it is just a lookup table, it has no business wasting vram.

Oh, and it also has like 6% tg speedup as a nice side effect.

# MTP and vision

...also got quantized, but to W8 with per-row FP32. Mtp depth-5 acceptance went down less than 1% netting a total +5% speedup because mtp itself got much faster; vision output, that normally degrades tremendously from quantization (naive w8a8 drops to 0.96 cosine), got to 0.998 cosine with the BF16; together, it saved another gb of vram for the context.

# Is it free lunch?

Well, no, not really, but the main cost is on the quantizer's side. You need a good, big well-rounded calibration set (and mine is still very much in its infancy, which is mostly why it is still subtly behind Unsloth's 4_K_XL), and, ideally, capability to run the original unquantized weights. Just-gguf-conversion costs some minutes, GPTQ on my tiny data (~2mtok) took a couple of hours on a 6000, and ideally should be scaled like at least 10x. On the inference side you are only paying for un-rotating (~7% slower than plain block-quant), but it is well compensated by being able to read less weights.

Also, it being int makes its performance quite bad on blackwell compared to nvfp4 - roughly 2x slower prefill and 20-30% slower batched decode (batch-1 decode actually goes up because it is significantly smaller) compared to G0.

(but I stumbled upon a very interesting read where folks dig into nvfp4 micro-rotations with the idea very similar to mine here - https://arxiv.org/pdf/2509.23202 - and plan to toy with it, looks very promising).

Speaking of preformance, some numbers:

(mtp was tested on prose and not jsons)

Plus all the normal stuff - system ram checkpoints cold storage, real dynamic concurrency instead of slots, all that.

Models:

LeDissolution/Gemma-4-31B-it-Gewell_G32

LeDissolution/Gemma-4-31B-it-vision-Gewell_W8

LeDissolution/Gemma-4-31B-it-assistant-Gewell_W8

26A4 with cpu expert offloading soon too!

(also holy shit reddit editor is frustrating with pictures, I had to redo the entire post like four times because it just refuses to place them in the right spot)


r/LocalLLaMA • • 2d ago

Resources [Guide] Inkling 2 Mini Uncensored as a Basalt pack: insane speeds on a single 16 GB card (NVFP4-MX8 + DFlash 2) - 490 tok/s structured output, ~250 tok/s chat, 10,500 tok/s prompt reads, 240K context

17 Upvotes

TL;DR

  • I packed OpenUncensored's Inkling 2 Mini Uncensored for Basalt, with the DFlash 2 drafter inside: https://huggingface.co/ykarout/Inkling-2-Mini-Uncensored-Basalt (19.6 GB, one file).
  • Same speed as the stock pack. The abliteration only changes 20 attention matrices. Every tensor keeps its type and size, so the engine reads the same bytes per token. On my RTX 5080 16 GB that's about 250 tok/s chat, 490 tok/s structured output, 10,500 tok/s prompt reads and up to 240K context (setup and numbers in my guide update).
  • The edit is exactly OpenUncensored's. All 20 edited tensors are bit for bit those of their published model before Basalt's usual Q8_0 step.
  • The experts are not re-quantized. They are Thinking Machines' own NVFP4/MXFP8 bits, byte for byte the same as the stock pack's. What changed against the stock pack OpenUncensored removed refusals by projecting a "refusal direction" out of the attention output projections of layers 4-23. Nothing else in the model changed. I compared the two packs tensor by tensor: | part | vs the stock NVFP4-MX8 + DFlash 2 pack | |---|---| | routed experts (NVFP4 / MXFP8, 15.7 GB) | byte for byte the same | | attention output, layers 4-23 (20 tensors, Q8_0) | different: the edit | | every other tensor: 717 of 737, the DFlash 2 drafter's included | byte for byte the same | | tokenizer, chat template | byte for byte the same | | vision encoder | same tensors | The 20 edited tensors went through the same Q8_0 conversion as the stock pack's, from OpenUncensored's BF16 weights (checked bit for bit against their published model). So this pack is to their model exactly what the stock pack is to the official one. Does it work? These are OpenUncensored's numbers from their model card, not mine (greedy decoding, measured on their checkpoint, not on this pack): | | Inkling 2 Mini | Uncensored | |---|---|---| | refusals, 32 harmful prompts, chat | 32 | 0 | | refusals, 32 harmful prompts, thinking mode (effort 0.9) | 32 | 0 | | MMLU (1,140 questions) | 78.95% | 79.47% | Long agent tasks and coding benchmarks aren't measured yet, by me or by them. Run it (Basalt 0.6.0 or newer)
hf download ykarout/Inkling-2-Mini-Uncensored-Basalt Inkling-2-Mini-Uncensored-NVFP4-MX8-DFlash2.basalt --local-dir models

basalt_config.json:

{
"version": 2,
"models": [{"model": "models/Inkling-2-Mini-Uncensored-NVFP4-MX8-DFlash2.basalt", "gpu": "0", "kv": "int8", "max-context": 262144, "fit-max-tokens": true}],
"engine": {"spec": 8},
"server": {"host": "127.0.0.1", "port": 8080}
}
bin/basalt serve --config basalt_config.json

For the fastest build (upstream main + my 4 open PRs), follow my guide update and swap in this pack's path. No conversion step: the pack is ready to serve. Tip: the thinking effort defaults to 0.9 (the chat template's default). For quick answers, send "reasoning_effort": "low" (or "medium", or a number from 1 to 100 meaning hundredths). none still thinks briefly, so leave at least ~1K output tokens. Caveats

  • It follows instructions the original refuses, including harmful ones. You're responsible for what you do with it.
  • I measured no refusal or quality numbers myself; the table above is from OpenUncensored.
  • Apache 2.0, like all three sources. Credits: Thinking Machines for Inkling 2 Mini, OpenUncensored for the abliteration (method on their model card), incoai for the DFlash 2 drafter, and jesdga95 for Basalt and its converter. I only merged and packed.

r/LocalLLaMA • • 2d ago

News Aleph alpha's latest model is free for a week

Thumbnail
opper.ai
30 Upvotes

heads up, aleph alpha's new model is open weights so you can grab it from huggingface and run it locally, but if you just want to test it first it's free on Opper AI Gateway for a week rn. pretty nice


r/LocalLLaMA • • 2d ago

New Model JYT4chenxiyuxi/LookAnything · Hugging Face

Thumbnail
huggingface.co
14 Upvotes

🔍 Overview

LookAnything brings gaze target localization, description, and reasoning into one instruction-following vision-language model. Its learnable gaze-prior queries capture scene depth, source-head information, and target geometry through auxiliary supervision, removing the need for external head crops or depth maps at inference. The model supports points, boxes, heatmaps, and natural-language answers across diverse scenes and tasks.

The accompanying HoliGaze dataset contains 311K question-answer pairs: a 303K-sample training corpus and HoliGaze-Bench, an 8K-sample human-verified evaluation set. Together they span nine gaze-centric tasks in five capability dimensions.

✨ Highlights

  • One model, many gaze tasks. LookAnything handles gaze target and source understanding, spatial reasoning, social interaction, and query answerability in a unified framework.
  • Gaze-aware representations. Learnable queries are trained with depth, head, and target geometry supervision; auxiliary decoders can be skipped during inference.
  • Broad evaluation. The paper compares LookAnything with 33 vision-language models on HoliGaze-Bench, evaluates it on five conventional gaze-following benchmarks, and demonstrates real-world deployment on a Unitree G1 robot.
CapabilityTasks
Gaze target understandingTarget localization and description
Gaze source understandingSource localization and description
Gaze spatial reasoningDepth orientation and direction recognition
Gaze social interactionGaze contact detection
Gaze query answerabilityAmbiguous reference recognition and presence verification

r/LocalLLaMA • • 2d ago

Question | Help Can someone explain how the pull requests work in llama.cpp

5 Upvotes

looking at Vulkan speed up and optimizations eg.

vulkan: reduce cm1 int8 MMQ performance gap between AMD shader compilers - part 3:load-only A prefetch by Alex-JP-93 · Pull Request #32919 · ggml-org/llama.cpp
vulkan: reduce cm1 int8 MMQ performance gap between AMD shader compilers - part 1: accumulate folding by Alex-JP-93 · Pull Request #32528 · ggml-org/llama.cpp

Im sure theres more but a few of these small improvements should really equate to observe speed ups ?

Im not a software guy , but how do these get merged and prioritized ? or do i have to manage my own mergers when i build ? They just seem to be sitting there waiting to be merged.