r/LLMDevs • • Aug 20 '25

Community Rule Update: Clarifying our Self-promotion and anti-marketing policy

27 Upvotes

Hey everyone,

We've just updated our rules with a couple of changes I'd like to address:

1. Updating our self-promotion policy

We have updated rule 5 to make it clear where we draw the line on self-promotion and eliminate gray areas and on-the-fence posts that skirt the line. We removed confusing or subjective terminology like "no excessive promotion" to hopefully make it clearer for us as moderators and easier for you to know what is or isn't okay to post.

Specifically, it is now okay to share your free open-source projects without prior moderator approval. This includes any project in the public domain, permissive, copyleft or non-commercial licenses. Projects under a non-free license (incl. open-core/multi-licensed) still require prior moderator approval and a clear disclaimer, or they will be removed without warning. Commercial promotion for monetary gain is still prohibited.

2. New rule: No disguised advertising or marketing

We have added a new rule on fake posts and disguised advertising — rule 10. We have seen an increase in these types of tactics in this community that warrants making this an official rule and bannable offence.

We are here to foster meaningful discussions and valuable exchanges in the LLM/NLP space. If you’re ever unsure about whether your post complies with these rules, feel free to reach out to the mod team for clarification.

As always, we remain open to any and all suggestions to make this community better, so feel free to add your feedback in the comments below.


r/LLMDevs • • Apr 15 '25

News Reintroducing LLMDevs - High Quality LLM and NLP Information for Developers and Researchers

40 Upvotes

Hi Everyone,

I'm one of the new moderators of this subreddit. It seems there was some drama a few months back, not quite sure what and one of the main moderators quit suddenly.

To reiterate some of the goals of this subreddit - it's to create a comprehensive community and knowledge base related to Large Language Models (LLMs). We're focused specifically on high quality information and materials for enthusiasts, developers and researchers in this field; with a preference on technical information.

Posts should be high quality and ideally minimal or no meme posts with the rare exception being that it's somehow an informative way to introduce something more in depth; high quality content that you have linked to in the post. There can be discussions and requests for help however I hope we can eventually capture some of these questions and discussions in the wiki knowledge base; more information about that further in this post.

With prior approval you can post about job offers. If you have an *open source* tool that you think developers or researchers would benefit from, please request to post about it first if you want to ensure it will not be removed; however I will give some leeway if it hasn't be excessively promoted and clearly provides value to the community. Be prepared to explain what it is and how it differentiates from other offerings. Refer to the "no self-promotion" rule before posting. Self promoting commercial products isn't allowed; however if you feel that there is truly some value in a product to the community - such as that most of the features are open source / free - you can always try to ask.

I'm envisioning this subreddit to be a more in-depth resource, compared to other related subreddits, that can serve as a go-to hub for anyone with technical skills or practitioners of LLMs, Multimodal LLMs such as Vision Language Models (VLMs) and any other areas that LLMs might touch now (foundationally that is NLP) or in the future; which is mostly in-line with previous goals of this community.

To also copy an idea from the previous moderators, I'd like to have a knowledge base as well, such as a wiki linking to best practices or curated materials for LLMs and NLP or other applications LLMs can be used. However I'm open to ideas on what information to include in that and how.

My initial brainstorming for content for inclusion to the wiki, is simply through community up-voting and flagging a post as something which should be captured; a post gets enough upvotes we should then nominate that information to be put into the wiki. I will perhaps also create some sort of flair that allows this; welcome any community suggestions on how to do this. For now the wiki can be found here https://www.reddit.com/r/LLMDevs/wiki/index/ Ideally the wiki will be a structured, easy-to-navigate repository of articles, tutorials, and guides contributed by experts and enthusiasts alike. Please feel free to contribute if you think you are certain you have something of high value to add to the wiki.

The goals of the wiki are:

  • Accessibility: Make advanced LLM and NLP knowledge accessible to everyone, from beginners to seasoned professionals.
  • Quality: Ensure that the information is accurate, up-to-date, and presented in an engaging format.
  • Community-Driven: Leverage the collective expertise of our community to build something truly valuable.

There was some information in the previous post asking for donations to the subreddit to seemingly pay content creators; I really don't think that is needed and not sure why that language was there. I think if you make high quality content you can make money by simply getting a vote of confidence here and make money from the views; be it youtube paying out, by ads on your blog post, or simply asking for donations for your open source project (e.g. patreon) as well as code contributions to help directly on your open source project. Mods will not accept money for any reason.

Open to any and all suggestions to make this community better. Please feel free to message or comment below with ideas.


r/LLMDevs • • 4h ago

Tools I built Turbotap, an open-source CLI that lets AI agents drive a real iPhone over Wi-Fi

11 Upvotes

I’ve been trying to make more of my daily life AI-driven, and my iPhone was becoming the bottleneck. If an app didn’t have a web version, an MCP, or an API, I still had to pick up the phone and do it myself.

After lots of searching I finally found a solution that worked. I put a spare iPhone in developer mode, installed WebDriverAgent, and left it on my home Wi-Fi. WebDriverAgent is built on Apple’s official UI testing framework. It’s literally computer use for iPhone.

I tried mirroring the screen with AirPlay and even streaming a camera, but nothing beat WebDriverAgent. Stock WebDriverAgent was still slow in a lot of apps, so I patched it and had an agent keep improving it by trying it across tons of apps. That became Turbotap.

Now I can just ask AI to change a setting, stress-test my app on a real iPhone, or do something in an app I used to have to do by hand. Honestly, I built it out of irritation and increasing inflammation in my hands, but it’s unlocked so many things I can automate with LLMs. The AI can use the actual iPhone app the same way I would, even if there’s no web version, MCP, or API.

You need Xcode on a Mac to sign and install WebDriverAgent over USB. Once it’s running, you can drive the phone headlessly from a Mac or Linux machine on the same Wi-Fi.

It’s free and open source. https://github.com/Maxteabag/turbotap

https://x.com/max_tbag?s=11


r/LLMDevs • • 8h ago

Discussion How do you tell whether an agent's long term memory actually helps?

7 Upvotes

building a personal assistant with long term memory: a shared store of past answers and notes it can look things up in. every turn is logged, so i have plenty of data, but i can't tell if the memory actually makes the work better.

the problem is most turns never consult it, and the ones that do aren't comparable to the ones that don't, since the agent looks things up exactly when the task is harder or depends on something from the past. retrieval benchmarks look fine (right file in the top results most of the time) but that says little about whether the task went better.

options i'm weighing:

  • replaying past tasks with and without retrieval and comparing outcomes
  • human ratings on a sample of turns
  • counting how often the user has to repeat or correct something the assistant should have known

for anyone who has measured this: what actually told you memory was helping, and what turned out to be noise?


r/LLMDevs • • 12m ago

Discussion NInfer RTX 4090 – Native CUDA LLM inference on Windows, up to 326 tok/s with Qwen 27B and DFlash2 in short benchmarks

1 Upvotes

Hey everyone,

I've been working on an independently maintained version of NInfer-all, specifically optimized for the RTX 4090 and its SM89 architecture.

The goal is to get as much performance as possible out of a single 24GB GPU while running larger local models, especially for coding and long-context workloads.

I've just released v0.1.4 as a stable, GPU-tested Windows build.

Features:

  • Native C++/CUDA 13.4 inference
  • RTX 4090 / SM89 optimizations
  • DFlash2 and MTP speculative decoding
  • Qwen3.8 27B and Ternary Bonsai 2.5 support
  • Quantized KV cache (rk4v4, rk8v4, etc.)
  • Hybrid prefix caching
  • OpenAI- and Anthropic-compatible APIs
  • Portable Windows binaries
  • Apache 2.0 license

Recent RTX 4090 benchmarks:

Model / BackendDecode
Qwen 27B IQ3_S – No speculation70.38 tok/s
Qwen 27B – MTP K5242.59 tok/s
Qwen 27B – DFlash2 K5257.13 tok/s
Qwen 27B – DFlash2 K7326.41 tok/s
Qwen 27B – DFlash2 K9269.33 tok/s
Bonsai 2.5 PTQ1_0 – MTP K3291.69 tok/s
Bonsai 2.5 PQ2_0 – MTP K3323.88 tok/s

These are short synthetic engine benchmarks with 2048 prompt tokens and 128 timed decode tokens, not guaranteed real-world serving speeds. The methodology and measurement data are publicly available.

I've also built a project website with an interactive VRAM calculator, launch command generator, model downloads, installation guides and benchmark results.

GitHub: https://github.com/spk-c/ninfer-all-rtx4090

Project website: https://spk-c.github.io/ninfer-all-rtx4090/

Benchmarks: https://spk-c.github.io/ninfer-all-rtx4090/benchmarks.html

VRAM calculator: https://spk-c.github.io/ninfer-all-rtx4090/configurator.html

Credit to the original NInfer and NInfer-all developers. This project builds on their work.

I'd love to hear feedback from other RTX 4090 owners, especially people running local coding agents with 64K–192K contexts.

If you try it, please share your results, even if they're worse than expected. I'm interested in finding bottlenecks and improving the engine further.


r/LLMDevs • • 51m ago

Discussion “How to Train Your LLM" — a funk rock song about next-token prediction, gradients, and RLHF

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/LLMDevs • • 1h ago

Tools I built an open-source self-hosted AI gateway and workspace with unified billing

1 Upvotes

I'm a Chinese developer, the following sentence are translated from my X post :)

Thought I'd finally share a project I've been working on. It's still in pre-release, so please go easy on me. 🥲

I'm not much of a writer either, so I borrowed some of the introduction from GPT. 🥲

🚀 A1O Platform — An open-source, self-hosted AI gateway and workspace.

https://github.com/infinmalum/a1o-platform

Why did I start this project? 🤔

Projects like New API and Sub2API already provide mature AI gateway capabilities, while LobeHub and Open WebUI offer rich AI interaction experiences.

However, combining them into a single service with unified user accounts, quotas, and billing often requires additional integration work.

Inspired by parts of Google AI Studio's design, I wanted to bring AI gateways, chat, agents, background tasks, media creation, and API access together in one self-hosted platform, making deployment, operation, and management easier.

A1O is more than just an AI API gateway. It brings AI infrastructure, agent runtimes, and user-facing applications together.

From API calls to Chat, Agents, background tasks, and media generation, everything shares a unified account, quota, and billing system — without having to stitch together separate gateways and AI applications.

Current features:

🔌 Native support for OpenAI Chat Completions, Responses, Anthropic Messages, and Gemini APIs

🌉 Cross-protocol bridging with streaming support

🔀 Intelligent model routing and load balancing

🤖 Built-in agent runtime powered by Norma

🧩 MCP, Skills, and custom agents

⚙️ Background AI tasks and sandboxed code execution

📚 Personal knowledge libraries

🎨 Image and video generation with a personal media gallery

🎙️ Text-to-speech, speech-to-text, and audio translation

💳 Integrated billing, quota management, and payment systems

🌐 Multilingual user interfaces

🐳 Self-hosted deployment with Docker

Built with Go and TypeScript, independently maintained, and licensed under AGPL-3.0.

The project originally started as a fork of One API, although I've changed it so much that even its own mother probably wouldn't recognize it anymore. 🥲

I'd love for you to give it a try and share your feedback!

Stars, issues, and pull requests are always welcome.

And if you eventually find it useful enough to run in production, feel free to sponsor the project through the Sponsor button on GitHub and buy the developer some chicken. 🍗


r/LLMDevs • • 2h ago

Discussion Where do you put the approval gate before an agent calls a paid API?

1 Upvotes

I was testing sn-motion-html from the SenseNova Skills repo (https://github.com/OpenSenseNova/SenseNova-Skills) with a one-paragraph brief. It builds a scroll-driven HTML story from video scenes and connector clips.
I nearly triggered a paid batch partway through — I'd assumed approving the concept also approved the spend. There's a second approval right before the first paid batch.
The still stage before video helped. It generates a few stills and checks they match, which let me catch a style mismatch before paying for clips. Only tried it once, though.
If you're building agents that call paid APIs: where do you put the approval gate?
per batch?
per job?
or earlier?
Do you label the two approvals differently in the UI??


r/LLMDevs • • 2h ago

Discussion Where do you put the approval gate before an agent calls a paid API?

1 Upvotes

I was testing sn-motion-html from the SenseNova Skills repo (https://github.com/OpenSenseNova/SenseNova-Skills) with a one-paragraph brief. It builds a scroll-driven HTML story from video scenes and connector clips.
I nearly triggered a paid batch partway through — I'd assumed approving the concept also approved the spend. There's a second approval right before the first paid batch.
The still stage before video helped. It generates a few stills and checks they match, which let me catch a style mismatch before paying for clips. Only tried it once, though.
If you're building agents that call paid APIs: where do you put the approval gate?
per batch?
per job?
or earlier?
Do you label the two approvals differently in the UI??


r/LLMDevs • • 2h ago

Discussion What do you measure after an agent rewrites its own memory?

1 Upvotes

I maintain Lorevell, an MIT-licensed Markdown memory store. I want to catch cases where a memory rewrite still returns a plausible first hit but knocks the supporting note out of the results the agent actually reads.

In one fixed 20-question run, correct first hits stayed at 17. Top-three hits fell from 19 to 18. The question that regressed asked what prevents consolidation from deleting evidence or changing unrelated files. Its labeled answer, dream-validation, went from third to outside the returned three. archive still came first both times.

You can replay the comparison against the checked-in reports. This compares stored searches and needs no model or API key:

git clone https://github.com/archit15singh/lorevell.git
cd lorevell
git switch --detach 1c78bc33528e30d2f9db63d8c0d9e60639b5bf83
python3 scripts/gate-eval.py docs/evals/real-project/learned-hybrid.json docs/evals/real-project/after-hybrid.json

Exit 1 is expected. This is one maintainer fixture. How do you set the pass/fail threshold when the first hit looks fine but an evidence note drops out of the agent's reading window?


r/LLMDevs • • 2h ago

Discussion Is there an independent benchmark for llms triaging SAST alerts?

1 Upvotes

we have an internal thing where an LLM looks at static analysis findings and marks each one as a real bug or a false positive. On our own sample it looks great. But our sample is also small and probably full of easy cases, so I don't really trust that.

We aree comparing it with Zeropath and Rival. Most of what I've found is vendors publishing their own results. I'd like to give all three the same alerts and see which real bugs they dismiss.

Has anyone used a public dataset for this??? Or if you built your own, how did you label it without tying up a security engineer for a month?


r/LLMDevs • • 2h ago

Resource Speculative decoding with an adaptive draft length: benchmarks and method from Astral Inference Server

1 Upvotes

Hey all, we've been building Astral Inference Server, an open-source LLM inference server for NVIDIA GPUs written in Rust and CUDA, shipped as a single binary. Sharing our benchmark setup and one design choice we think is worth discussing.

Results (Inkling 2 Mini, one H100 PCIe 80GB, batch 1, 512 tokens, greedy, 8,192 context, mean of 32 prompts, single stream over HTTP):

• No speculative decoding: Astral 172.0 tok/s, vLLM 130.2 (Astral +32%), SGLang 135.6 (Astral +27%) • With MTP drafts: Astral 233.3 tok/s, vLLM 209.6 (+11%), SGLang 205.9 (+13%)

Faster single-stream generation means less GPU time per token, which is where most of the serving cost goes.

The design choice: vLLM and SGLang drafted a fixed 7 tokens per round in our runs. Astral adapts between 2 and 6. It grows the draft after a full accept and shrinks it after a reject, so less compute is wasted on drafts the model throws away. Every token is still verified against the target model, so output doesn't change.

This is batch 1 on a single GPU, so it doesn't say anything about high-concurrency serving yet. That's next.

Full method and raw numbers: https://github.com/syntheticminds-lab/Astral-Inference-Server/blob/main/docs/benchmarks/inkling2_mini.md

Curious what draft lengths others run in production, and whether adaptive drafting has helped you.

(Written with AI help, edited and checked by us.)


r/LLMDevs • • 3h ago

Discussion I went looking for retry loops in 30 days of Claude Code logs. They were about 1% of the cost.

1 Upvotes

I assumed retry loops were where our tokens leaked, so I pulled every Claude Code and Codex transcript file touched in the last 30 days off one of our Macs: 44 GB of JSONL, 3,580 sessions with subagents counted inside their parent, 15 Claude Code versions and 12 Codex versions.

Claude Code alone has 33 record types, and Codex counts cached tokens inside input_tokens while Claude Code doesn't. My first Claude Code total was 2.3x too high: it writes a line per content block and repeats the usage on each, with output still growing, so I keep the largest value per message id.

So instead of a parser, every line goes in whole as JSON, typed later in SQL. I ran the Databend community edition in Docker, with raw lines in a VARIANT column and the fields I query pulled into three regular tables.

The loops barely registered. In Claude Code, 310 of 589,590 tool calls repeated the previous call exactly, and calling the same tool again right after an error, changed input or not, came to 0.9% of its cost. Together that's about 1%, $667 of $67k. Edit, test, fail cycles that cross tools aren't in that number.

The money was in long sessions. At Nov 20 list API prices, standard tier, the month is about $89k of API equivalent on our subscriptions, and 98% of tokens were cache reads. The 98 sessions over 1,000 API calls were 77% of the cost, subagents about 60% in both clients, and Read was 15% of tool calls but 87% of the characters in tool results.

What I can't get from the logs yet is how much of that cache read bill is Read output riding along in later turns, since usage is per call, not per message.


r/LLMDevs • • 3h ago

Tools Bercy: an open-source Mac app for passing code review feedback between Codex and Claude Code

Post image
1 Upvotes

I’m the developer of Bercy. It runs on Apple Silicon Macs and connects the agent CLIs you already use. One workflow I built it for is letting Codex make a patch and Claude Code review the actual project files.

The interesting design choice was what to send back when Claude finds a problem. In v0.1.14, Claude writes a return note. Bercy strips the return prefix and passes the first 1,200 characters directly into Codex’s revision prompt, alongside its original assignment and up to 6,000 characters of its own previous delivery. There’s no summarization call in between. That makes it easy to inspect exactly what crossed the boundary, but a long list of findings can get cut off mid-item. The workflow permits two automatic returns.

Bercy is MIT-licensed. The app uses your existing CLI accounts, so any model usage is billed under your provider’s terms.

Repo and demo · Review return handler

Disclosure: I used AI to help draft this write-up and design the cover around a screenshot of the app.


r/LLMDevs • • 7h ago

Discussion Customer-facing agents (WhatsApp, Messenger, support bots): how are you tracing what they actually do?

2 Upvotes

Disclosure up front: I'm one of the maintainers of OpenLIT. The core is Apache-2.0 and free to self-host; there's also a separate Enterprise edition. Mostly I'm curious how others handle this.

More teams are putting agents directly in front of customers: answering questions, booking appointments, qualifying leads, sometimes selling inside a chat. Once an agent talks to real people and calls real tools, two failures get expensive fast:

  • A confident hallucination. A wrong price, a booking slot that doesn't exist, a refund it can't actually issue. You usually hear about it from the customer.
  • A retry loop. The agent keeps calling the same tool and burns tokens. You hear about it from the invoice.

The final chat message alone doesn't tell you which prompt, tool call, or model response caused it. What's worked for us:

  1. One trace per conversation turn. Every LLM call, tool call, and agent step becomes an OpenTelemetry span in one trace, so you can replay exactly what happened for a given customer.
  2. Tokens, latency, and cost on every span, per model and per request. Loops and unexpected model switches show up right away instead of at month end.
  3. LLM-as-a-judge scoring on live traffic, not just the offline eval set, plus guardrails for prompt injection and off-topic chats. Anyone on WhatsApp can type anything into your agent.
  4. Versioned prompts that you can roll back without a redeploy.

Setup in Python is roughly:

import openlit
openlit.init()

It auto-instruments common LLM SDKs and agent frameworks. Since it's plain OTel, the data can go to whatever backend you already run.

Repo: https://github.com/openlit/openlit Docs: https://docs.openlit.io

Questions for people running these in production:

  • What do you trace first on a customer-facing agent?
  • Are you scoring live answers, or only running evals before deploy?
  • How do you catch tool-call loops before they hit the bill?

r/LLMDevs • • 5h ago

Resource AI INFERENCE ENGINEERING FROM SCRATCH

Post image
0 Upvotes

Hey guyzz , I have built an Inference engineering from scratch, a open-source course on how llms are actually served : from gpu memory to KVcache , batching and routing

Please checkout - https://ai-inference-engineering-from-scrat.vercel.app


r/LLMDevs • • 5h ago

Discussion Survey of 165 engineering leaders: 64% rely heavily on AI, but only 20% measure it against business outcomes. How are you measuring LLM impact?

Thumbnail
leaddev.com
1 Upvotes

r/LLMDevs • • 9h ago

Help Wanted Transitioning into AI Engineer with a DS/ML background — how should a beginner actually start?

2 Upvotes

Hello everyone,

I have a basic foundation in traditional data science and machine learning work:
• Clustering (KMeans, GMM, DBSCAN)
• Deep learning (MLP, CNN, EfficientNet, handled class imbalance)
• Feature engineering, retention/churn and CLV type analysis
• Tools I’ve used: Databricks, Power BI, some Power Automate, GitHub Actions, PEFT, yfinance, PyTorch
I’m now trying to move into AI Engineer roles, focusing on production systems rather than notebooks. My coding (mainly Python) is still improving — I often rely on AI to help write and debug, and I’m actively practicing to become more independent. Currently building personal projects around stock data tools, Hugging Face (Transformers / Diffusers / Unsloth), local LLM setups, and exploring real-time applications with open data.
My current questions:

  1. Should I prioritize MLOps + deployment first (Docker, FastAPI, CI/CD, monitoring, serving) before going deeper into agents, RAG, or LLMs?
  2. What kind of end-to-end portfolio projects actually help for AI Engineer roles right now? (I already have some modeling/DS work; I need clearer “I built and deployed this system” evidence.)
  3. For someone with this background, is the realistic path junior AI Engineer, or is it better to start via MLOps / Data Engineer hybrid roles?
  4. What are the must-learn tools and stacks in 2026 for production AI work that I should focus on in the next 3–6 months?
  5. Any practical advice on open-source contributions, specific GitHub project ideas, or how to solidify coding fundamentals while building production experience?
    I’m aiming for quantified, production-oriented work (APIs, agents, real-time systems, measurable impact).
    Any realistic roadmaps, project ideas, or “I was in a similar spot” stories would be really appreciated. Thanks!
    all.

r/LLMDevs • • 6h ago

Discussion Do we really need an LLM call for every task? Our research on structure-first AI execution

1 Upvotes

I'm the authors of KORA, an open-source AI workload control layer.

Instead of sending every request directly to an LLM, we explore whether tasks can be resolved through deterministic execution, cached results, or structured routing before invoking a model.

In our controlled 100-task benchmark:

  • 80% of simulated model calls were avoided.
  • Zero mismatches were observed on deterministic tasks.

This is not a claim of 80% cost savings in production. Real-world workload evaluation remains an important next step.

I'd be interested in hearing how other developers handle unnecessary inference in their AI pipelines.

Paper: https://arxiv.org/abs/2610.35869

Code and benchmarks: https://github.com/Krako-Labs/KORA

Krako Labs: https://krako.xyz


r/LLMDevs • • 7h ago

Discussion Would you accept staged precision to shorten cold starts?

1 Upvotes

I'm James Luan, CTO of Zilliz, which builds Milvus, an open-source vector database for storing, indexing, and searching embeddings. Vector Lakebase extends that foundation into lake-native workflows.

Elastic compute has to fetch cold indexes. Our design reduces that transfer with layered quantization: coarse filtering first, higher-precision refinement afterward. IVF also restricts which clusters a query touches. Reducing transfer does not remove the need for a recall budget.

Those choices require retrieval-quality checks, not just smaller downloads. For occasional corpus exploration, what first-query quality would you require before accepting staged refinement?


r/LLMDevs • • 23h ago

Discussion What reasoning level do you use on GLM-5.3 for coding?

8 Upvotes

I saw an experiment where GLM-5.3 was tested on Low, High and Max reasoning. On two coding tasks, Max ran out of tokens without finishing the code, while High passed all the tests.

I'm curious about how others use GLM-5.3. Have you noticed better results with Max, or is High enough for most coding tasks?


r/LLMDevs • • 12h ago

Resource My first metamorphic test of an LLM extractor flagged 72 receipts. 68 were my own bug.

0 Upvotes

I wrote a small open-source library (MIT, no paid tier) for checking LLM output without labels, and my first real run of it was embarrassing.

The idea: change the input in a way that shouldn't change the answer, run the extractor on both, and flag any case where the answer moves. For receipts, reordering the line items shouldn't change the total.

I ran it on 535 scanned receipts (ICDAR-SROIE). The first run flagged 72. I was pleased for about ten minutes, then read the flags. 68 of the 72 came from my transform, not the extractor. I was shuffling every line, which broke extractors that were working fine.

The fix was to permute whole blocks (header, items, totals) as units and leave the lines inside each block alone. I flagged without reading labels, then opened the labels only to score the flags.

Results on held-out data:

  • Flagged receipts were 2.7x more likely to be wrong than unflagged ones
  • About 75% of flags were real errors
  • Recall was about 8%, so it misses most bugs

So it is a cheap spot-check, not a replacement for a labelled test set. What surprised me is that the transform design mattered more than the model.

Full write-up with the method: https://pub.towardsai.net/your-llm-extracted-10-000-numbers-which-ones-are-wrong-7a5d54050dd3

Has anyone else had their own test harness turn out to be the thing producing the false positives?


r/LLMDevs • • 12h ago

Discussion My first metamorphic test of an LLM extractor flagged 72 receipts. 68 were my own bug.

0 Upvotes

I wrote a small open-source library (MIT, no paid tier) for checking LLM output without labels, and my first real run of it was embarrassing.

The idea: change the input in a way that shouldn't change the answer, run the extractor on both, and flag any case where the answer moves. For receipts, reordering the line items shouldn't change the total.

I ran it on 535 scanned receipts (ICDAR-SROIE). The first run flagged 72. I was pleased for about ten minutes, then read the flags. 68 of the 72 came from my transform, not the extractor. I was shuffling every line, which broke extractors that were working fine.

The fix was to permute whole blocks (header, items, totals) as units and leave the lines inside each block alone. I flagged without reading labels, then opened the labels only to score the flags.

Results on held-out data:

  • Flagged receipts were 2.7x more likely to be wrong than unflagged ones
  • About 75% of flags were real errors
  • Recall was about 8%, so it misses most bugs

So it is a cheap spot-check, not a replacement for a labelled test set. What surprised me is that the transform design mattered more than the model.

Full write-up with the method: https://pub.towardsai.net/your-llm-extracted-10-000-numbers-which-ones-are-wrong-7a5d54050dd3

Has anyone else had their own test harness turn out to be the thing producing the false positives?


r/LLMDevs • • 15h ago

Resource I built a proof-by-exclusion machine using the Riemann hypothesis as a test case. Now I'm making it reusable.

1 Upvotes

TL;DR: I developed an alternative RH proof architecture using Weil–CCM, spectral negativity, Schur-complement rigidity, moment constraints and systematic counterexample exclusion. The Alpöge–Claude arithmetic breakthrough supplies the remaining arithmetic contract, and formal verification of the combined closure is underway. I now intend to generalize the architecture for other mathematical problems.

Back in June, I started working on the Riemann hypothesis. In September, I started building a reusable architecture for AI-assisted mathematical discovery.

The idea is simple: rather than searching for a proof directly, systematically eliminate the mathematical space in which a counterexample could survive.

The architecture operates in four stages:

  1. Fingerprint: Identify the mathematical obstruction.
  2. No-hide: Prevent the obstruction from escaping through changes in representation.
  3. Constrain: Progressively restrict its possible existence.
  4. Exclude: Establish a terminal contradiction.

Interestingly, the Alpöge–Claude arithmetic breakthrough satisfies the remaining arithmetic contract of my independently developed spectral architecture. Formal verification of the combined closure is underway.

But RH was only the test case.

I will be putting together a generalized version of the architecture for anyone wanting to tackle other mathematical problems.

Current repository:
https://github.com/HMarcusWH/zeta-23-lean


r/LLMDevs • • 19h ago

Discussion We tested Jev on 307 database-work examples. The failure mode worth designing around:

2 Upvotes

Disclosure: Dan Reynolds wrote the study this comes from. No ties to TypeSafe. [CONFIRM]

Jev doesn’t write; it decides. You give it material and a question with fixed answers (yes or no, which one, how much, where) and it returns a number, a label or a box with a confidence score. We ran it through all 21 official cookbooks with our own examples, answers locked in advance.

The one weakness to design around: when the right answer isn’t among the options, it picks the nearest one, often with high confidence. Five real cases from our tests:

• “Back up the CRM every 15 minutes” was scheduled hourly, at 0.98

• “Export only the EU contacts” exported all contacts, at 0.97

• The “leads” table as an Excel file ran a contacts export as CSV, at 0.89

• “Load this into Redshift” was pointed at the Snowflake loader

• “The pilot ends at the end of next month” was read as today

The fix: give every menu an exit, an option that says “not on the list.” In a replay of the same 14 requests, 13 were handled correctly with the exit, against 11 without (run after the locked round, so treat it as indicative).

A second fix failed, and it’s instructive: a broad “does the request ask for anything extra?” check blocked 5 of 7 good requests, because our wording counted “for the last week” as extra. Safety questions need to be as narrow and literal as any other question.

Overall: 287 of 307 passed, at a total cost of $0.033. Strongest jobs were citation checking, picking values from candidates, sorting live messages and checking a cheap extractor. Weakest was rebuilding structure from flattened text (20 of 27).

Full write-up with every prompt: https://webuilddatabases.com/blog/jev-job-by-job/

Replayable files: https://github.com/WeBuildDatabases/jev-job-by-job