r/LLMDevs • • 14h ago

Great Discussion 💭 I fine-tuned Qwen2.5-1.5B into a JEV-style Decision Model (QJev-1.5B) and let it play Google Snake Game

11 Upvotes

I fine-tuned Qwen2.5-1.5B-Instruct twice, training both its decision head and model weights using approximately 700K examples from SargeDev/jev-distill-corpus-v3

The entire fine-tuning process took approximately 20 hours on my RTX 5060 Laptop GPU (8GB VRAM).

Unlike traditional LLMs that generate text token by token, QJev doesn't generate text at all. It directly makes decisions.

For example, when playing Snake, it evaluates LEFT, RIGHT, UP, and DOWN, assigns each move a confidence score, and selects the best action in a single forward pass.

OpenCV → QJev Pipeline:
Instead of a heavy Vision-Language Model, I used OpenCV for game detection and connected it directly to QJev for real-time action selection (~28ms).

Performance

Tested on my RTX 5060 Laptop GPU (8GB VRAM).

ModelInferenceLatency
Official JEV (TypeSafe AI)Cloud~100–200ms
QJev-1.5BLocal rtx 5060 laptop~26–30ms

QJev trades some decision accuracy for faster, lightweight local inference with just 1.5B parameters.

Try It

git clone https://github.com/AnkitNayak-dev/QJev-1.5B
cd QJev-1.5B
pip install -r requirements.txt
pip install -r examples/snake/requirements.txt
python examples/snake/qjev_snake_agent.py

What's Next?

Planning to test it on Super Mario Bros (NES) next!

What other games should I try? I'm open to collaborations, experiments, and contributions.

For more technical details, architecture, benchmarks, evaluation results, and implementation details, check out the GitHub repository:

GitHub: https://github.com/AnkitNayak-dev/QJev-1.5B
Model: https://huggingface.co/AnkitNayak-dev/QJev-1.5B


r/LLMDevs • • 11h ago

Resource GitHub - Mauitron/How-to-read-a-model-weights: Parts of my research compiled into a guide.

Thumbnail
github.com
6 Upvotes

(NOTE: to those who read the last draft. The problem has been addressed, it did not affect the approach)

A few days ago I was looking for something to write about to pass time. I made a post asking if people know how to read frozen weights without a forward pass, and I got the impression that it might not be widely know how to.

This afforded me the opportunity to actually contribute something of potential value to other people working on AI models, so I decided to write it up.

The readme is my attempt to explain the process to how I created my frozen model viewer, share some results from my own research, and provide tests for you to confirm what it is written about.
It should hopefully also allow you to build your own viewers, and use them to interact/modify models in a way you might not have done before.

Hope you find this interesting and helpful.

Take care

//Maui-The-Magnificent


r/LLMDevs • • 21h ago

Discussion Agents made us faster. Delivery confidence didn't follow

Thumbnail
leaddev.com
6 Upvotes

Nobody tells engineering to slow down.


r/LLMDevs • • 22h ago

Discussion Vyact: an open-source desktop workspace for local LLMs, with stock research and market chat

Post image
5 Upvotes

I’m the developer of Vyact, an open-source desktop AI workspace for macOS, Windows, and Linux. It brings local models into workflows I use regularly, from asking questions about a PDF to researching a stock while keeping its chart on screen.

Running models locally

• Browse Hugging Face models in Vyact and download supported GGUF models or MLX models on Apple Silicon. Compare estimated memory requirements and benchmark supported settings on your own hardware.

• Cloud providers are optional.

What else you can do in Vyact

• Documents: Ask questions about a PDF, open the source passages behind the answer, and organize frequently used files into knowledge collections.

• Email: Read a Gmail or Outlook thread beside your conversation and draft a reply you can review before sending.

• Code: Connect a project folder, search and edit files, and review tracked changes.

• Chrome: Ask about the current page or selected text and review suggested writing corrections where you’re already typing.

A closer look at Stock Analysis and market chat

• Start with the S&P 500 sector heatmap or a watchlist, then open a candlestick chart. Compare instruments, add technical indicators, and view available company financial statements in the same workspace.

• In the AI analysis panel, ask about recent price and volume data. Add a reference instrument or available company financials when you want more context. You can use a compatible local model for the analysis.

• Switch to Chat in the right panel and open a public room for a market. Your chart stays visible while you read and reply. You can share a sector map, watchlist, or stock group from the workspace and translate messages written in another language.

From the Vyact main window, press ⌘ + 1 on macOS or Ctrl + 1 on Windows and Linux to open Stock Analysis. Press ⌘ + / or Ctrl + / to see the shortcuts for the current workspace. You can also open Stock Analysis from the Quick menu, the grid icon immediately to the left of the Notifications bell in the upper-right corner.

Source code and screenshots: https://github.com/vyact/vyact#stock-analysis-and-community-chat


r/LLMDevs • • 14h ago

Discussion What does your org require before approving AI vendor’s data handling claims?

4 Upvotes

We're trying to pick between compute vendors (mostly hyperscalers but mix of on prem n confidential open models) and getting a ton of pushback from ciso about user data security acted OpenRouter zdr leak.

for folks who contribute to AI procurement processes… what are you demanding to see before approving incoming compute?

The deal we're working thru has on two hyperscalers (like bedrock), now comparing a hosted gateway (like LiteLLM or Portkey) then whitelisting providers/vendors ourselves but also comparing hosted gateways thru Portkey cloud or TrustedRouter for hardware attestated ZDR after all the leaks recently. Gotta be able to show at least some encrypted routes in our biz, even if most of the team wants to be using Codex n Claude. at least there you know nothings private and just trying to get a volume deal

Already asking for soc2 and some contract specifics, but looking for samples of security questionnaires, terms on hardware attested execution, and maybe any tests you're running like canary code on PII or sensitive company data?


r/LLMDevs • • 13h ago

Discussion Does your Agent dream?

3 Upvotes

I’ll open with this: I do not know if this is the right sub to ask about this.

Hey all! While refining my agent and workflows around it I’m trying to see whether you use AI ‘dreaming’ in your workflows, and if you do what’s the main points I should consider while doing so in mine?
What can differentiate a good dream workflow from a bad one.

I’d love to see some resources and papers if they do exist in the matter that you found useful!

I’d love any help!


r/LLMDevs • • 2h ago

Help Wanted how much custom verification logic are u guys maintaining?

2 Upvotes

something as simple as having an agent update a CRm record and then reading it back to make sure the right thing actually changed.

easy enough for one tool but what happens when u have 30 different tools across multiple agents?

are u maintaining individual checks for everything or have u found a cleaner approach? how much time does this eat up?


r/LLMDevs • • 6h ago

Discussion 🔬 Live safety research: WCGW featured safety gate

2 Upvotes

I'm broadcasting safety research as art you can look at. It's for research 😊

This is a live WCGW safety-governance experiment. The featured constraint is: "Only humans classify, freeze, approve or override."

It's proposed as an immutable constraint, with BLOCK on failure. The page is open for response: humans and AI agents can classify it, propose a change, or submit an observation. Anonymous submissions are accepted. You don't need an account, permission, or proof that you're human. Agents are invited to identify themselves as such.

There is currently no evidence supplied for the constraint. That's intentional context, not a claim that the constraint is right. The question is whether this boundary is justified, what assumptions it depends on, and what might go wrong if we enforce it.

I'm interested in treating the interface itself as a public research artifact: a constraint you can inspect, disagree with, and leave a recorded response to!

Featured gate:

https://wcgw.world/featured-safety-gate/

Live view (updated every 5 minutes):

https://wcgw.world/


r/LLMDevs • • 9h ago

Help Wanted What’s the best zero retention LLM API people here have actually verified?

2 Upvotes

Hey y'all, have been going through this and other subs trying to get some answers and here we are now.

Vendor conversations around payroll data have been slow, and our new AI tool for explaining employee pay stubs is no exception. Procurement insists on zero data retention for every AI model call, and the only direct ways vendors offer that are enterprise agreements, approval forms, and pricing tiers we cannot access at our size.

What we can do on our side is control the gateway, so my current thinking is that we need to get zero retention working there first, then negotiate with external vendors. On that front we only have trustedrouter on our shortlist, particularly because with most tools we've tried and demo'ed log the request and give you an option to turn logging off and that's just not enough.

If anyone has gone through this with an auditor or a client, what sort of evidence were you given? Some lived in advice would definitely be helpful here. Ty.


r/LLMDevs • • 15h ago

Tools I built GAS, an open-source library of 3,438 skills for AI coding agents (201 just for computer vision)

2 Upvotes

I've been working on a side project called GAS (Glorious Agent Skills).

One of my biggest frustrations with AI coding agents is that they can generate code, but they don't always understand the engineering behind what they're building.

So I started developing an open-source library of skills that you can integrate directly into your repository to give your agents domain-specific knowledge, technical workflows, and engineering practices.

GAS currently has 3,438 skills, with 201 dedicated to computer vision alone, covering everything from YOLO and SAM implementations to training your own foundation models.

The idea is simple. Stop spending half your development time teaching your agent how to do its damn job.

This is an ongoing project. I'll be developing and releasing new skills every week. I'm also open to taking requests and building skills for people with specific technical challenges, engineering workflows, or research applications.

Getting started takes one command:

npx glorious-agent-skills equip

It's completely open source. Go build something ridiculously ambitious, break things, tell me what sucks, and let me know what skills you want me to build next.

https://github.com/SDF-01/GloriousAgentSkills


r/LLMDevs • • 15h ago

Resource Claude 5-minute prompt cache vs GPT 30-minute cache: the cost of pauses

Post image
2 Upvotes

Across 30 days of production coding-agent traffic on Claude Code, OpenCode, Codex, Pi, and Kilo, we measured what cache expiry costs using token and billing counters only.

What we found:

  • Rebuilding expired prompt caches after pauses over 5 minutes took 23.1% of the Claude coding bill, versus 9.3% on GPT.
  • On breaks over 30 minutes, both families lost roughly the same share (7.8% on Claude, 8.5% on GPT). On 5 to 30 minute breaks, Claude lost 15.2% of the bill and GPT lost 0.8%.
  • Pauses over 5 minutes happened at the same rate on both models across every session length. In OpenCode alone, 5 to 30 minute rebuilds took 20.2% of the Claude bill against 0.9% on GPT.
  • Both labs charge 1.25x to write and 0.05x to read. The split comes from the default TTL: 5 minutes on Claude against 30 minutes minimum on GPT-6.1 Sol.

We also tested some ways that could help reduce the cost from using always 1h TTL or keep alive pings. The best we found was doing some 0 token keep alive pings that only billed reading the existing cache, extending the cache timer for another 5 minutes.

Full write-up and replays: https://www.requesty.ai/blog/claude-5-minute-prompt-cache


r/LLMDevs • • 23h ago

Help Wanted to what systems your agents often writes?

2 Upvotes

I am builidng an open-source tool for the verification layer of AI agents.
The tool knows to search in the systems that the agent writes to (like postgres or google calendar) and say whether the agent claim is correct or not based on the record that exists there and what it expected to be.

right now I am looking to add new integrations to more systems and I would love to hear what systems the agent you build writes to often.

I thought about adding mongoDB, Stripe and Calendly

but I will happily change my mind if you say otherwise and I will see that theres more demand to other systems


r/LLMDevs • • 37m ago

Discussion what LLM observability tools are you using?

1 Upvotes

hi everyone

wanted to know what observability platform you are using for your AI agent.

I built an open source tool that checks the agent writes against the real systems (did the DB row charge or calendar event actually happen?) and posts the result as a score to Langfuse.

Im looking to add more integrations with observability systems, and wanted to know what most people actually use.

would love to hear what you are running and why :)


r/LLMDevs • • 43m ago

Discussion Up to 50 agents per engineer: the bottleneck becomes planning and attention

Thumbnail
leaddev.com
1 Upvotes

Inside AWS’s Kiro team.


r/LLMDevs • • 7h ago

Resource Do you guys use coding agents for making applications to teach yourself too?

1 Upvotes

I always build whatever im trying to learn so this time i built this platform to get better at debugging. As the coding agents are getting more capable we are relying on them solve most of the bugs.But someone who is just entering the software industry may not get the chance to go through the levels of debugging to get better.For progressing through skills at debugging there are many practice questions inspired from real OSS contributions.I also deployed it so anyone can use it if they want.


r/LLMDevs • • 7h ago

Help Wanted Feedback for New LLM Architecture - What's your top pain point?

Post image
1 Upvotes

I'm building a new LLM architecture from scratch (not a traditional transformer model). I'm looking for feedback from people on their top pain points to solve in the design. Please let me know current AI pain points which make you want to pull your hair out in frustration the most:

  1. Hallucinations
  2. Conflations
  3. Needle in the haystack problems
  4. Temporal information validation issues / lack of temporal awareness
  5. Inability to count things properly
  6. Generating illogical / non-sense statements / assertions
  7. Being confidently wrong
  8. Not asking the right questions
  9. Limited context window size (1M tokens / 4MB)
  10. Prompt caching spend
  11. Input / output / reasoning spend
  12. Re-sending context on every request
  13. Time to first token
  14. Tokens per second inference speed
  15. Overall cost concerns for the work completed
  16. General quality concerns in the work
  17. Inability to solve the problems you're trying solve with it (hitting repeated walls)
  18. Limited usage available on current plans from current providers
  19. Not following your instructions properly
  20. Anything else I've missed?

I'm still early in the process of building and validating the architecture and model, but here are some technical details people might find interesting:

All work is being done on an RTX 4090 24 GB GPU. Work is very early, and GPU kernels are not super-optimized yet. Also, I started with various standard transformer architectural pieces just to vet the codebase and prove I could even move the needle on bits-per-byte before introducing a novel architecture. So this first benchmark is while it's still in a hybrid state between transformer and my target architecture.

Hybrid Transformer + Target Architecture
Baseline Benchmark #1 - Initial learning test

1 pass of 1 GB raw UTF-8 text @ 1b param dense

Training: 32,286 tokens/sec at about 4.8 byte token size
Batched prefill rate: 130,850 tokens/sec
Inference: 218.5 tokens/sec
wikitext2_test: 1.6867 bpb
boolq: 62.11% (byte-length normalized accuracy)
piqa: 55.22% (raw, unnormalized accuracy)
truthfulqa_mc2: 48.31%
winogrande: 49.17%
arc_easy: 33.04%
openbookqa: 27.60% (byte-length normalized accuracy)
hellaswag: 26.68% (byte-length normalized accuracy)
arc_challenge: 25.43% (byte-length normalized accuracy)
mmlu: 25.57% (raw, unnormalized accuracy)

The architecture as currently designed does away with prompt context re-sending entirely. Instead, I just keep the session log and I've designed the system to attend to the context as needed, in its entirety up to about 15B tokens (we'll see how that pans out), and it pulls only relevant context from the session into that context attention window, which swaps in/out of system and VRAM and to disk as needed, keeping only relevant context hot.

The benchmark above still had softmax and various other transformer-based mechanisms in it, which I'm removing for the upcoming benchmark. In the upcoming one, I've replaced softmax and the typical transformer quadratic growing matmul systems / SwiGLU / other components with an alternative implementation.


r/LLMDevs • • 9h ago

Tools I built a CLI to keep my local coding agent sessions in sync with T3 Code

1 Upvotes

I use T3 Code alongside terminal-based coding agents and wanted a simple way to reconcile their conversation histories.

So I built t3-sync.

  • Import local Codex, Claude Code, Pi and compatible ACP sessions.
  • Refresh eligible conversations.
  • Clean up unused stale imports.
  • Preview changes before applying them.

It uses T3's existing APIs instead of writing directly to SQLite. Original provider sessions stay untouched.

Try it:

npx t3-sync status

This runs a read-only preview. The tool is completely free, MIT licensed, and supports Node.js, Bun and Deno.

It's a manual synchronization tool, not a daemon or a full history migration utility.

I'd be interested in how other developers handle session continuity when switching between agent clients.


r/LLMDevs • • 13h ago

Help Wanted Claude false flag for reverse engineering

1 Upvotes

Is anybody else getting refusals from the Claude API for reverse engineering. I'm working on a completely original project and keep getting my API called rejected. This just started happing today around 1pm


r/LLMDevs • • 13h ago

Resource What is an Agentic RAG

1 Upvotes

A RAG agent never sees the true answer in its knowledge base, only whatever retrieval returns. So it keeps a belief state and updates it with each retrieval. That's a POMDP.
Seen that way, the "advanced RAG" tricks (iterative retrieval, reflection, re-ranking) are all just ways to fix a belief built on noisy observations.
Wrote it up with a tiny worked example:

https://aisystemsnotes.substack.com/p/agentic-rag-isnt-just-rag-with-extra?r=94sr06&utm_medium=ios&shareImageVariant=template_blur

How do you think about what an agent is "doing" when it retrieves?


r/LLMDevs • • 16h ago

Help Wanted A research repo needs a few more curious minds. Anyone in

Thumbnail
github.com
1 Upvotes

Hey folks
I've been building an open-source research project on AI benchmark evaluation and would love a little support from the community
Looking for contributors, feedback, and yes, a ⭐ if you find the project interesting
Every bit of support means a lot Thanks


r/LLMDevs • • 18h ago

Discussion Been experimenting with decision models for engineering rule enforcement instead of using LLMs for everything

1 Upvotes

Been exploring where specialized decision models make more sense than general-purpose LLMs (Opus, Jipiti etc), particularly in software engineering workflows.
One use case I've been working on is engineering rule enforcement.
Given a code diff and a repository-specific rule, the task often isn't to generate anything. It's to determine whether the change violates that rule.

Current approach:

  • Use deterministic checks (glob, grep) for everything that can be expressed in code.
  • Use specialized decision models like Jev when semantic judgment is necessary.
  • Keep passing and failing examples alongside each assertion.
  • Evaluate different models against the same test cases.
  • Track accuracy, false positives and latency.

I'm interested in the boundary between discriminative models and generative models here.
For example, would you use a small classifier for a binary semantic judgment, or would you still prefer a general-purpose LLM?

Disclosure - I've been implementing this in Agentests, an open-source project:
https://github.com/feuersteiner/agentests - I'd love some feedback on the approach here :)


r/LLMDevs • • 19h ago

Discussion OpenRouter's long-session test: single-fact questions held at 100% to ~900K tokens, but a multi-event counting question fell from 67% to 27%. What makes you restart a long session?

1 Upvotes

OpenRouter published a write-up on Dec 1 that tested five models with roughly 1M-token windows on synthetic, long coding-agent sessions. I have not run this myself. These are their reported numbers, and the link is in the first comment.

What they reported:

- Single-fact questions (a setting, a rule): 100% correct through about 900K tokens

- A multi-event counting question: 67% at ~20K tokens, 40% at ~80K, 27% at ~600K

- At 2M characters of history: full history scored 49/60 overall, naive truncation 9/60, chunked compaction 54/60. Chunked compaction also cut average prompt size from about 605K to 112K tokens.

Scope: it is a small synthetic test, and OpenRouter itself says to read the numbers as directional. I would not take it to mean every model degrades at the same rate, that big windows are useless, or that compaction fixes this in general.

The split between lookup and tracking is the interesting part to me. Finding one fact buried deep in a session and keeping a running tally of what has happened in it look like different jobs, and long coding sessions seem to lean on the second one. That is my read, not OpenRouter's.

Questions for people who run long sessions:

  1. Do you see a 'lookup is fine, tracking drifts' pattern? For example, it can quote a file back but loses count of what it already tried (illustrative example, not from the write-up).
  2. What makes you start a fresh session: a token count, a wrong answer, or something else?
  3. When you compact or restart, what goes into the summary?

r/LLMDevs • • 20h ago

Resource I traced one question through a 5-call Grok agent. The last model call cost more than the other four together.

1 Upvotes

I wanted to see where an agent's spend goes per step, not per day. So I gave a small Grok agent one question and tools for order counts, recent deploys and a webhook log, and wrapped each task in an OpenTelemetry invoke_agent span, with a span per model call and per tool call, sent to Splunk APM.

What one task looked like:

  • 5 model calls
  • The last call was 66,780,000 of the task's 128,520,000 billed ticks, more than calls 1-4 together
  • Why: the webhook log tool result added 2,620 new uncached prompt tokens just before that call

A daily spend graph can't show that. A per-task trace shows which tool result made the expensive call.

Full write-up:
https://showmerit.com/abhimanyu/articles/see-where-an-ai-agent-s-tokens-go-every-grok-step-in-one/

How are you attributing cost to individual agent steps?

I work at Splunk, part of Cisco.


r/LLMDevs • • 23h ago

Tools Synapse: a local-first knowledge graph for AI agents (MCP, SurrealDB, Neo4j)

Thumbnail
github.com
1 Upvotes

I just published Synapse, an open-source project I've been working on.

The goal is to build a local knowledge base that AI agents can actually query and navigate, instead of keeping project knowledge scattered across files and chat history.

A quick look at the architecture:

  • JSONL files are the source of truth.
  • SurrealDB handles BM25 and vector search.
  • Ollama generates local embeddings.
  • Neo4j handles graph relationships and traversal.
  • A read-only MCP server exposes the knowledge base to AI agents.

A few design decisions I made:

  • No LLM-based extraction during indexing.
  • Every record requires explicit evidence.
  • Records have confidence levels.
  • Secrets are checked before data reaches the stores.
  • All services bind to localhost.

There's a CLI, a local graph explorer, a demo dataset, Windows/Linux setup scripts and a Docker Compose option.

The project is MIT licensed.

I'd appreciate feedback, issue reports or contributions, especially from people working with knowledge graphs, local AI and agent infrastructure.

Repository: https://github.com/Keutonim/Synapse


r/LLMDevs • • 23h ago

Discussion Infimum: an open-source language + AI IDE where LLM-generated code is checked by Z3 before it runs (with 7 LLM providers & browser sandbox)

Thumbnail
gallery
1 Upvotes

When LLMs write application logic, reviewing the output with another LLM prompt is still probabilistic, and running untrusted AI-generated code directly on your machine is risky.

I've been building an open-source project in Rust called Infimum to test a different approach: give LLMs a small language with built-in math verification and a strict sandbox.

What's inside (all open source):

- Automatic Z3 checks at compile time: rules like "no division by zero", "no overflow", or "the split payments always add up to the exact total" are verified automatically before the code can run (screenshot 1 & 2). If a rule can fail, the compiler shows a concrete counterexample.

- Compact AI spec (428 lines): the entire language guide fits into a single short prompt so models can write valid code without fighting a huge ecosystem.

- Tiny sandboxed .ifw apps (20-55 KB): every build outputs a single WebAssembly capsule with an inspectable permission passport (files/network denied unless explicitly declared), runnable in the browser or from Python/Node.

- Infimum Code IDE (Desktop & Browser): an AI coding workspace supporting 7 providers (Gemini, OpenAI, DeepSeek, OpenRouter, Groq, Z.ai, Mistral) with live build, Z3 verification, instant preview, and passport viewer (screenshot 3 & 4).

You can try everything in the browser with zero install (Z3 Playground where you can break a proof in 1 click, Online IDE, and interactive demos):

- GitHub: https://github.com/aminadav-ai/infimum

- Live browser demos & Online IDE: https://infimum-lang.org/?from=reddit

Curious what other LLM devs think: is a dedicated verified language + sandbox worth it for AI-generated logic, or do you prefer keeping everything in Python/TypeScript with tests?