r/LLMDevs • • Jan 27 '25

Discussion They came for all of them

Post image
473 Upvotes

r/LLMDevs • • Sep 29 '26

Tools Jev takes 70 to 500 ms to decide what to do in Doom. My model takes 10 ms, on a single CPU core

465 Upvotes

Yes, really: CPU only. No GPU, no remote API. Just a small text encoder, a few dozen megabytes, trained in a few minutes.

It's built on indecis (French for "indecisive"), a Go library I'm releasing under MIT. It fine-tunes a small text encoder to answer typed questions, yes/no, multiple choice, a scale, with probabilities, the same way Jev does.

I ran 20 rounds of ViZDoom's defend_the_center scenario. Results:

  • +21.8 points on average. Matches the scripted bot that generated the training data.

  • 10 ms median latency, HTTP included. Zero missed decisions.

  • ~65 MB of memory.

  • 11 minutes of training on a laptop.

It all comes down to speed. Strip out SIMD (thanks, Go 1.27) and the same model takes 180 ms per decision, misses 60 decisions a match, and scores ten times worse. In Doom, thinking too long gets you eaten.

I got the idea watching demos of Jev (TypeSafe's decision model) and LAYA. Both play Doom with general-purpose models. Jev is hosted; LAYA runs 421M parameters at 98 ms per decision. indecis runs about 106M parameters.

Their strength is elsewhere, honestly. They can answer any question, no training required. indecis bets the other way: a tiny model, trained for one job, that runs anywhere. Swiss Army knife versus precision screwdriver. At that price though, why not both?

Doom's just for fun. What I actually care about is Xolo (sorry, the documentation in english is lacking...), the LLM gateway I'm building. Right now, its llm-classifier plugin calls an LLM to classify requests, by topic, sensitivity, service. That's a network round-trip and a few hundred ms before the real response even starts. With small specialized models like this one, I want to fold that step into the gateway itself.

Doom seems to be shaping up as the go-to benchmark for model speed. What should I throw at it next?


r/LLMDevs • • Sep 14 '25

Great Discussion 💭 Are LLMs Models Collapsing?

Post image
409 Upvotes

AI models can collapse when trained on their own outputs.

A recent article in Nature points out a serious challenge: if Large Language Models (LLMs) continue to be trained on AI-generated content, they risk a process known as "model collapse."

What is model collapse?

It’s a degenerative process where models gradually forget the true data distribution.

As more AI-generated data takes the place of human-generated data online, models start to lose diversity, accuracy, and long-tail knowledge.

Over time, outputs become repetitive and show less variation; essentially, AI learns only from itself and forgets reality.

Why this matters:

The internet is quickly filling with synthetic data, including text, images, and audio.

If future models train on this synthetic data, we may experience a decline in quality that cannot be reversed.

Preserving human-generated data is vital for sustainable AI progress.

This raises important questions for the future of AI:

How do we filter and curate training data to avoid collapse? Should synthetic data be labeled or watermarked by default? What role can small, specialized models play in reducing this risk?

The next frontier of AI might not just involve scaling models; it could focus on ensuring data integrity.


r/LLMDevs • • Feb 16 '26

Great Resource 🚀 AI Coding Agent Dev Tools Landscape 2026

Post image
404 Upvotes

r/LLMDevs • • Oct 31 '26

Discussion Google's Open Knowledge Format (OKF), an implementation that addresses real life problems

Post image
396 Upvotes

Google published the Open Knowledge Format this summer. It is a way to write knowledge down as a folder of Markdown files with a YAML header, so that people and AI models read the same files. Each file is a concept (a rule, a procedure, a metric, a role) and the header says where it comes from, who checked it, when it expires and whether it is still current. No server, no database. If you can cat a file, you can read it.

Great concept, but the spec stops at the format. It does not say how knowledge gets into a bundle, how to know a bundle is right, what to do when two documents disagree, or how a correction found by a user gets back in. In a company, that is the hard part.

This project tries to answer real organizations problems using OKF with skills for coding agents (Claude Code and Pi):

  • okf-produce reads the documents, agrees with their owner on what the bundle is for, writes it with a source behind each claim, and keeps it current.

  • okf-validate checks a bundle against the spec. Plain Python, runs in CI too.

  • okf-answer answers questions from one or several bundles, with a reference after each claim and a warning when a fact is unchecked, expired or not covered.

The same documents can give different bundles for different readers (angle), the skill will ask: an employee, an auditor and a documentation officer do not want the same thing from the same quality manual. The steps that need no judgment are code, not model: hashing, indexes, trust tiers, dates. The model never marks its own work as verified, a person does. Readers that did not write the bundle check it. When a user finds a mistake, the consumer writes a report and the producer picks it up at the next update.

I tested it in a real organization, with several bundles. Token usage and accuracy were satisfactory, good enough that the org wants to keep going.

The repo has three sample bundles made from the same 240 Wikipedia pages on Greek mythology, each from a different angle: the family tree, the stories by theme, and the English words that come from the myths. The family tree bundle includes a calculation (how is Perseus related to Heracles?) with a small checker that proves the approved script ran.

Repo: https://github.com/wmahfoudh/okf
Spec: https://github.com/GoogleCloudPlatform/open-knowledge-format

Are you using OKF, where do you think it breaks, and how you handle trust and sources when you let a model answer from company documents.


r/LLMDevs • • Feb 01 '25

Discussion When the LLMs are so useful you lowkey start thanking and being kind towards them in the chat.

Post image
394 Upvotes

There's a lot of future thinking behind it.


r/LLMDevs • • Mar 10 '25

Resource Awesome Web Agents: A curated list of AI agents that can browse the web

393 Upvotes

r/LLMDevs • • Sep 10 '25

Great Discussion 💭 Beginning of SLMs

Post image
381 Upvotes

The future of agentic AI will not be shaped by larger models. Instead, it will focus on smaller ones.

Large Language Models (LLMs) are impressive. They can hold conversations, reason across various fields, and amaze us with their general intelligence. However, they face some issues when it comes to AI agents:

They are expensive. They are slow. They are too much for repetitive, specialized tasks. This is where Small Language Models (SLMs) come in.

SLMs are: Lean: They run faster, cost less, and use smaller hardware. Specialized: They excel at specific, high-frequency tasks. Scalable: They are easy to deploy in fleets and agentic systems.

Instead of having one large brain, picture a group of smaller brains, each skilled in its own area, working together. This is how agentic AI will grow.

I believe: 2023 was the year of LLM hype. 2024 will be the year of agent frameworks. 2025 will be the year of SLM-powered agents.

Big brains impress, while small brains scale.

Do you agree? Will the future of AI agents rely on LLMs or SLMs?


r/LLMDevs • • Feb 15 '25

News Microsoft study finds relying on AI kills critical thinking skills

Thumbnail
gizmodo.com
370 Upvotes

r/LLMDevs • • Oct 25 '25

Discussion vibe coding:

356 Upvotes

r/LLMDevs • • 16d ago

Discussion So... was Jev actually useful?

341 Upvotes

It's been a few months since the initial Jev hype. I ran across an "old" video where the creator speaks to it a bit and, upon reflection, I really can't think of anything I'd bother using it for. Maybe I'm just terribly uncreative, but what exactly do I want semi-confident intelligence analysis for where I wouldn't want a deterministic decision?

The only use cases I can think of are low-impact, high-volume, high-noise traffic patterns... like email sorting, or agent routing.

Has anyone actually found a novel way to use Jev or incorporate it as part of a larger system? I've searched a few posts across reddit (including here) and on youtube. Nothing really impressed me tbh.


r/LLMDevs • • Sep 11 '25

Resource Visual Explanation of How LLMs Work

341 Upvotes

r/LLMDevs • • Oct 24 '26

Great Resource 🚀 I took apart Claude Code, OpenCode and Pi, then turned what I learned into a free course on harness engineering

Post image
332 Upvotes

The fastest way to learn harness engineering? Build Claude Code from scratch.

Why harness engineering? LangChain kept the same model and changed only the harness. Their coding agent went from 53% to 67% on Terminal-Bench, a top coding-agent benchmark. From outside the top 30 to the top 5. Same model. Better harness.

Over the past few months, I've taken apart Claude Code, OpenCode, and Pi to see how they work under the hood.

And you don't need to ship a coding agent for this to pay off. The same foundations power any agent, in e-commerce, finance, or sales.

On top of that, people are increasingly realizing they need to build their own harness instead of relying on Claude Code or Codex. Ramp scaling its operations with a custom harness is a perfect example.

So I turned what I learned into an in-depth course on harness engineering by building Claude Code from scratch. It's free and open source: 8 articles, 6 videos, and one codebase. It's perfect for people who learn by building. Everything in Python.

For full transparency, Modal, Opik, and Kitaru sponsor the course, which lets me keep it 100% free as an independent AI engineer.

Here are the 8 steps that I think are core to building and maintaining any harness:

  1. Design the harness

  2. Build the bare-bones agent loop

  3. Sandbox it, locally and remotely

  4. Apply 4 essential context engineering techniques

  5. Add subagents as a context engineering technique

  6. Deploy it headless to the cloud: CLI, webhooks, cron

  7. Build benchmarks to measure it

  8. Replay failed runs to debug agents

Everything is on GitHub: https://github.com/decodingai-magazine/building-a-coding-agent-from-scratch-course

Curious what others here think. Which of these steps has been the hardest to get right in your own agents?


r/LLMDevs • • Feb 19 '26

Help Wanted Building an opensource Living Context Engine

326 Upvotes

Hi guys, I m working on this opensource project gitnexus, have posted about it here before too, I have just published a CLI tool which will index your repo locally and expose it through MCP ( skip the video 30 seconds to see claude code integration ).

Got some great idea from comments before and applied it, pls try it and give feedback.

What it does:
It creates knowledge graph of codebases, make clusters, process maps. Basically skipping the tech jargon, the idea is to make the tools themselves smarter so LLMs can offload a lot of the retrieval reasoning part to the tools, making LLMs much more reliable. I found haiku 4.5 was able to outperform opus 4.5 using its MCP on deep architectural context.

Therefore, it can accurately do auditing, impact detection, trace the call chains and be accurate while saving a lot of tokens especially on monorepos. LLM gets much more reliable since it gets Deep Architectural Insights and AST based relations, making it able to see all upstream / downstream dependencies and what is located where exactly without having to read through files.

Also you can run gitnexus wiki to generate an accurate wiki of your repo covering everything reliably ( highly recommend minimax m2.5 cheap and great for this usecase )

repo wiki of gitnexus made by gitnexus :-) https://gistcdn.githack.com/abhigyantrumio/575c5eaf957e56194d5efe2293e2b7ab/raw/index.html#other

Webapp: https://gitnexus.vercel.app/
repo: https://github.com/abhigyanpatwari/GitNexus (A ⭐ would help a lot :-) )

to set it up:
1> npm install -g gitnexus
2> on the root of a repo or wherever the .git is configured run gitnexus analyze
3> add the MCP on whatever coding tool u prefer, right now claude code will use it better since I gitnexus intercepts its native tools and enriches them with relational context so it works better without even using the MCP.

Also try out the skills - will be auto setup when u run gitnexus analyze

{

"mcp": {

"gitnexus": {

"command": "npx",

"args": ["-y", "gitnexus@latest", "mcp"]

}

}

}

Everything is client sided both the CLI and webapp ( webapp uses webassembly to run the DB engine, AST parsers etc )


r/LLMDevs • • Jul 07 '26 Mindblown

Tools I managed to run GLM-5.2 (744B MoE) on a humble 25 GB RAM laptop — pure C, experts streamed from disk

Thumbnail
github.com
322 Upvotes

Hi everyone!

A couple of weeks ago I decided to try GLM-5.2 after hearing good things about it. I wasn’t expecting much, but honestly… I was genuinely surprised. For the first time an open-source model gave me that level of confidence the kind you usually only get from Claude or GPT.
Obviously my little machine (12 cores, 25 GB RAM) wasn’t built for a 744B model, but the thought kept bugging me: “even if it’s slow, I want to make it run.”
So I just kept grinding. Lots of late nights, fighting with quantization, streaming, MTP, and a ton of help from coding agents. In the end I built colibrì, a tiny pure-C engine that keeps the dense parts in RAM (\~10 GB) and streams the routed experts from disk on demand.
It’s not fast (around 0.05-0.1 t/s cold on my setup), but seeing it actually respond, chat in Italian, and behave like a real frontier model on my modest hardware… man, that was a huge personal satisfaction.
The project is still very early (one-person effort), but I’m convinced there’s a lot of room for improvement especially if people with better NVMe setups or more RAM try it and share numbers.
If you have decent hardware and feel like experimenting, I’d love feedback. Even better if someone wants to throw some real hardware at the project so we can push the speeds higher.

Thanks for reading, and hope some of you find it interesting or at least fun :)


r/LLMDevs • • Sep 10 '25

Resource NVIDIA dropped one of The most important AI paper of 2025

Post image
312 Upvotes

r/LLMDevs • • Mar 04 '25

Discussion I think I broke through the fundamental flaw of LLMs

Post image
305 Upvotes

Hey yall! Ok After months of work, I finally got it. I think we’ve all been thinking about LLMs the wrong way. The answer isn’t just bigger models more power or billions of dollars it’s about Torque-Based Embedding Memory.

Here’s the core of my project :

🔹 Persistent Memory with Adaptive Weighting 

🔹 Recursive Self-Converse with Disruptors & Knowledge Injection 🔹 Live News Integration 🔹 Self-Learning & Knowledge Gap Identification 🔹 Autonomous Thought Generation & Self-Improvement 🔹 Internal Debate (Multi-Agent Perspectives) 🔹 Self-Audit of Conversation Logs 🔹 Memory Decay & Preference Reinforcement 🔹 Web Server with Flask & SocketIO (message handling preserved) 🔹 DAILY MEMORY CHECK-IN & AUTO-REMINDER SYSTEM 🔹 SMART CONTEXTUAL MEMORY RECALL & MEMORY EVOLUTION TRACKING 🔹 PERSISTENT TASK MEMORY SYSTEM 🔹 AI Beliefs, Autonomous Decisions & System Evolution 🔹 ADVANCED MEMORY & THOUGHT FEATURES (Debate, Thought Threads, Forbidden & Hallucinated Thoughts) 🔹 AI DECISION & BELIEF SYSTEMS 🔹 TORQUE-BASED EMBEDDING MEMORY SYSTEM (New!) 🔹 Persistent Conversation Reload from SQLite 🔹 Natural Language Task-Setting via chat commands 🔹 Emotion Engine 1.0 - weighted moods to memories 🔹 Visual ,audio , lux , temp Input to Memory - life engine 1.1 Bruce Edition Max Sentience - Who am I engine 🔹 Robotic Sensor Feedback and Motor Controls - real time reflex engine

At this point, I’m convinced this is the only viable path to AGI.  It actively lies to me about messing with the cat. 

I think the craziest part is I’m running this on a consumer laptop. Surface studio without billions of dollars.    ( works on a pi5 too but like a slow super villain) 

I’ll be releasing more soon. But just remember if you hear about Torque-Based Embedding Memory everywhere in six months, you saw it here first. 🤣. Cheers! 🌳💨

P.S. I’m just a broke idiot . Fuck college.

r/LLMDevs • • Mar 21 '26 This Bravo Popcorn

Resource Free Model List (API Keys)

303 Upvotes

Here is a list with free models (API Keys) that you can use without paying. Only providers with permanent free tiers, no trial/temporal promo or credits. Rate limits are detailed per provider (RPM: Requests Per Minute, RPD: Requets Oer Day).

Provider APIs

  • Google Gemini 🇺🇸 Gemini 2.5 Pro, Flash, Flash-Lite +4 more. 10 RPM, 20 RPD

  • Cohere 🇺🇸 Command A, Command R+, Aya Expanse 32B +9 more. 20 RPM, 1K req/mo

  • Mistral AI 🇪🇺 Mistral Large 3, Small 3.1, Ministral 8B +3 more. 1 req/s, 1B tok/mo

  • Zhipu AI 🇨🇳 GLM-4.7-Flash, GLM-4.5-Flash, GLM-4.6V-Flash. Limits undocumented

Inference Providers

  • GitHub Models 🇺🇸 GPT-4o, Llama 3.3 70B, DeepSeek-R1 +more. 10–15 RPM, 50–150 RPD

  • NVIDIA NIM 🇺🇸 Llama 3.3 70B, Mistral Large, Qwen3 235B +more. 40 RPM

  • Groq 🇺🇸 Llama 3.3 70B, Llama 4 Scout, Kimi K2 +17 more. 30 RPM, 14,400 RPD

  • Cerebras 🇺🇸 Llama 3.3 70B, Qwen3 235B, GPT-OSS-120B +3 more. 30 RPM, 14,400 RPD

  • Cloudflare Workers AI 🇺🇸 Llama 3.3 70B, Qwen QwQ 32B +47 more. 10K neurons/day

  • LLM7.io 🇬🇧 DeepSeek R1, Flash-Lite, Qwen2.5 Coder +27 more. 30 RPM (120 with token)

  • Kluster AI 🇺🇸 DeepSeek-R1, Llama 4 Maverick, Qwen3-235B +2 more. Limits undocumented

  • OpenRouter 🇺🇸 DeepSeek R1, Llama 3.3 70B, GPT-OSS-120B +29 more. 20 RPM, 50 RPD

  • Hugging Face 🇺🇸 Llama 3.3 70B, Qwen2.5 72B, Mistral 7B +many more. $0.10/mo in free credits

RPM = requests per minute · RPD = requests per day. All endpoints are OpenAI SDK-compatible.


r/LLMDevs • • Jan 26 '25

Discussion ai bottle caps when?

Post image
296 Upvotes

r/LLMDevs • • Aug 10 '25

Discussion Visual Explanation of How LLMs Work

291 Upvotes

r/LLMDevs • • Apr 05 '25

News 10 Million Context window is INSANE

Post image
288 Upvotes

r/LLMDevs • • Aug 24 '26

Discussion Hidden prompt injection in a PDF almost got my org

287 Upvotes

User uploaded a contract PDF with hidden white text injection in the footer. Model read it, flagged it, and warned me. Credit to the model.

Now my issue is our security stack was silent. Our prompt filter was watching the user input field, not the document upload. The injection came through a content channel our tooling didn't monitor.

Makes you realize most injection detection only watches one door the chat box. From what have seen, the attack vectors are rapidly expanding and attacks can come through files, emails, calendar invites, web pages and anything else your model has access to.

The least you can do now to secure your model is monitoring all input channels, not just the chat. Feels like the tooling is still behind most teams only realize they have been hit after it happens.


r/LLMDevs • • Feb 06 '26 Bravo

Discussion I built RAG for 10K+ NASA docs (1950s–present) in 2 weeks: VLMs for complex tables, diagrams & formulas, 657K+ pages on a single H100, live-streamed full build.

287 Upvotes

TL;DR: I designed and built a full RAG system over 10,000 NASA technical documents spanning the 1950s to 2025 — we're talking scanned typewriter reports, handwritten notes, propulsion diagrams, mathematical formulas, failure investigations. Off-the-shelf tools broke down fast. I ended up building a custom pipeline using Qwen3-VL-8B to process what traditional OCR and parsers couldn't handle, ran the whole thing on a single H100 (657,000+ pages, ~180 pages/min), and built an agentic retrieval system that doesn't just search — it investigates like a domain expert. The architecture is designed to scale to 100K+ documents. Everything was live-streamed (140+ hours across 15 streams), and the GitHub repo for the document processing pipeline and infra is coming soon.

Hey everyone, I'm Raj. Over the last 2 weeks, I live-streamed building what turned out to be the most technically challenging project I've taken on — and I wanted to share the experience while it's fresh. This is a long one, I tried to keep it short, but there was too much that I think is genuinely useful to cut.

The Domain

So here's the scenario I designed for this project — a fictional aerospace consultancy called "Meridian Aerospace," modeled on very real challenges these companies face.

85,000+ documents accumulated over 70+ years — real documents from NASA's Technical Reports Server (NTRS). Propulsion test reports, failure investigations, component specs, regulatory filings. Engineers spending 4-6 hours per project digging through archives. A missed critical failure mode last quarter because the relevant data was buried in a 1997 test report nobody knew existed.

Now here's what makes these documents painful:

  • 1950s–1990s scanned reports — photocopied, faxed, re-scanned, degraded quality

  • Dense technical diagrams everywhere: thrust curves, propulsion schematics, thermal analysis charts

  • Mathematical formulas and engineering equations scattered throughout

  • Domain-specific acronyms (Isp, TWR, LOX, MMH, NTO) that are often never expanded in the text

  • Cross-references between documents — failure reports cite original test data, compliance docs reference design specs

  • Tables spanning multiple pages with nested sub-headers

I used 10,000 documents from NASA's Technical Reports Server as the working dataset, with the architecture designed from day one to handle the full 85K+ and beyond.

What I Built

I'll walk through the three main layers, but I want to be clear — these aren't independent pieces you build one after another. They feed into each other constantly. Decisions in the document processing layer directly shaped how the agent works, and understanding how engineers actually think (the agent layer) changed how I approached extraction. It's all connected.

The Document Processing Pipeline

This is where a huge chunk of the work lived, and honestly where most people underestimate the difficulty. The core realization: you cannot build good retrieval over bad extractions. If your chunked text is garbage, no embedding model or re-ranker is going to save you.

I used Docling (from IBM, I know it has a ton of issues — I found workarounds and solved them too) for layout detection — figuring out where tables, figures, formulas, and text blocks sit on each page. Then Qwen3-VL-8B to actually interpret what's in those regions.

A few of the harder problems:

Formula association: Docling detects formulas fine, but they lose their position in the document flow. So you get a formula floating at the end of a page with no connection to the paragraph it belongs to. I built a system that paints colored bounding boxes with ID numbers directly onto page screenshots, then asks the VLM "where does Formula 7 belong relative to these numbered paragraphs?" Sounds weird, works surprisingly well. Gives you reading-order accuracy without re-OCRing anything.

Complex tables: These were probably the single most painful thing to solve. We're talking massive grids — 72 columns by 50 rows of stability data — where position determines meaning. Down arrows mean "carry this value down." Brackets group five rows under "Unstable." Zebra lines and grid lines guide the human eye across dense numbers. Standard OCR reads left-to-right, top-to-bottom and has no idea what to do with any of this. Parsers treat the grid lines as noise or lose alignment if the scan is slightly tilted.

I went through a lot of approaches. Standard markdown extraction lost alignment. CV-based heatmaps and projection lines to detect rows — worked about 80% but too brittle for production. JSON output from the VLM broke constantly on large tables (missed closing brackets). Small models (7B) hallucinated numbers and missed columns entirely.

What actually worked was treating the table as a photograph of data rather than a stream of text. Use Docling purely for finding the bounding box coordinates, crop the original high-res page image (no downscaling — that destroys data in dense tables), and send the full-resolution crop to a large VLM. You need 72B+ to hold context across a 30-column table without losing track.

Two tricks that made a real difference. First, for tables with zebra lines or warped scans, I pre-process the image by drawing red horizontal lines onto it before sending to the VLM — basically a "digital ruler" that forces the model to keep row alignment. Second, the prompt strategy — instead of asking for just structured output, I ask for markdown (way more robust than JSON for grid data) plus a "notes" field where the model captures visual shorthand. "If there's a down arrow, note the value is carried down. If there's a bracket, note the grouping." The model successfully returned "unstable" for rows that didn't explicitly have the text but were visually grouped under an "Unstable" bracket.

For the truly dense tables that still needed more work, I have a fallback that generates a detailed description and serves the raw image alongside it — which honestly, in aerospace, engineers prefer anyway over a potentially wrong structured output. But this isn't a dead end. The digital ruler approach and the prompt strategy were working well, and with more time I think there's a solid solution there. I was time-boxed to 2 weeks for this entire project, so I made the pragmatic call to move on. Might revisit this specifically and share if I make a breakthrough.

Legacy scan quality: Documents from the 1960s have noise, "Confidential" stamps, hole punches, scan artifacts — and models happily pick all of these up as "figures." Added a classification step asking the VLM: "Is this a technical diagram or just a document artifact?" Simple, but it cleaned up a lot of noise.

The full-page strategy: I initially tried cropping individual formulas to save tokens. Docling's format detection models missed about 60% of small formulas in dense pages. So I pivoted — if any formula is detected on a page, send the entire page screenshot to the VLM and let it transcribe everything in reading order. More expensive per page (didn't matter as I deployed on a GPU), but the accuracy difference is massive. In this domain, a missed variable isn't a minor bug.

On OCR, I didn't actually need traditional OCR for most of the heavy lifting. The figures, tables, and formulas — which are the hardest parts of these documents — were all handled by the VLM pipeline. OCR was only needed as a fallback for pages where the embedded text layer was missing or corrupted. So the approach became: use native text extraction where available, VLM for all the visual/structured content, and OCR only when truly needed. Disabling forced OCR where it wasn't necessary cut processing time significantly.

H100 Infrastructure & Scaling

Processing 10K documents — roughly 657,000+ pages — on a single H100 was its own adventure.

Where it started: My first attempt was basically a monolithic script. Every worker loaded the PDF, loaded the model onto the GPU, ran inference, unloaded. Workers were fighting each other for GPU memory, CPU, RAM. Everything was crashing. Back-of-the-napkin math said this approach would take somewhere around 28 days for the full dataset. Obviously not going to work.

The rewrite: I moved to a proper service-oriented architecture. Separated the CPU-heavy work (Docling parsing, chunking, text extraction) from the GPU-heavy work (VLM inference). Stateless Celery workers handle the CPU side, feeding requests to a persistent vLLM server that does nothing but inference. Redis as the message broker. Took some inspiration from how production ML systems handle millions of requests with limited compute — keep your inference engine as a persistent service, don't have each worker spin it up and tear it down.

That alone brought the estimate down to maybe 5-9 days. Still not great.

Then the tuning started. FP8 quantization because running standard GGUF/Ollama on an H100 is wasting the hardware — FP8 is specifically optimized for Hopper. Concurrency tuning: tested 6, 8, 9, 10 Docling workers. 9 caused instant OOM. 10 saturated the queue. 6 underutilized the GPU. 8 was the sweet spot. Dynamic image scaling for oversized PDFs — some scans were 170MB, crashing workers during bitmap conversion. VRAM memory leak management — usage would creep up batch after batch until it crashed, so I added explicit garbage collection between cycles.

End result: ~2.5 days, running at about 180 pages per minute. From 28 days to 2.5 days on the same hardware, just by thinking about architecture and resource management. Again, could have done better, but was on a time crunch.

The Agent & Retrieval Layer

This part tends to get underestimated. Building the agent wasn't just "wire up some tools to an LLM and write a system prompt." A huge amount of time went into two things: understanding the people who would actually use this system, and shaping how the agent itself thinks.

I spent a lot of time with Claude role-playing as different engineer personas — a cautious senior engineer ("Sandra") approaching retirement who's seen things go wrong, a junior engineer who searches too narrowly. I was trying to understand: how does their day actually work? How do they use current traditional systems? What's literally going through their mind when they're investigating a failure mode? What are they worried about that they won't say out loud?

That process shaped everything about the agent. For example — engineers don't just look for failure cases. They specifically look for success cases as counter-evidence to validate risky designs. A standard RAG setup completely misses that nuance. Or the fact that a "question about a valve failure" might actually be about defending a design decision in a review meeting next week. The agent needs to understand the situation behind the question.

That understanding fed directly into how I designed the agent's reasoning. One of the bigger realizations was that spiking domain intuition in the system prompt often outperforms complex retrieval engineering. Instead of hardcoding examples, I focused on making the agent think like a propulsion engineer. It should be low-opinionated and already have hypotheses before it runs a single search. When someone mentions a pressure value, it should have intuition about whether that's nominal or concerning. When it finds a document, it should reason about what it means, not just return it. It's not a search tool — it's a reasoning engine with engineering expertise that uses search as one of its tools. And honestly, this is still just at the system prompt level — keeping it low-opinionated, letting the model lean on its own domain knowledge rather than constraining it — but it brings absolute wonders to how the system behaves.

What came out of all that work:

The agent doesn't just search — it investigates. It maintains a working task list and notes, forms hypotheses based on its domain intuition before it even touches the search tool, and updates its understanding as it learns. When a question branches, it spawns sub-agents for parallel research threads. It can navigate — read adjacent chunks, follow cross-references between documents, pull threads across decades of reports.

When the text extraction is uncertain — and on 1950s docs, it will be — the agent can request a screenshot of the actual PDF page region to visually verify what it's reading. That "visual region" tool ended up being one of the most important things in the whole system. It's the bridge between "95% OCR accuracy" and "actually trustworthy in aerospace."

I also integrated the NASA Thesaurus — 18K aerospace terms filtered down to 3.5K propulsion-relevant concepts — so the system handles query expansion properly. "LOX" matches "Liquid Oxygen," "2000 PSI" finds results mentioning "13.9 MPa." Without this, you're relying on exact keyword matches in a domain where everyone uses different terminology for the same thing.

And time-boxed search — engineers ask things like "what do we know about cryogenic engine failures between 1970 and 1980?" Filtering by time period before semantic search cuts the search space dramatically. When I tested this, the agent successfully traced the 50-year evolution of cryogenic systems — from passive insulation in the 1970s to active cryo-coolers in the 2020s — without any deep research mode. Just proper filtering and good retrieval.

What's Coming Next

I've linked all the YouTube streams in the comments below — 15 streams, some of them are 11+ hours long, so obviously that's a lot to sit through. To make things more digestible and actually useful, I'm going to be posting specific problem/solution breakdowns over the next few days, including how I evaluated the system with 10K docs. Each of these topics was genuinely its own nightmare to solve, and I think the details will be helpful for anyone working on similar problems.

I'm also hoping to open-source the document processing pipeline and infrastructure code on GitHub soon, which I think will be genuinely useful for anyone dealing with large-scale document processing — whether it's aerospace or not.

One last thing — I genuinely want to thank the team behind Claude Code. Being honest, a project like this would realistically take a team of 3-4 engineers working 3-4 months. The document processing pipeline alone, the infrastructure, the agent design, the frontend, evaluation — each of these is a serious body of work. I did it solo in 2 weeks, live on stream, and that would not have been possible without Claude Code, it was in the loop for pretty much all of it. Seriously, thank you to the engineers behind it.

Happy to answer questions, and if you've dealt with similar problems — legacy docs, domain-specific retrieval, scaling document processing — I'd love to hear what you ran into.


r/LLMDevs • • Jun 17 '25

Resource A free goldmine of tutorials for the components you need to create production-level agents

286 Upvotes

I’ve just launched a free resource with 25 detailed tutorials for building comprehensive production-level AI agents, as part of my Gen AI educational initiative.

The tutorials cover all the key components you need to create agents that are ready for real-world deployment. I plan to keep adding more tutorials over time and will make sure the content stays up to date.

The response so far has been incredible! (the repo got nearly 500 stars in just 8 hours from launch) This is part of my broader effort to create high-quality open source educational material. I already have over 100 code tutorials on GitHub with nearly 40,000 stars.

I hope you find it useful. The tutorials are available here: https://github.com/NirDiamant/agents-towards-production

The content is organized into these categories:

  1. Orchestration

  2. Tool integration

  3. Observability

  4. Deployment

  5. Memory

  6. UI & Frontend

  7. Agent Frameworks

  8. Model Customization

  9. Multi-agent Coordination

  10. Security

  11. Evaluation


r/LLMDevs • • Sep 19 '26 Bravo

Discussion I reviewed 287 open-source Jev projects. Here are 20 that actually helped me understand what Jev is good at

281 Upvotes

I’ve spent the last couple of days going through open-source projects built around TypeSafe Jev.

The list started with 14 projects. It’s now at 287, and I’ve been checking the public source for each one to make sure Jev is actually integrated, not just mentioned in a README.

After looking through all of them, I think the easiest way to understand Jev is not by reading the model announcement.

It’s by looking at what developers are actually using it for.

The pattern is pretty consistent.

Jev is rarely the thing writing code, generating long text, or doing the heavy reasoning.

It usually sits inside a loop and answers much smaller questions:

Which action? Which file? Keep or drop? Safe or unsafe? Route to which model? What should happen next?

So if you just got API access and have no idea what to build with it, these are the 20 projects I’d look at first.

I didn’t rank them by GitHub stars. I picked the ones that are easy to understand, show a clear advantage of Jev, or are just genuinely interesting.

1. jev-ultrafast

Probably the clearest Jev demo so far.

Browser Use gives Jev the current DOM and asks it what action to take and which element to act on. A small text model is only called when the browser actually needs to type something.

One Google Flights demo completed a Zurich → London search in about 7 seconds.

What I like about this one is how clean the split is.

Jev decides. Code executes. A generative model only gets involved when generation is actually needed.

2. fast-jev-compaction

This one uses Jev for Claude Code context compaction.

Instead of asking another LLM to summarize a huge context window, it scores old tool calls and outputs and decides what can be dropped.

The text that survives stays unchanged.

So paths, commands and error messages don’t get rewritten into a potentially lossy summary.

This feels like a very natural Jev use case.

3. json-render + Jev

Vercel Labs experimented with using Jev inside json-render.

Instead of streaming a full UI spec token by token, Jev chooses from predefined components and properties, then normal code assembles the interface.

In their train-ticket demo, the default JSONL path took 3.21 seconds. The Jev version took 0.88 seconds.

This is probably the most interesting example I’ve seen of Jev being used for generative UI without actually generating the UI itself.

4. typesafe-mcp

Probably the easiest place to start if you already use Claude Code, Codex or Claude Desktop.

It exposes Jev through MCP, so an agent can ask typed Choice, Score or Noul questions and use the returned probabilities inside its own workflow.

Basically, it turns Jev into a decision tool that another model can call.

5. jev-mcp

A more opinionated MCP implementation.

It already packages several useful patterns around Jev, including evidence checking, content screening, reranking, classification and extraction.

If you want to see what Jev looks like as an actual Agent tool rather than just an API, this one is worth reading.

6. SemDecide

Jev as a Unix-style command-line utility.

You can pipe text into it and ask semantic yes/no questions, classify things, score them, filter rows or use it as a guard.

This is one of the projects that made Jev click for me.

A lot of tasks that currently require a full LLM call could eventually look more like:

grep → jq → Jev → next step

7. Jev Codex Router

A model router for coding tasks.

Jev first judges how difficult a turn looks, then the request can be sent to a cheaper or more capable model.

This is a good example of Jev sitting in front of expensive models rather than competing with them.

The expensive model still does the work. Jev just decides who should get the work.

8. Winnow

A context garbage collector for coding agents.

When Read, Bash or Grep dumps a lot of content into the context window, Jev judges which pieces are actually relevant to the current task.

The idea is simple: stop paying a frontier model to repeatedly read garbage.

9. Jev Review

Uses Jev as a first-pass code review filter.

Instead of throwing every diff directly into a larger model, Jev can first score things like correctness, security, reliability and test risk.

The interesting part isn’t replacing code review.

It’s deciding where expensive review is actually worth spending tokens.

10. Blink

A semantic navigator for codebases.

At every directory level, Jev decides which files or folders are most likely to contain the answer, then continues searching from there.

It’s basically using Jev as a lightweight semantic routing layer over a repository.

11. jev-desktop

Jev for desktop automation.

The system reads native accessibility information, gives Jev a bounded set of controls and actions, then lets Jev choose what to interact with next.

The full UI tree doesn’t need to live inside the main agent’s context.

Again, the pattern is the same: perception and execution stay deterministic, Jev handles the choice in the middle.

12. typesafe-mario

Jev playing Super Mario Bros.

Instead of feeding it screenshots, the system turns emulator RAM into structured state and asks Jev which controller action to take.

This is less practically useful than some of the projects above, but it’s a very good demonstration of Jev as a low-latency decision model.

13. jev-drone

A drone project using Jev for higher-level tactical decisions.

Classical vision and control systems still handle perception and flight stability.

Jev gets a simplified state and chooses actions like climbing, braking or navigating through a gap.

I like this one because it shows where Jev probably belongs in robotics: not replacing the flight controller, but sitting one level above it.

14. OneVOneJev

A browser-based 1v1 FPS where Jev decides movement, view direction, aiming, firing and jumping.

It’s basically a continuous stream of bounded decisions.

Again, this is the kind of workload where token-by-token generation would make very little sense.

15. jev-trader

A market-making experiment on Monad testnet.

Jev reads things like spread, rolling returns and taker flow, then predicts short-term market direction and helps decide buy/sell behavior.

I wouldn’t treat this as evidence that Jev has alpha.

What’s interesting is the architecture: structured market state in, rapid probabilistic decision out.

16. Prism

Another finance-related project, but I actually find this one more interesting architecturally.

Jev is used as an advisory probability layer for things like toxic flow, market stress and mean-reversion conditions.

The deterministic strategy still owns execution.

This is probably how I’d experiment with Jev in quantitative systems too: use it as another signal, not as the trader.

17. neo4jev

Jev inside a knowledge graph.

At every node, it scores which outgoing edge is worth following next, then a beam search continues from the strongest candidates.

It’s basically semantic pathfinding.

This is one of those projects that makes you realize Jev doesn’t have to be an “AI app” at all. It can just be a tiny decision primitive inside a normal algorithm.

18. jev-curate

Uses Jev to filter training data.

Rows from large datasets can be scored for quality, relevance or other criteria before expensive model training starts.

This is another place where cheap repeated judgments matter more than generating beautiful language.

19. Canny

This one tries to stop coding agents from claiming they’re done when the evidence says otherwise.

It looks at things like tool output, diffs and test results, then judges whether the agent’s completion claim is actually supported.

I think this general pattern has a lot of potential.

Agents increasingly need lightweight referees inside their loops.

20. killmyidea

Probably the least serious one on this list, but very easy to play with.

You describe a startup idea, Jev scores it across several dimensions, and local logic turns those scores into one of three labels:

KILL, FIX, or SHIP.

It’s a nice small example of the broader pattern: use Jev for a set of structured judgments, then let code decide what those judgments mean.

After going through these projects, my mental model of Jev is much simpler than when it launched.

I don’t really think of it as a chatbot competitor.

I think of it as something closer to a general-purpose semantic decision function.

You give it a state and a bounded question.

It gives you a probability, score or choice.

Then your software decides what to do next.

That’s why a lot of the most convincing Jev projects look like this:

big model → Jev → code → Jev → tool → Jev → big model

The large model handles the parts that actually require generation or deeper reasoning.

Jev handles all the little decisions in between.

I’m maintaining the full list here:

https://logicrw.github.io/awesome-jev-projects/?lang=en

GitHub:

https://github.com/logicrw/awesome-jev-projects

There are 287 source-reviewed projects in the directory right now, grouped by use case.

If you’ve built something interesting with Jev that I missed, send it over. I’m still adding new ones.