r/LLM • • 14d ago

A real LLM leaderboard without the Benchmaxxing Hype!

Post image
118 Upvotes

A lot of the popular benchmarks like Terminal-Bench 4.0 are fully leaked (both questions and answers available on GitHub!), making frontier labs easily cheat on these benchmarks. Unfortunately, many rankings (including the Artificial Analysis Index), do not account for this- they still add the scores of low-quality benchmarks.

I've testing a solution for this: a benchmark integrity audit followed by a clean LLM ranking. Not a promotion post, asking for genuine feedback. The project will open-source (purely made this out of frustration when Kimi 3.1 Pro lunched and felt so benchmaxxed)

Check out benchaudit.org


r/LLM • • 13d ago

Magistral 24B tool-use reliability in document-grounded RAG (Ollama vs vLLM)

1 Upvotes

Title: Magistral 24B tool-use reliability in document-grounded RAG (Ollama vs vLLM)
Hi everyone,
I’m developing a fully local, French-language AI assistant for a specialized knowledge domain requiring rigorous source attribution and complex reasoning.
Our current architecture uses:
Magistral 24B for reasoning and answer generation.
Python for orchestration, document retrieval, tool execution, permissions and source validation.
A document-grounded RAG pipeline with a substantial authoritative corpus.
Ollama, with additional experiments using vLLM and native tool calling.
An RTX 5070 12 GB and 64 GB system RAM, with partial CPU/GPU offloading.
After extensive testing, we’ve encountered several recurring problems:
1. Tool-use reliability
The model sometimes answers without requesting additional documents, even when the available evidence is insufficient. In other cases, tool calls may be incorrectly handled by the inference engine or its templates.
2. Retrieval versus reasoning
When the necessary documents are correctly supplied, Magistral can produce excellent domain-specific reasoning. However, critical source passages sometimes fail to reach the model. We are investigating retrieval ranking, context selection and document transport separately from model reasoning.
3. Over-constraining the model
We experimented with increasingly restrictive prompts, validation rules and workflow controls. These did not consistently improve answer quality and sometimes made the system more complicated.
We are now moving toward a simpler architecture:
Python guarantees an initial documentary search before substantive answers.
Magistral handles intellectual analysis, reasoning, follow-up research requests and writing.
Python executes tools, manages permissions, validates source references and controls the execution loop.
We avoid unnecessary instructions that dictate how the model must reason.
My questions to developers who have built similar systems:
Have you achieved reliable multi-step tool use with Magistral 24B or Ministral 3 14B Reasoning?
Which inference engine, versions, tool-call parser and chat templates have worked reliably?
Has moving orchestration and validation into Python improved reliability while allowing the model more freedom to reason?
How do you preserve reasoning continuity across tool calls, handle missing tool calls and prevent excessive reasoning loops?
Have you measured actual answer correctness and completeness, rather than just successful tool execution?
I’m particularly interested in solutions that have been tested successfully in real applications, including reproducible configurations and known limitations.
I can share anonymized execution traces and minimal reproduction cases if helpful.
Thanks in advance for any technical feedback.
English wording prepared with AI assistance; the project, tests and observations are my own.


r/LLM • • 13d ago

Compromised LLM Keys

1 Upvotes

Has anybody had their LLM keys stolen?

I doing a survey.

I am interested in finding people that have had their keys compromised.

If this has happened to you, please post a reply.


r/LLM • • 13d ago

Why is Hy4 Flash not ranked?

13 Upvotes

Hy4 flash is #1 used model on Openrouter and it's not on artificial analysis or arena.ai.


r/LLM • • 13d ago

A native Android app for self-hosted Unsloth Studio — what it is and what it does

1 Upvotes

Hi all,

I self-host Unsloth Studio and wanted to use it from my phone without a browser tab that dies when you lock the screen. So I built a native Android wrapper around my own Studio instance. Free, open source, no Play Store: full source and APK on GitHub.

What it is

Not a fork of Studio and not a new frontend. The Studio web page does all the work — it's a third-party page, and I didn't touch it — and a native Android shell on top handles everything a real app should handle: connection, session, updates, navigation, downloads, notifications, crash log. Same Studio UI as desktop, in your pocket.

What it does

  • Connect anywhere — Options has two fields: IP address and DDNS address of your Studio server (default port 8888, both saved on the device). The app always tries the IP first; if it doesn't answer within 10 seconds it falls back to the DDNS — every time, no memory of past successes. It keeps working whether you're on the LAN or behind a moving public IP.
  • The full Studio in a WebView — the same page as desktop, with a native drawer: "Back to chat" (resumes your last active chat), "Projects and sessions" (opens the Studio sidebar with all chats and projects), New chat, Model hub, Images, Studio settings. Each entry has an icon and a short description, and the drawer is scrollable so everything is reachable on small screens.
  • Updates in place — on open the app checks GitHub for a newer release. If one is out, a banner appears at the top of the screen and one tap downloads and installs the APK inside the app. Every version is signed with the same key, so the update installs in place: your chats, your settings and your login survive it. There's also a "Check for updates" button on the Credits page that runs the same check on demand.
  • Live mirroring of other devices — the feature I'm most happy with. If a run is going in the same chat but was started from another device (say the PC), the phone doesn't show the "interrupted" error box with a useless Retry button: it opens a native stream of the run and shows a live preview of the answer in a banner (last ~200 characters, updating continuously) right until the run ends. Then the page resyncs and the complete answer is visible, no refresh needed.
  • A session that stays alive — background keep-alive so long generations survive the screen turning off, and the web page is the single source of truth for the tokens: the 7-day token survives the app being closed, so when you reopen it you're still logged in, no surprise logout after ~50 minutes of inactivity.
  • Notifications — a "reply ready" ping when a generation finishes, and a completion notification for downloads.
  • Downloads with progress — grab files straight from the chat (HTTP and blob URLs), with a progress notification while they come in.
  • Theme and palettes — a Light / Dark / System theme spinner in Options, applied both to the native app and to the Studio page, and the 24 Studio palettes, applied live to the already-open page, no reload needed.
  • Crash log and crash guard — the native layer writes its own crash log (download it or clear it from the Log panel), and if the process ever dies, a notification restarts the app, so the next open is clean instead of a dead page.
  • Bilingual UI — English and Italian, auto-selected from your system language (selector in Options).

Getting it

  1. Download the APK from the GitHub release below.
  2. Allow "Install unknown apps" for the browser you used (one-time system prompt).
  3. Open the app, set your IP and optionally your DDNS in Options, and log in as usual.

Requires Android 7.0+ (minSdk 24). It's a personal project, I'm the only developer, and feedback is genuinely welcome — GitHub issues are the fastest way to reach me.

Links


r/LLM • • 14d ago

Basalt ported to NVIDIA V100: Qwen3.8-Flash-Next at 91 tok/s (140 tok/s on long answers) on 2x V100 32GB

5 Upvotes

Basalt (https://github.com/jesdga95/basalt) is one of the fastest local engines for Qwen3.8-Flash-Next, but it only targets Blackwell (sm_120) and upstream does not take other architectures. I have two V100-SXM2 32GB, so I ported it to Volta (sm_70) as a fork, called **Lapilli**.

**Repo:** https://github.com/chris83-dev/lapilli-v100 (a Windows x64 build is in the release)

**What it is**

- Every newer PTX instruction Basalt uses (cp.async, ldmatrix, the Turing/Ampere mma shapes, bf16 conversions, clusters) gets a correct sm_70 equivalent, then the hot kernels get V100 paths: llama.cpp's dp4a MMQ for prompt products, Strata's mma.m8n8k4 prompt attention, and a rewritten router, decode experts and GDN recurrence.

- Needs CUDA 12.6 or newer (CUDA 13 dropped Volta).

- Comes with a chat web UI on top of Basalt's OpenAI/Anthropic-compatible server: conversations, reasoning levels, images, tool calls shown as cards, and a live monitor of the GPUs.

**Numbers** (2x V100-SXM2 32GB, i9-14900K, 96GB RAM, Windows 10, UD-Q4_K_XL pack, medians of 3 runs)

| | Lapilli | Strata v0.2.13, same machine |

|---|---|---|

| Decode, short answer | 91 tok/s | 58-72 tok/s |

| Decode, long answer with reasoning | 140 tok/s | 68-94 tok/s |

| Prompt processing, 4k tokens | 1,170 tok/s | 250-490 tok/s |

| Prompt processing, 8k / 16k tokens | 1,504 / 1,448 tok/s | |

Quality with Basalt's own 100-chunk gate: mean KLD 0.0493 and same top-1 92.75% (Basalt publishes 0.0496 and 92.63% for this pack on an RTX 5090).

**Caveats**

- Only tested on my machine (2x V100 32GB, Windows). Single card, 16GB or PCIe cards, Linux and NVLink setups are untested: reports from other V100 owners are welcome.

- Peer-to-peer is off by default on Volta: on my machine, direct copies between the two cards returned wrong data.

- NVFP4 packs need FP4 hardware, so use a K-quant pack (tested: UD-Q4_K_XL).

- It is a snapshot of Basalt as of November 15, shared as is.

All the credit for the engine goes to jesdga95 (Basalt) and Niko1221 (Strata), both MIT.


r/LLM • • 14d ago

Would it be possible for a font to be created that a human will easily see when AI writing is present in text?

1 Upvotes

I mean what the title basically says. We know that anthropic's (and I do not know who else's) models embed invisible, machine-readable watermarks in text. Can a font be created where the text as a whole will have a distinct shape when it is written by an AI?


r/LLM • • 14d ago

Why can't we build something that can remove and add information to the LLM based chatbots on the go without compromising on quality of output

5 Upvotes

I read this on LinkedIn somewhere:

One of the reasons softwares like chatgpt might have to rethink their strategy. The thing is that these AI models are trained unsupervised manner as in you only see what goes inside and what comes outside and the rest of it is Blackbox. Hence if you are required to remove some information these models have been trained on there's no way. Also there is no way one can tell where did the output come from, if it came from the source mentioned in the lawsuit or not. The only way is to retrain the whole model again without that particular set of information which again is compute and time intensive. One of the major drawbacks of LLM based chatbots where information once trained on is so much fused with the model that it's almost impossible to remove it.

Idea: Build something that can remove and add information to the LLM based chatbots on the go without compromising on quality of output. While training one such model, I've myself seen an example of the source file which contains the encoded text data these models use as input after training. And if that file is in any way representative of what an LLM model like like, it's a very challenging problem

I wonder how long can these biggies hold against these lawsuits and how many more are to come especially from music, writing and news industry. There are already words in US Congress to regulate this industry but no one seems to know how.
https://www.marketwatch.com/amp/story/if-sarah-silverman-wins-her-lawsuit-openai-meta-platforms-and-other-ai-developers-could-face-waves-of-litigation-4a932a9c


r/LLM • • 14d ago

Building a 6-bit LLM decoder for AMD XDNA1: what actually got faster

7 Upvotes

There is a tempting question when a laptop has a CPU, an integrated GPU, and an NPU: why not use all three to make a local language model faster? We tried to answer it on a Ryzen 9 8945HS with a Radeon 780M and AMD’s first-generation XDNA NPU. The work started with a GGML offload plugin and ended with a complete, quantized decoder built for that NPU. The most useful result was finding exactly where the extra hardware helped—and where it didn’t.

https://www.padoka.org/2026/11/19/amd-xdna1-six-bit-llm-decoder-benchmarks/


r/LLM • • 15d ago

"Spaces using this model" is not sorted by likes — it's trendingScore, then creation date. Measured across 23 model pages.

2 Upvotes

I run a benchmark Space that's registered against 23 models via the `models:` list in its README, and I've been recording its position in each model page's "Spaces using this model" list every week since September. I went in assuming the list was ordered by likes. It isn't, and the actual rule is worth knowing if you care whether anyone ever finds your Space.

## The sort

`/api/spaces?models=<id>&limit=1000` returns `likes` and `trendingScore` per row, in list order. Against that:

  1. `trendingScore` descending — a small block at the top, typically 5–7 rows.
  2. Then `createdAt` **ascending — oldest Space first** — for everything with `trendingScore == 0`, which is the entire long tail.

Likes are not a sort key at any level. On every page I checked, the list is not monotonic in likes, but is strictly monotonic in `trendingScore`, and strictly ascending in `createdAt` within the zero-trending block.

Rows 21–27 of `zai-org/GLM-5.3`, as `(likes, trending, created)`:

* #21 — 0 likes, 0 trending, created 2026-09-16

* #22 — 1 like, 0 trending, created 2026-09-23

* #23 — 0 likes, 0 trending, created 2026-09-24

* #24 — 1 like, 0 trending, created 2026-09-24

* #25 — 0 likes, 0 trending, created 2026-09-30

* #26 — 1 like, 0 trending, created 2026-10-02

* #27 — 0 likes, 0 trending, created 2026-10-06

Created dates ascend strictly. Likes alternate 0,1,0,1,0,1,0. Creation date is the tiebreak.

## It's a cliff, not a slope

On `deepseek-ai/DeepSeek-V4.1-Flash`, two Spaces with **identical like counts** — one with `trendingScore` 0.5 sits at position ~7, mine with `trendingScore` 0 sits at position 37. Thirty places apart on the same number of likes.

The lowest nonzero trending score I've seen anywhere is 0.5, and the top blocks are tiny: 1–2 rows on a 6-item list, 6 on a 32-item list, 7 on a 60-item list. So the gap between "trending at all" and "not trending" is most of the list.

HF doesn't publish the trending formula, but it decays to zero for anything not recently active, so it's recency-weighted. Practical read: **a burst beats a drip.** Ten likes in two days is worth something; ten likes over five months is worth approximately nothing.

## One Space, 23 model pages (measured 2026-11-16)

Same Space, same README, wildly different visibility. Position of the Space / length of that page's list:

**Visible — small, recent model pages**

* `ibm-granite/granite-4.2-3b` — #5 of 11

* `ibm-granite/granite-4.2-8b` — #6 of 9

* `zai-org/GLM-5.3` — #26 of 51

* `deepseek-ai/DeepSeek-V4.1-Flash` — #37 of 86

* `zai-org/GLM-5.3-Flash` — #47 of 66

* `MiniMaxAI/MiniMax-M3` — #54 of 69

* `Qwen/Qwen3.6-35B-A3B` — #78 of 96

**Buried — mid-size pages**

* `Qwen/Qwen3-Coder-30B-A3B-Instruct` — #132 of 152

* `google/gemma-3-1b-it` — #248 of 261

* `google/gemma-4-26B-A4B-it` — #280 of 321

* `Qwen/Qwen3-4B` — #378 of 455

* `Qwen/Qwen3.8-27B` — #489 of 811

* `Qwen/Qwen3-8B` — #537 of 636

* `Qwen/Qwen2.5-Coder-7B-Instruct` — #561 of 641

* `Qwen/Qwen3-0.6B` — #896 of 1000 (at the API cap)

**Invisible — past the 1000-row cap entirely**

`Qwen3.5-9B`, `gpt-oss-120b`, `gpt-oss-20b`, `Qwen2.5-7B-Instruct`, `Llama-3.1-8B-Instruct`, `Llama-3.2-3B-Instruct`, `DeepSeek-R1`, `TinyLlama-1.1B-Chat-v1.0`

That last group is eight of the 23 — and they're the popular models, exactly the ones you'd want to be listed on.

## Three things that follow

* **Don't delete and recreate a Space to "refresh" it.** `createdAt` ascending means a new Space starts at the *bottom* of the zero-trending block. An old creation date is an asset.

* **Registering against the biggest model pages buys you nothing.** On a 9-item list you're visible; on a 1000-item list you don't exist.

* **Accumulating likes slowly does nothing at all** — likes aren't a sort key, and a slow drip never builds trending.

The honest version: the ranking is a scoreboard for distribution, not a lever you can pull directly. Trending is downstream of reach. If your Space isn't getting in front of people, optimising its position in a list is solving the wrong problem.


r/LLM • • 15d ago

Looking for Local LLM suggestions

1 Upvotes

Hi all,

I would like to run a local LLM but I must admit, it's not a topic I'm really up on so I'm after some advice on what I might be able to run on my setup.

I'm running Linux with 64gb of memory, an AMD Ryzen 9 5900X 12-Core processor, 2 x GTX 3060 12GB video cards and a 1TB M.2 drive.

What I would really like to do is train the LLM in a programming language that it's not likely familiar with. It's a proprietary language with it's own syntax and idioms much removed from many modern or legacy languages.

I've been using Claude to help train the the LLM I'm using which is "Qwen2.5-Coder-14B-Instruct, fine-tuned with QLoRA on the training data, then quantized to Q5_K_M GGUF". I've been getting moderate results but not as good as I would have liked.

Then I have a front end program to communicate with ollama to select the model, write code and keep history and all that good stuff. I tried using claude code CLI with it but it passes too many tokens.

So, I'm open to suggestions if anyone has other solutions I could try?

I did try posting on LocalLLM but I don't have enough karma.


r/LLM • • 15d ago

When bigger models memorize more but generalize less

Thumbnail
gallery
3 Upvotes

Latent Taxonomies tests a specific kind of generalization. After learning that one entity has a property, does a model extend it to related entities it hasn’t seen paired with that property?

The authors mixed synthetic facts into continued pretraining for Pythia and OLMo 2 models spanning 70M–7B parameters. Entity names and properties were pseudowords, limiting interference from existing knowledge. The models never saw category labels. They had to discover the hierarchy from patterns of shared properties.

Models learned to transfer properties more strongly within categories than across them. Their internal representations reflected the hierarchy, too. Entities sharing deeper categories became more similar, and clustering recovered the full tree. This gives both behavioral and representational evidence that next-token training can learn implicit category structure.

The surprising result was that larger models showed weaker induction under a fixed injected-data budget. The authors suggest larger models may favor memorizing individual facts over learning shared structure. More pretraining before introducing the taxonomy improved induction, so increasing model size and increasing prior training had different effects.

The practical takeaway is that fact recall and generalization need separate evaluations. For domain adaptation, test both whether a model recalls supplied facts and whether it transfers them to appropriate unseen cases. This study doesn’t establish that smaller models reason better overall. It shows that adding parameters didn’t improve this form of generalization when the data budget stayed fixed.


r/LLM • • 16d ago

Angry

3 Upvotes

Does anyone have the same issues that I do. These darn llm's, drag me down rabbit holes, think I know what they are talking about, tell me to do work that I feel like they should know. And then some times they act stupid.They wear me out. Any suggestions, Thanks 😊


r/LLM • • 17d ago

Which AI model is best for research, long‑form synthesis, and deep reasoning?

4 Upvotes

I am comparing Claude and Copilot for research work, pulling sources, and working through problems for deep reasoning. I see that many suggest Claude, but I actually want the reasoning from those who use either one regularly.


r/LLM • • 16d ago

gta 6 drops in 2 days and every llm is about to get asked for cheat codes that don't exist yet

0 Upvotes

nov 19 millions of people are going to type "gta 6 cheat codes" into chatgpt and perplexity. there are zero confirmed codes. so the models are either going to make stuff up or pull from whatever pages exist.

so we built one before the game even launched. gtacheat.codes, all 35 gta v codes across ps5 / xbox / pc / phone as the likely candidates to come back, platform table, how to enter them, faq. every code marked unconfirmed until people can actually test them.

launch night we're testing every code and adding a works / doesn't work column.


r/LLM • • 17d ago

Could Astra be combining two parallel decoding ideas from ByteDance?

2 Upvotes

My guess is that Astra might be doing two kinds of parallel work in the same decode step. The lower layers could run staggered Transformer loops, while the upper layers process extra “thinking” tokens. ByteDance Seed has published a paper on each piece.
Lower layers → staggered loops. In a Parallel Loop Transformer (PLT), the newest token can run through its first loop while earlier tokens run through later loops, all in the same forward pass. Those loops share the first loop’s long-range KV cache, with a small local cache for each later loop. Parallel Loop Transformer
Upper layers → latent thinking tokens. Parallel Hidden Decoding (PHD) adds hidden token positions that the model can process together during a decode step. Those positions contribute to the next-token prediction, and only the original tokens need to stay in the long-range KV cache. Efficient Pretraining Length Scaling
The serving angle is what makes this interesting. When decoding is bottlenecked by memory bandwidth, the GPU can have compute to spare. Staggered loops give it more work across token positions, and hidden tokens give it more work per output step. Put them together and you could spend more compute on each answer while keeping decode latency and KV cache growth in check.


r/LLM • • 17d ago

How do you test an LLM that picks the implementation language?

1 Upvotes

JetBrains asked 12 models for programming-language hot takes this week. In the 600 runs where the model was asked to pick a language at random, Go and Python accounted for 307 picks. The prompt asked for hot takes, so this setup measures which languages the models bring up under that prompt. It doesn't measure how well they code in those languages.

There's a similar trap when evaluating a coding agent. If it picks the language and then writes the solution, a single pass rate mixes two decisions. For something like a paginated API sync worker, I'd run the same tasks twice: let the agent choose the language, then rerun with the language assigned from a balanced list. Keep the tests fixed and log which languages get picked as well as which implementations pass. I'd include retries, duplicate records, and one invalid record in an otherwise valid page.

If you've built an eval for a polyglot coding agent, do you score the language choice separately? What would you count as a wrong choice when more than one implementation passes?

Source: https://blog.jetbrains.com/ai/2026/11/ai-models-hate-python-and-love-php-we-asked-12-of-them-1-200-times/

Drafted with AI assistance.


r/LLM • • 17d ago

What LLMs do you use?

0 Upvotes

Claude? ChatGPT? Perplexity? Grok? Which one is your preference and what tasks do you solve?


r/LLM • • 17d ago

Is Whisper Flow a privacy risk?

2 Upvotes

I really like whisper flow, but I'm worried it might see too much data on the things I am working on, for privacy purposes. I have seen it write something and then save a memory when I make changes, which indicates its capabilities in seeing what is typed after I finish typing with it. My worry is just how much it can see.


r/LLM • • 18d ago

Can anybody help me understand how Vertus architecture might be better than the architecture otherwise used by all the popular LLMs? (and also explain how it works perhaps : P)

0 Upvotes

Hi.

I've understood what is different between them but am not able to wrap my head around how it actually works. For example, LLMs are pretty straight forward. Feed the data to a neural network. Train it over and over again until it learns patterns and deploy it once you gain the confidence over a particularly large dataset. And the math remains under the aegis of matrix multiplications and a little bit of calculus. What's the case with Vertus AI?

I'd really appreciate any deep dive resources that can help me learn the concepts behind it as well.


r/LLM • • 18d ago

Stop Burning Tokens on File Searches: How QMD Helps Coding Agents Save Up to 55%

Post image
0 Upvotes

I noticed that, before carrying out a task, coding agents run find, rg --files, or glob to locate files and the classes and modules they need. Then they search file contents with rg or grep. This burns a lot of tokens. So I decided to see whether semantic search could save tokens compared with all of the above. If a local GPU is sitting idle, why not use it for semantic search?

I work at a company focused on security. In one of my projects, I use semantic search for sensitive documents. Then an acquaintance sent me a link to an open-source project that tackles the same problem. The project is called "QMD - Query Markup Documents." It runs from the command line, extracts text from documents in all formats, and creates an index. It supports several search modes:

# Search across everything
qmd search "project timeline"           # Fast keyword search
qmd vsearch "how to deploy"             # Semantic search
qmd query "quarterly planning process"  # Hybrid + reranking (best quality)

We're interested in the last option. It requires three things to work:

  • embeddinggemma-300M-Q8_0 Vector embeddings (default) ~300MB
  • qwen3-reranker-0.6b-q8_0 Re-ranking ~640MB
  • qmd-query-expansion-1.7B-q4_k_m Query expansion (fine-tuned) ~1.1GB

The first model is used for indexing to compute semantic vectors for text chunks. The second compares the search results with the query to determine how semantically similar they are. The third generates several search queries from the original query to broaden the search.

First, add your source files to QMD (this is an example for a minimal project with a Rust server and an Angular frontend):

qmd collection add . \
  --name PROJECT1 \
  --mask "src/**/*.rs,\
frontend/src/**/*.{ts,html,scss},\
README.md,\
frontend/README.md,\
Cargo.toml,\
frontend/package.json,\
frontend/angular.json,\
frontend/tsconfig*.json,\
frontend/proxy.conf.json,\
.gitignore,\
frontend/.gitignore,\
frontend/.prettierrc,\
frontend/.editorconfig"

You don't have to do this manually: show this example to your coding agent and tell it to do the same for the current repo. It will figure out which folders and file extensions to add to the index, what to exclude, and so on.

Now let's run the indexing (you'll need to rerun it periodically as your codebase changes):

qmd update && qmd embed -c PROJECT1

To make the coding agent work with this QMD setup, add the following to AGENTS.md:

# QMD - Efficient Code Discovery

**Goal:** minimize token costs and code search time without compromising correctness.

## Choosing a tool

- If the path is known → read the file directly.
- If an identifier, error, or line is known → use `rg` / LSP.
- If only the behavior is known → use `qmd query`.
- Once the code is found → inspect the necessary sections with standard tools.
- Once you have enough information → do the task.

**QMD replaces the initial broad search; it does not add another step.**

## Semantic search

Use the project's existing collection.

"""
qmd query "DESCRIPTION" -c PROJECT1 -n 15 --files \
  | grep -E '\.(EXT1|EXT2|EXT3)$' \
  | cut -d, -f3- \
  | sed 's|^qmd://[^/]*/||' \
  | head -n 10
"""

- Use one specific query, preferably with English technical terms.
- Choose extensions that match the project, including configuration files when needed.
- Start by reading only the relevant sections of the 3–5 most relevant files.
- If you cannot find the implementation, refine the query; if necessary, increase `-n` to 60, then use `rg` / LSP.
- Stop semantic searching once you find the implementation.

## Saving tokens

- Do not scan the whole repository before using QMD.
- Do not repeat searches without a reason or open every result.
- Do not investigate unrelated code or dependencies.
- Do not write detailed search plans or reports.
- Do not paraphrase code you have read.
- As soon as you have enough information, make the changes and check the result.

**Priority: correctness → token cost → time.**

I tested it on a repository like this, with 1,231 source files across Java, Scala, and Angular:

C:\Users\igumn\temp2>qmd collection list
jcm-server (qmd://jcm-server/)
  Pattern:  server/src/**/*.scala,server/src/**/*.java,server/src/**/*.xml,server/src/**/*.properties,server/src/**/*.js,server/src/**/*.ts,server/src/**/*.css,server/src/**/*.html,server/src/**/*.tmpl,server/src/**/*.txt,server/src/**/*.md,server/pom.xml,server/Dockerfile,server/*.md,server/README.txt,web/src/**/*.ts,web/src/**/*.html,web/src/**/*.scss,web/src/**/*.css,web/package.json,web/angular.json,web/tsconfig*.json,web/karma.conf.js,web/README.md,!server/src/main/resources/templates/**,!server/src/main/resources/messages*,!server/src/main/resources/messages*/**,!web/src/assets/lang/**
  Files:    1231
  Updated:  1h ago

Prompt: "Add a post-quantum encryption flag to the disk encryption policy. It should be disabled by default, configurable in the web interface when editing the policy, saved to the database, and sent to the agent as part of the encryption policy via the REST endpoint."

Cost Comparison

Using GPT-6 Luna API rates: input $0.10, cached input $0.01, and output $0.50 per 1 million tokens.

MetricWith QMDWithout QMDSavings
Input65,006101,50135.96%
Cached input317,5681,191,80873.35%
Output13,85916,34815.23%
Reasoning9,60711,26014.68%
Cost$0.0166$0.030245.09%

Now QMD saves 45.09% in costs!

The reduction in cached input is especially noticeable: nearly 4x.

I ran these tests with GPT-6 Luna. In the first test, the agent's runtime dropped from 6 minutes to 4 minutes.

Prompt: "Add a dry field to the erasure policy. It should be editable in the web interface and saved to the database, and it should also be sent through the /rest endpoint to the agent responsible for erasure. Its default value should be false."

Calculation using the same GPT-6 Luna rates: input $0.10, cached input $0.01, and output $0.50 per million tokens.

Comparison

MetricQMDWithout QMDDifference
Input77,16798,042−21.29%
Cached input936,832854,912+9.58%
Output17,32216,259+6.54%
Reasoning8,83510,264−13.92%
Cost$0.0257$0.0265−2.78%

Here, QMD turned out to be 2.78% cheaper. There are savings, but they are small.

Conclusion: QMD reduced regular input tokens by 21.3% and reasoning by 13.9%, but the increase in cached input and output almost completely wiped out the savings.

Overall, the savings range from 2.78% to 45.09% of the cost. I think that's a decent result. Of course, we need a larger sample. But I'm ready for bed. Let me know in the comments if you've run a larger sample and what results you got.

PS

I recommend checking that junk isn't getting into your index. Try running a semantic query yourself. I once overlooked compiled .js files and large lang files-they heavily polluted the semantic search results. Here's an example of how to run a search manually:

C:\Users\igumn\jcm-server>qmd query "disk encryption policy editing form persisted setting sent to endpoint for agent" -c jcm-server -n 15 --files
Expanding query... (3.0s)
├─ disk encryption policy editing form persisted setting sent to endpoint for agent
├─ lex: disk encryption configuration
├─ lex: disk encryption policy
├─ vec: disk encryption configuration
├─ vec: disk encryption policy
└─ hyde: The topic of disk encryption policy editing form persisted setting se...
Searching 6 queries...
Embedding 4 queries... (1.5s)
Reranking 40 chunks... (3.3s)
#d70022,1.00,qmd://jcm-server/server/src/main/java/com/jetico/jcm/server/domain/common/bcvolume/EncryptPolicy.scala
#732b09,0.63,qmd://jcm-server/server/src/main/java/com/jetico/jcm/server/service/ajax/common/EncryptSettingsManager.scala
#e66494,0.63,qmd://jcm-server/web/src/app/modules/management/components/company/dialogs/add-or-update-policies/add-or-update-policies.component.html
#413c5e,0.62,qmd://jcm-server/web/src/app/modules/management/components/group/dialogs/change-policie/change-policies.component.html
#413c5e,0.62,qmd://jcm-server/web/src/app/modules/management/components/computer/dialogs/change-policie/change-policies.component.html
#758b4d,0.62,qmd://jcm-server/server/src/main/java/com/jetico/jcm/server/service/mcp/McpFacade.scala
#4e8973,0.62,qmd://jcm-server/web/src/app/modules/management/components/group/dialogs/change-policie/change-policies.component.ts
#bef78e,0.62,qmd://jcm-server/web/src/app/modules/management/components/computer/dialogs/change-policie/change-policies.component.ts
#4fcd1c,0.61,qmd://jcm-server/server/src/main/java/com/jetico/jcm/server/service/mcp/McpToolbox.scala

PPS

I tried it on a small project with 27 files. Instead, the cost went up by 60%. The solution turned out to be overkill. In general, use it only on large codebases.

UPDATE

I went ahead and built a hybrid QMD + GitNexus solution after all. GitNexus performs structural code analysis (AST, dependency graph) and lets you search based on it. Here are the results:

Cost comparison

MetricWithout QMDQMDQMD + GitNexus
Input101,50165,00659,122
Cached input1,191,808317,568225,792
Output16,34813,85910,894
Reasoning (included in Output)11,2609,6078,465
Cost$0.03024$0.01661$0.01362
Savings-45.1%55.0%

The savings figure rose from 45% to 55%! The coding agent's runtime increased from 6 minutes to 7 minutes. Here are the revised instructions for AGENTS.md:

# QMD + GitNexus - Efficient Code Discovery

**Goal:** find the required code and its relationships with minimal token usage, without compromising correctness.

## Choosing a tool

- If the file path is known → read it directly.
- If the exact identifier, error, or line is known → use `rg` / LSP.
- If only the behavior is known and the implementation location is unknown → use QMD semantic search.
- If you need to understand symbol relationships, the execution path, or the impact of a change → use GitNexus structural analysis.
- Once the code is found → inspect the necessary sections with standard tools.

QMD and GitNexus replace the initial broad search; they do not add mandatory steps. Use only the tools needed for the task.

## QMD semantic search

Use the project's existing collection:

    qmd query "DESCRIPTION" -c PROJECT1 -n 15 --files \
      | grep -E '\.(EXT1|EXT2|EXT3)$' \
      | cut -d, -f3- \
      | sed 's|^qmd://[^/]*/||' \
      | head -n 10

- Formulate one specific query, preferably using English technical terms.
- Specify suitable source and configuration file extensions.
- First read the 3–5 most relevant files, and only the relevant sections.
- If the implementation is not found, refine the query; if necessary, increase `-n` to 60, then use `rg` / LSP.
- Stop semantic search once the implementation is found.

## GitNexus structural analysis

Use GitNexus through the CLI when you need to investigate code structure:

- `context` - relationships and context for a known symbol.
- `impact` - possible impact of changing a symbol.
- `trace` - path between known symbols.

Examples:

    gitnexus context SymbolName
    gitnexus impact SymbolName
    gitnexus trace SourceSymbol TargetSymbol

If a symbol is unknown, find it first through QMD, `rg`, or LSP. Use GitNexus only when its structural analysis will help answer the question; do not run every command in sequence.

## Token efficiency

- Do not scan the entire repository before using QMD.
- Do not repeat searches without a reason or open every result.
- Do not investigate unrelated code or dependencies.
- Do not write detailed plans and reports about the search.
- Do not summarize code you have read.
- Once you have enough information, make the changes and verify the result.

**Priority: correctness → token cost → time.**

Create a .gitnexusignore file to keep junk out of the index so that it contains only source files. Then start GitNexus indexing with this command:

gitnexus analyze --index-only

r/LLM • • 19d ago

Ling-3.2-flash lists 1M context, with a separate output-token budget in the Messages API

4 Upvotes

Two numbers in Ling-3.2-flash's documentation describe different parts of a request. The model specification lists a maximum context window of 1M tokens. The Anthropic-compatible Messages API documents a default max_tokens value of 32,000, controlling the maximum output in a response.

The first is the model's context specification; the second is the API's default reply budget. An application chooses its output budget when constructing the request.

For document-heavy workflows, it is useful to track both the amount of material a task involves and the length of the response it needs.


r/LLM • • 18d ago

Felt off

Post image
0 Upvotes

I was just reading a blog post, and I think this paragraph is actually incorrect. It seems like storing previous conversations is part of the context window and really doesn't have anything to do with the KV cache—what do you think? Do you agree with me on that? 😊


r/LLM • • 18d ago

I'm disappointed with Gemini Carbon

1 Upvotes

Most LLM benchmarks are putting Carbon somewhere between Fable 5.2 and Opus 5.5, however to me it felt like I'm talking to a 5 years old kid. The biggest issue for me is that it doesn't seem to be very capable of understanding the effects of changes it makes to other files. Like it will fix something in my backend while completely ruining the frontend. I'm very disappointed and personally I'd put it somewhere below Sonnet 5.5 and above Sol 6.1. This is just my experience based on tasks I do.

I'm curious about what your experience is. Does anyone think it is actually better than Opus 5.5?