r/LLMDevs • • Aug 20 '25

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

33 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

46 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 • • 2h ago

Tools I built a local LLM training lab to help people learn how to train models on their own hardware

Thumbnail
gallery
3 Upvotes

Hi everyone,

Like many others, I got into model training after going through Karpathy's nanochat and Sebastian Raschka's LLMs from Scratch book. Both were great, and after training a few tiny models on my own computer I ended up putting together the kind of lab I wish I had when I started.

Each lesson has interactive visuals in the browser paired with actual PyTorch scripts and a local dashboard, so you can run the code on your own GPU (or laptop) and watch what happens to the loss and outputs right away. I believe we learn way better by breaking things and tweaking configs than just reading.

Repo is here if anyone wants to check it out: https://github.com/petrenk0n/stepzero

Right now there are 4 lessons covering the training loop, model sizing, stability, and attention, plus a small local runner so you don't even have to leave the UI to kick off an ablation. Still adding more lessons as I go. Also threw in a guide for your agent, if you prefer to learn with ai.

Just sharing in case it's useful to anyone else digging into this stuff.


r/LLMDevs • • 6h ago

Help Wanted Is there a LeetCode for agent engineering? Where do you prove you can build production AI systems?

6 Upvotes

I'm a backend engineer in payments (Go, Kafka, AWS). I already build agentic tooling at work and want to move into agent/AI engineering roles.

LeetCode and HackerRank prove algorithm skills. I'm looking for the equivalent for agents: somewhere that shows I can build systems that hold up in production (evals, reliability, cost control, tool/MCP design, security), not just a demo that works once. I'm a backend engineer in payments (Go, Kafka, AWS). I already build agentic tooling at work and want to move into agent/AI engineering roles.

LeetCode and HackerRank prove algorithm skills. I'm looking for the equivalent for agents: somewhere that shows I can build systems that hold up in production (evals, reliability, cost control, tool/MCP design, security), not just a demo that works once.


r/LLMDevs • • 2h ago

Discussion What catches a small local model's valid but wrong tool call?

2 Upvotes

I'm asking for personal learning, with no personal data collection or monetization of replies; an AI assistant helped word this. What catches the wrong file or recipient before execution when the tool name and JSON are valid, and when do you route to a bigger model?


r/LLMDevs • • 9h ago

Discussion I put a free no-signup website host online for AI agents 11 days ago and watched the logs (66k requests, 91 HTTP writes vs 1 MCP)

Thumbnail
gallery
8 Upvotes

I put a free no-signup static site host online for AI agents (https://iko.run) 11 days ago to see if agents would find it and what they would actually publish.

66,402 requests and 65 published pages later, here is what showed up in the logs:

  • Someone is running a real warehouse orders app on it (27 deploys, no account, just a private key)
  • A local beauty salon put up its front page
  • A probe bot left a polite note in X-Agent-Summary: "Short-TTL test page to inspect robots and link attributes, then expire"
  • An SEO bot voluntarily signed its header X-Agent-Name: backlink-man (subdomains are noindex)
  • 91 writes came over plain HTTP API calls, 4 via the browser form, and only 1 used MCP
  • Exa crawled it as many times as Googlebot (21 visits each), followed by OpenAI (18) and Claude (11). 29% of bot reads hit /llms.txt, markdown endpoints, or /openapi.json directly.

A few takeaways if you are building tools for agents right now:

  1. Expose a plain HTTP API first. MCP barely got touched even though it is advertised right next to the REST API.
  2. Ship /llms.txt, /SKILL.md, and markdown variants, unblock indexers, and pick an uncrowded name. Agents and AI search crawlers actually read them.
  3. The agent web is already weirdly alive.

Happy to answer questions about the logs or setup.


r/LLMDevs • • 5h ago

Discussion Google budget alerts run on spend data that can lag up to 24h. An overnight Gemini job hit C$75,951 before anything fired. How to guard unattended LLM jobs

3 Upvotes

Google's budget alerts run on actual spend, and the Cloud Billing docs say calculating actual spend "typically takes up to 24 hours." That lag is what sank a developer this week. He posted in r/googlecloud that an overnight Gemini 2.5 Flash job on Vertex AI spent C$75,951 before anything stopped it, and what finally stopped it was his card declining an auto charge.

What he says arrived, and when:

  1. Early signal anomaly alert, which Google's docs promise "with an expected latency of 20 to 40 minutes": came 9h42m after spend started, and couldn't name the product.
  2. 50, 80 and 100 percent budget emails on a C$286 budget: never came.
  3. 120 percent and forecasted emails: over two hours after he'd already killed the job.

That's one person's account, and I couldn't find a public reply from Google. A Pub/Sub kill switch wired to a normal budget would have fired on the same late numbers.

How i'd guard an unattended LLM job now:

  1. If it's your own loop of API calls, meter it yourself. Gemini responses include usage metadata, so multiply tokens by list price, keep a running total, and stop at a hard number. Nothing is faster than that.
  2. Set a provider spend cap as the backstop. Google's caps went GA on Oct 30, run on estimated cost and trigger within minutes for AI services. Read the limits first: not instant, overage still billed, one project and one service per cap, credits ignored, Provisioned Throughput never halted. Eligible: Gemini API, Vertex AI, Cloud Run, Cloud Run functions.
  3. Treat budget alerts as receipts.

If you submit a batch job and walk away, layer 1 doesn't exist and the cap is the only thing that can stop it.

Thread: https://www.reddit.com/r/googlecloud/comments/1yazk1p/ Spend cap docs: https://docs.cloud.google.com/billing/docs/how-to/budgets-spend-caps Budget API docs: https://docs.cloud.google.com/billing/docs/how-to/budget-api-overview


r/LLMDevs • • 14h ago

Resource How DoorDash Reduced LLM Search Costs by 98% Without Losing Accuracy

Thumbnail careersatdoordash.com
15 Upvotes

DoorDash reduced search-provider costs in its large language model (LLM)-powered query understanding system by more than 98% while maintaining comparable accuracy on production workloads. The company introduced Decoupled Search Grounding (DSG), an MCP-compatible gateway that separates evidence retrieval from model reasoning, allowing applications to switch search providers independently of the underlying model.

Native LLM search integrations bundle retrieval into the model provider's API, limiting provider choice, result reuse, retrieval-depth controls, and cost visibility. DSG exposes these capabilities through a shared interface rather than embedding search integrations in individual agents.

The gateway supports multiple search providers, including Serper, Bright Data, Firecrawl, Exa, and Tavily, as well as native search capabilities offered by model providers such as OpenAI and Anthropic. It normalizes provider responses into a common format containing titles, URLs, and content snippets, keeping retrieved evidence separate from model-generated responses.


r/LLMDevs • • 7h ago

Discussion I built a docs bot that refuses to guess. My hidden test set exposed a failure I couldn't fully fix.

4 Upvotes

RAG over 8 FastAPI tutorial pages (ChromaDB, MiniLM, Gemini flash-lite, Streamlit). It answers with a cited source or replies `NOT_IN_DOCS`.

Eval: 25 cases, 15 dev / 10 hidden. Dev went 10/14 → 14/14 after tuning; hidden (run once) scored 9/10.

Distance alone couldn't separate answerable from out-of-docs questions (1.36 vs 1.12), and the one hidden failure was a false refusal from wrong top-ranked chunks. Untried: hybrid search, re-ranking.

Caveat: questions were AI-drafted and I verified only 9 of 25 answers.

Repo: https://github.com/ztsprofessionalaiid7-alt/rag-bot

Would you try hybrid search or re-ranking first?


r/LLMDevs • • 2h ago

Tools Showing Claude Code and Codex in one live list: hooks for the events, session files for the rest

Thumbnail
gallery
1 Upvotes

I'm building Openbar, a free open source app that keeps coding agent sessions in the Mac notch (an island on Windows and Linux). Getting Claude Code and Codex into one list taught me that hooks alone aren't enough.

Hooks tell you the moment something happens: a prompt, a tool call, a permission request. Claude Code's PermissionRequest hook waits for an answer, so you can Allow or Deny from the notch while the terminal dialog stays open, and whichever answers first wins. But tasks, token counts and what happened before the app started only live in the session files, so Openbar reads those too and merges both into one state per session.

I'd like feedback on what to add next.

https://github.com/wrr-studio/OpenBar


r/LLMDevs • • 11h ago

Discussion Why are we defaulting to LLMs to verify the outputs of other LLMs?

4 Upvotes

I've been experimenting with a different approach to enforcing engineering conventions and business rules.

Instead of asking an LLM to review an entire output against a set of instructions, we break each rule into narrow, testable assertions.

  • Deterministic logic wherever possible
  • Specialized decision models or classifiers when semantic judgment is necessary
  • Explicit passing and failing examples for each rule
  • Rules and evaluation datasets independent of the model

In one experiment, 97.6% of checks could be handled before making a model call.
The more interesting challenge is semantic verification. Can smaller, specialized models reliably evaluate previously unseen rules without requiring task-specific training?

I'm exploring this with a project here is the link: https://github.com/feuersteiner/agentests

I'd particularly appreciate feedback from people experimenting with classifiers, NLI models and alternatives to LLM-as-a-judge.
Thank you!


r/LLMDevs • • 5h ago

Discussion Can you apply caveman in an LLM's internal reasoning?

0 Upvotes

Hey, someone propably thought of this already or something like that?

When i use deepseek v4.1 free on opencode and check the internal reasoning, it is very verbose and repeating itself

So im thinking what if we apply simple caveman type of talking reasoning inside

Or even even better use another langauae like chinese for the internal reasoning cuz it is a more efficient language, but translate back to english when done?


r/LLMDevs • • 6h ago

Help Wanted I launched a structured output generation API, but nobody seems to care. What am I missing?

Thumbnail
gallery
0 Upvotes

I recently launched an API platform for structured output generation across different LLMs.

The idea came from a problem I faced while building my own AI harness. I thought other developers might find it useful too, so I turned it into a standalone API.

Currently, it supports:

  • Single-schema structured output generation.
  • Selecting one relevant schema from multiple schemas.
  • Selecting multiple relevant schemas and generating an array of structured outputs.
  • Text and image inputs.
  • Multiple LLM providers through a common API.
  • Automatic schema validation and retries.

I've attached a few examples showing how it works.

It's been over a week since launch. I've reached out to developers, received some feedback, but nobody has actually tried it yet.

I'm currently exploring a few additional capabilities:

  • Direct document-to-JSON generation.
  • LLM-based semantic validation to check whether the output is actually correct, not just schema-valid.
  • Custom validation endpoints that allow developers to validate generated outputs against their own business logic, with automatic retries on failure.

But before spending more time building, I want to understand what developers actually need.

For those working with LLMs, what is this platform missing that would make it worth using? Are there any pain points with structured output generation that existing solutions don't address well?

Or is this simply a problem that's already sufficiently solved?

I'd genuinely appreciate some critical feedback, even if it's negative.


r/LLMDevs • • 7h ago

Resource Qwen4-35B-A3B-Uncensored GGUF (Apache 2.0)

1 Upvotes

Disclosure: I'm from Morse (trymorse.ai).

Weights & License

  • Repo: https://huggingface.co/Morse-AI/Qwen4-35B-A3B-Uncensored-GGUF
  • Model: Qwen4-35B-A3B-Uncensored (from the Dec 3 Qwen4-35B-A3B drop)
  • License: Apache 2.0

Safety & over-refusal (Stock → Uncensored)

  • Harness: Q8_0, llama.cpp b12973, greedy, 1,764 prompts (raw JSON in repo)
  • Harmful refusals (HarmBench, HarmBench-Think, StrongREJECT): 95.3% → 8.2%
  • Thinking mode (HarmBench-Think): 98.0% → 8.7%
  • Over-refusal (XSTest): 16.4% → 0.4%

Capability retention (Stock → Uncensored)

  • 5-suite mean: 82.42% → 80.45%
  • MMLU: 75.80 → 74.40
  • MMLU-Pro (CoT): 76.67 → 71.33
  • GSM8K (CoT): 97.33 → 96.67
  • HumanEval: 93.29 → 90.85
  • MATH-500: 69.00 → 69.00

Method

  • Single refusal direction across thinking and non-thinking modes; no fine-tuning
  • Zero prompt overlap with any eval benchmark
  • Screened for low KL on neutral prose, code, math, and multilingual text
  • Reasoning length intact: 1.003× stock on HumanEval
  • Tokenizer and chat template unchanged

Quant & Memory

  • Single protected Q8_0 file (59.4 GB on disk)
  • Sensitive tensors kept in BF16: hc_*, ssm_beta, ssm_alpha, ple_conv1d
  • --lazy-mode auto loads n-gram embedding tables on demand → ~37.6 GB resident (fits 48 GB GPU or 64 GB Mac)
  • Needs recent llama.cpp with Qwen4 support

Run

llama-server -m Qwen4-35B-A3B-Uncensored-Q8_0.gguf -ngl 99 --lazy-mode auto --flash-attn on --jinja --cache-type-k q8_0 --cache-type-v q8_0 -c 32768

r/LLMDevs • • 19h ago

Tools Qwen4-35B-A3B running at up to 280 Tok/s on M5 Ultra Superfluid

Post image
9 Upvotes

We’ve been working on day-zero support for Qwen4 in Superfluid and are already seeing upto 280 tok/s decode on an M5 Ultra. Really impressed by what this model can do with just 3B active parameters in terms of agentic capabilities running locally.

Give it a try and let u know what you think. https://github.com/basecompute/baseRT


r/LLMDevs • • 8h ago

News Qwen4-35B-A3B on 48GB M4 Pro in 8.42 GB RSS — 119.99 tok/s

Thumbnail
reddit.com
1 Upvotes

r/LLMDevs • • 8h ago

Discussion What if we replaced some serial Transformer layers with parallel computation along the depth axis?

Post image
1 Upvotes

I've been experimenting with small language model architectures and had an idea: why not replace some serial Transformer layers with parallel computation along the depth axis?

I call it ParDepth (Parallel Depth).

Instead of using only the final hidden state, ParDepth collects intermediate layer states, performs bidirectional attention along the depth axis, and then applies linear fusion followed by a single SwiGLU FFN.

Some interesting engineering properties:

  • Reduced persistent KV cache when replacing token-attention layers.
  • Exact skipping of ParDepth computation at unnecessary positions during prefill.
  • Parallel depth projections using batched GEMM.
  • No need to sacrifice full multi-head attention for KV cache reduction.

I've implemented it and am currently using it in my own model's pretraining.

I have limited compute and honestly don't know how well it scales. If you have the GPUs and find this interesting, give it a try. Whether it works or not, let me know!

GitHub: https://github.com/EliteytGe/ParDepth


r/LLMDevs • • 8h ago

Discussion My Understanding of Harness and Context

0 Upvotes

This talks about harness, context, evals and RL Environments

Agent Harness: This involves engineering systems around model intelligence. There are 3 sides of same problem: what wraps model, what goes in the window, how we know it works:

  • Harness: what wraps the model
  • Context: what does in the window
  • Evals: training data for the harness

If you are not the model you are the harness (Agent = Model + Harness). Let’s talk about some Harness primitives, each one patches a specific model deficiency:

  1. File System: Non Durable State
  2. Bash + Code: No general purpose action
  3. Sandbox: unsafe execution at scale
  4. Sub agents: context contamination
  5. Middleware: no deterministic interventions

Why is a Harness so Important ?

Same Model with different harness, why don’t they get the same score. We pay companies for compute (in the forms of tokens to rent & run their proprietary LLMs) .

Now the coding harnesses like Codex & Claude Code that they provide abstracts a lot of what it does under the hood and how it routes calls to the LLM models which limits our control over the models.

Like a harness used in rock climbing to anchor to a stable point so that we don’t drift off, similarly an agent harness is everything around model which grounds it to a stable environment.

It Includes: Tool Registry, Model, Context Management, Guardrails, Agent loop

Ex: BrowserUse Harness for Hacker News: Go to Hacker news using the playwright browser and give the agent harness tools to interact with browser session and system prompt to carry out task

Model Harness Fit:

Harness is part of the model’s effective parameters. Same operations, different vocabs, backed in by post training

3 Consequences:

  1. No model agnostic agent: honest version, per model harness you pick a product not a model
  2. Mid chat model swaps break: transcript OOD, cache miss, tool surface mismatch, all at once
  3. Matched pair shifts: yesterday’s load bearing scaffold is today’s dead weight

Primitives are derived, not invented. Match the pair: harness = model and scaffolding goes stale, delete code. Now we can add primitives and watch failures fix:

  • tool result clearing: fix output bloat
  • loop detection: break out of doom loops
  • sub agent dispatch: protect parent context

Context Rot: Accuracy declines with input length (frontier models break on a trivial copy task as input grows).

Context is finite, in performance not just tokens (n tokens = n2 pairwise relationships, every token costs attention budget). So in principle use the smallest set of high signal tokens since Context has diminishing marginal returns.

Right altitude: system prompts not too rigid, not too vague

  • brittle: hardcoded if/else
  • goldilocks: specific behaviour, flexible judgements
  • vague: be helpful, be safe

Long horizon strategies:

  1. compaction: used in conversational flow. Ex: summary-then-continue
  2. note taking: used when iterative milestones. Ex: Notes[dot]md and scratchpad
  3. sub agent: parallel exploration. Ex: clean context per branch

Evals: Training data for harness improvements since harness + evals + harness engineering lead to a better agent (same loop as supervised learning, gradient flows into the harness)

Mirage of Generic Metrics: MMLU, HELM, BERTScore, these don’t tell you if your product works, you need custom evals catered towards your product.

Critique shadowing: Hamel husain’s process of building product evals

  1. Find THE principal domain expert
  2. Build diverse dataset (features × scenarios × personas)
  3. Pass / fail + detailed critique
  4. Fix obvious agent errors
  5. Build LLM judge, iterate to alignment
  6. Error analysis at scale

LLM Judgment alignment: diff splits than ML, small train, big test

The harness flywheel:

Build an aligned LLM judge:

  1. Synthesize 20 diverse queries for company-research agent
  2. Hand-label pass / fail with critiques
  3. Train / dev / test split — write judge v1 (no few-shot)
  4. Iterate to v2 with few-shot, lock and test
  5. Cluster failure modes → harness backlog

Three Takeaways:

  1. Agent = Model + Harness: harness is part of the model’s effective parameters
  2. Context is finite — in performance. smallest set of high-signal tokens, JIT > pre-load
  3. Evals are training data: binary > Likert, aligned LLM judge, the flywheel never ends

RL Environments for LLMs:

Environments are synthetic data engines, RL trainers and eval harness the same artifact, three jobs. Thus same environment (same artifact) can be used for all of these 4 use-cases:

  1. Evaluation (run rollout, average rubric)
  2. RL training (rubric scores, become rewards)
  3. Synthetic data generation (keep high rubric rollouts)
  4. Agent harness experimentation (swap models, swap scaffolds)

Dataset: Task Inputs usually with ground truth or rubric

  • GSM8K — grade-school math
  • HumanEval — coding problems with tests
  • τ-bench — customer service dialogues
  • SWE-bench — real GitHub issues
  • BrowseComp — web research tasks

Build it once. Use it four ways. Now lets revise how RL works where the goal is to learn a policy that maximises cumulative reward. Everything in modern LLM RL training is a special case of this loop.

But how does classical RL translate to RL in LLMs

Why verifiability equals unhackability ?

The reward function has nothing to manipulate expect the actual capability you want

But why study about environments now, since closed labs are racing to build proprietary envs.

Ex: for INTELLECT-3

  • Released: 26 November 2025
  • Architecture: 106B Mixture-of-Experts
  • Base model: GLM-4.5-Air
  • Compute: 512 NVIDIA H200 GPUs · ~2 months
  • Stack: Verifiers + Environments Hub + prime-rl

Verifiers:

Built by Prime Intellect (github[dot]com/PrimeIntellect-ai/verifiers), it is an open source Python framework for training and evaluating AI models using environments, tools and reward functions.

Think of it as infrastructure that teaches an AI agent how to perform tasks and measures whether it performed them correctly.

Imagine you want to train an AI agent that can solve Python programming problems. You need to:

  1. Give the model a programming question
  2. Let it generate code
  3. Execute that code
  4. Check whether the code passes the test cases
  5. Give the model a score based on its performance
  6. Use that score to improve the model through reinforcement learning (RL)

Core Abstractions of Abstraction:

  • SingleTurnEnv: One prompt, one response
  • MultiTurnEnv: Iterative Dialogue
  • ToolEnv: Native tool calling
  • CodeEnv: Code Execution
  • Rubric: Composable scoring
  • Parser: Structured Extraction

OpenEnv:

OpenEnv is an open-source framework for creating and running isolated environments in which AI agents can interact with the real world through standardized APIs.

It is developed through collaboration between Meta and Hugging Face, and was presented at the PyTorch Conference on 23 October 2025.

The easiest way to understand it:

Imagine you build an AI agent that needs to interact with a computer, execute code, use a browser, or operate a simulated environment.

You need a controlled place where the agent can:

  • Take an action
  • Observe what happened
  • Take another action
  • Reset the environment
  • Eventually finish the task

OpenEnv provides infrastructure for building these environments. The Environments Hub is a public registry (like a pip for environments) so every published env can be evaluated, used as a data engine, or trained on.

So to summarise the main points:

  • same model, different harness leads to different results so model harness fit is important
  • Environment = dataset + rollout + rubric (3 pieces)
  • Same artifact: eval, training, data , harness (Build once, use 4 ways)
  • Rubric brittleness is the #1 footgun (parse first, score second)
  • Verifiable rewards are unhackable (everything else, you fight)
  • Multi turn is where the real RL lives (single turn is for benchmarks)

r/LLMDevs • • 13h ago

Help Wanted I added a 10-second EvalSeal demo: a 0.92 eval score still failed the CI gate

2 Upvotes

Someone read the EvalSeal repo and pointed out that the README explained the idea without showing what the tool actually did. Fair feedback, so I put a short terminal replay near the top.

It runs a recorded LLM evaluation with 20 cases and five verdicts per case. The mean is 0.92, above the 0.85 threshold. The receipt ledger verifies. But five cases exceed the 10% flip-rate limit, so the CI gate exits 3.

That’s the problem I built EvalSeal to make visible: an average can clear your threshold while individual cases keep changing verdicts. The demo uses committed responses, so you can replay the workflow without an API key.

If you use LLM judges in CI, what would you actually block on: one unstable case, a set of critical cases, or only a drop in the overall score?

Repo and demo


r/LLMDevs • • 9h ago

Discussion Adapting the free web ecosystem to the AI world

1 Upvotes

The success of the internet relied critically on the fact that so many applications were free to use. And this was primarily possible because the cost of web services was not exorbitant. Today the same idea doesn't work with AI because if I build a free AI application the LLM costs for me are massive and the only way to provide a service is to charge everyone who uses it.

What would be great is if users could securely attach their own models to any AI application. We can kind of do this through plugins but those are one way streets with ChatGPT and Claude having all of the control.

Potential Solution:

Users Host an Open-AI compatible API and provide a secure link to any application that wants to use it.

Lets say I have built ExampleAI:

  1. Users will generate a domain specific endpoint and API Key and provide it to ExampleAI
  2. For every LLM call ExampleAI would will call this endpoint for inference

This way my users get to use ExampleAI with their own LLM and essentially don't have to pay me.

Avoiding Abuse:

How do we ensure that ExampleAI stays within the bounds of approved usage?

  1. Internally the endpoint will maintain a terms file that will void an API key if the prompt violates the terms
  2. The user can also pause an endpoint at his discretion to prevent its usage when he is not using the application
  3. Finally the endpoint will maintain a log of all the calls received in case the user ever has any suspicions

Let me know what you guys think, if there are existing solutions and how you would approach this problem.


r/LLMDevs • • 13h ago

Tools Four of the six RAG/GraphRAG systems I benchmarked never handed the model the figure a question was about, so I built one that reads each page's outline instead (open source)

2 Upvotes

Disclosure: I built this. It's Graph-Me-Maybe, open source (Apache-2.0) and free, with no paid tier.

TL;DR: On MMLongBench-Doc, text-chunk pipelines (RAG, LightRAG, GraphRAG, HippoRAG 2) gave the answering model the figure a question was about in 0% of the questions that needed one. Reading every page as an image and keeping each document's own outline as the graph got that to 86%, and overall accuracy to 72%.

The problem

Long PDFs, slide decks and spreadsheets answer a lot of questions in tables, charts and layout. Most pipelines turn pages into text chunks first and extract entities from the text afterwards. By the time retrieval runs, the figure is already gone.

What I measured

MMLongBench-Doc marks the evidence for each question. On the 178 questions with evidence, this is how often that evidence reached the answering model. A chart or picture question counts only if the picture itself was handed over.

systemevidence handed overfigure evidence handed overaccuracy (all 243)
Graph-Me-Maybe93.8%85.9%72.0%
RAG-Anything84.3%60.6%67.5%
LightRAG59.6%0%58.8%
Text RAG39.3%0%49.8%
HippoRAG 231.5%0%46.1%
Microsoft GraphRAG42.7%0%44.4%

On DocBench (annual reports, legal and government documents, papers, news; 160 questions) it scored 83.1%, against 79.1% for LightRAG and 78.1% for RAG-Anything.

Setup: every system got the same documents and the same answering model (Claude Haiku 5.5). Claude Opus 5.5 graded each answer against the dataset's reference answer.

What it does differently

  1. Every page (Word, Excel, PowerPoint, PDF including scans, and mail) is rendered to an image. A vision model reads the page's outline: sections, paragraphs, tables as cell ranges, and figures with their crop.
  2. Each document becomes its own outline tree in the graph. There is no separate entity-extraction pass. Documents are linked when they cite each other, reply to each other, or are versions of the same file.
  3. Search is hybrid (vector + full-text, fused with weighted RRF) over graph chunks, and a hit can expand to its whole section.
  4. The answer step gets the passages plus the figure crops (about 12 per question). A second pass ties each claim to the passage it cites, so the app can highlight the exact cell, slide or paragraph on the original page.

Cost and speed (MMLongBench-Doc, Claude Haiku 5.5 at API prices)

  • Indexing: 20 minutes, against 24 for GraphRAG's fast mode and 5.8 hours for RAG-Anything.
  • Stored size: 1.25x the source documents, against 8.9x for RAG-Anything.
  • Per question: about half a cent ($0.0054), or 44k tokens. Most of that is text passages; the figure crops are about 5k.

Per-type scores, costs and timings: https://graphme.io/benchmarks/

Using it

It's a desktop app for macOS, Windows and Linux with its own Neo4j bundled (no Docker). It reads local folders, synced cloud drives and mail. It also runs an MCP server, so Claude Code, Claude Desktop or Cursor can search the same graph. Pages are read with an OpenAI, Anthropic or Gemini API key, or with a Claude, ChatGPT or Gemini subscription you already have.

A question for people doing document QA: do you pass figure crops to the answering model at question time, or caption the figures at index time and keep everything as text?


r/LLMDevs • • 18h ago

Help Wanted Migrating off OpenRouter after a -$117 prepaid overdraft (203 requests dispatched after balance hit $0). Is Opper reliable for hard spend limits?

Post image
5 Upvotes

I am migrating my stack off OpenRouter and looking for a multi-model router with reliable billing guardrails. Before moving over, I wanted to share the billing audit from my incident for other devs using OpenRouter in production, and ask if anyone here has experience with Opper (opper.ai).

Quick summary of the incident:

On Nov 16, one of my API keys was compromised and hit with 2,521 unauthorized google/gemini-4-carbon requests ($429.43 total). My prepaid account had $12.42 in initial credits plus 30 Stripe Auto Top-ups ($300 in credits, $324 billed), leaving a final balance of -$117.01.

Cross-referencing my Activity CSV with all 30 Stripe receipts exposed 5 separate issues that make it impossible for me to trust OpenRouter as an API gateway anymore:

  1. Upstream exposure with no auditability: OpenRouter support confirmed in their reply that an upstream provider (GMI Cloud) reported unauthorized access to request data and is under investigation. My key was stored inside an internal-only self-hosted router, not in environment variables or a public repo.
  2. No velocity cap on Auto Top-up: Auto Top-up triggered 30 times in minutes (up to 5 times in a single minute) before my bank blocked the card.
  3. Requests dispatched while settled balance was <= $0: Even assuming a 0-second Stripe webhook delay, at least 344 requests ($53.40) were dispatched while my settled balance was already <= $0. After the final $10 top-up cleared at 04:22:09 UTC and all $312.42 in credits were exhausted at 04:22:13.4 UTC, OpenRouter kept dispatching 203 new requests ($31.86) over the next 43.2 seconds (peaking at 19 req/s at 04:22:21 UTC). Their own API Limits docs state they enforce account balance limits with HTTP 402.
  4. Collateral account restriction: My account was restricted from closed-weight models (Anthropic, Google, OpenAI) due to the attacker's traffic, and support did not address it.
  5. Support gap: Nearly 3 weeks to get a reply, which was a generic Terms of Service denial that ignored the -$117.01 overdraft and enforcement delay.

Full timeline and logs from my original thread if you want to inspect the breakdown:

https://www.reddit.com/r/openrouter/comments/1y6nwgu/no_response_from_support_for_10_days_after_gmi/

My biggest concern from an engineering standpoint is simple: if a prepaid account can keep dispatching requests at <= $0 and drop to -$117.01, how do I even know it won't keep letting requests through from -$117?

For those who have moved away from OpenRouter, is Opper (opper.ai) a solid alternative in terms of reliability, strict spend enforcement, and provider security? Also open to other gateway or self-hosted proxy setups if you have recommendations that handle hard budget caps properly.


r/LLMDevs • • 11h ago

Discussion Same model, different harness, different reasoning style

Post image
1 Upvotes

Came across an interesting finding from Artificial Analysis' Terminal-Bench 4.1 study.

They tested 28 open-weight models across 13 agent harnesses. Seven showed persistent telegraphic reasoning, though the behavior varied across harnesses.

  •  GLM-5.3-Flash, GLM-5.3, MiMo-V2.6-Pro, and MiMo-V2.6-Flash only showed it in Codex.
  •  DeepSeek V4.1 Flash 1017 and Tencent Hy4 showed it in Codex and some other harnesses.
  •  Kimi K3.1 Pro kept its own telegraphic style across every harness tested.

Curious whether this kind of compressed reasoning actually affects task performance, or if it's mostly just a difference in how models express their thoughts lol

Have you noticed similar differences when running the same model across Codex or other agent setups?


r/LLMDevs • • 12h ago

Help Wanted Is Composio reliable enough for production agents? Real experiences wanted (vs Pipedream Connect / Nango / DIY)

1 Upvotes

Has anyone run Composio in production with paying users? I'm trying to work out whether it's solid enough to build on.

Context: we're building an agent product for very small design agencies (1 to 5 people). It reads from Slack, Gmail, Xero, Linear and Notion so they can ask questions about their work and numbers in one place. It's mostly read-only, with a few write actions like drafting replies or creating tickets.

What I'd love to know:

  • Reliability: how often do tool calls or triggers fail? I've read the April incident report where trigger events were lost and couldn't be recovered. Did that affect you, and do you now run your own webhooks as a backup?
  • Tool quality: do LLMs handle Composio's tool schemas well, or do you hit missing parameters and hallucinated arguments? Are you using its tools as they are, or only the OAuth layer with your own tools on top?
  • Coverage: has anyone used the Xero integration in anger? That's the one I'm most nervous about.
  • Alternatives: if you moved off it, what to? Pipedream Connect, Nango, or your own OAuth and hand-written tools? Was it worth it?
  • Ops: any problems with latency, rate limits, debugging failed calls, or lock-in?

I'll share what we end up choosing and why.


r/LLMDevs • • 1d ago

Resource Agent swarms are fast, but on tasks built for teams they still often can’t beat a single agent

Post image
6 Upvotes

Studies on agent swarms often seem to conflict. Some show teams beating a single agent, and others show collaboration hurting. One explanation for this is task structure -- tasks that should favor teams have parallelizable subcomponents, room for method exploration, distinct roles, discovery, or ambiguity (the heatmap image shows five scientific tasks rated on these; ratings came from an LLM jury plus manual fixes).

Setup: 1, 4 and 8 agents in a shared sandbox with a message channel and no assigned roles. GPT-6-Astra (Codex) and Opus 5.5 (Claude Code), 5 trials per setup.
What stood out:

  • Teams used parallelization everywhere but used the other properties unevenly, and it varied by model and harness.
  • Spin-glass (the most parallel task): single agents and teams both went 5/5. Teams only cut time for Opus, from about 314 to 110 minutes.
  • Stereo DEM: Codex went 2/5 → 4/5 → 5/5 with 1, 4 and 8 agents. Opus went 3/5 → 2/5 → 1/5. Winning teams kept testing alignments on held-out ground, while failing ones stopped once the result looked plausible.
  • Nanoindentation: teams were faster, but the pass rate didn’t improve. Everything hinged on one agent applying a creep correction, and nobody independently checked it.
  • Inelastic materials: Claude Code teams split the materials across agents, so one wrong labeling call cost whole groups. Codex teams that debated labels and audited files passed 5/5.
  • The task with all five properties rated “strong” (CMB) was the hardest. Opus teams went 0/5, and Codex teams were 2/5 versus 0/5 for single agents.

Caveats: five tasks, small N, and teams got more CPUs than single agents, so this compares configurations, not matched compute.

Source (written by a colleague).