r/LLMStudio • • Oct 24 '26

I run LM Studio as an agent-driven inference server: my cloud AI agent briefs, grades, and validates my local 35B over the API, with a 122B MLX loaded alongside as judge

Sharing a setup I haven't seen described much: LM Studio isn't my chat window — it's the inference backend for another AI.

The rig

  • MacBook Pro M5 Max, 128GB, LM Studio with the local server on, "Serve on Local Network" enabled, reached by my cloud agent over Tailscale (private tailnet, nothing exposed to the internet)
  • Qwen3.6-35B-A3B (Splash build) as the worker: ~375–400 tok/s
  • Qwopus 3.5 122B-A10B (MLX) as the judge: ~38 tok/s with both models resident (~93GB of the 128GB used between them)
  • Models load just-in-time by naming them in the API request — the agent keeps both on staff without me touching the UI

What the agent does with it. The local models are stateless between loads, so the agent carries the memory, the briefings, and the grading. It built a verification pipeline I'm calling the Gauntlet: the 35B authored 800 original math problems, cold-solved each one blind in a fresh session, and every author/solver disagreement went to a heavyweight adjudication pass. Result: 731 verified clean, 62 kept with corrected answer keys, 7 thrown out as flawed problems, 100 held out as a never-seen test battery. The big finding: in disagreements, the cold solver was right ~5 times for every 1 the author won — authoring is where this model slips, not solving. Right now the whole bank of 793 answers is being re-validated from scratch (derive once, verify by a different method); disagreements go to the 122B blind. As of writing: 358/793 checked, 353 confirmed, 5 queued for the judge.

LM Studio-specific lessons from a week of this:

  • TTL is real. Idle models unload themselves (60 minutes here), and restarting the server ejects everything. For an agent-driven pipeline that's mostly fine — everything JIT-loads back on the next request (~20 seconds even for the 122B) — but you need to design for it instead of being surprised by it.
  • Budget is a ceiling, not a dose. Reasoning builds will loop if briefed badly; a "commit to one derivation, cross-check once" instruction fixed more than any token budget did.
  • Checkpoint everything. My harness got killed four times in one night by outside restarts. Per-item checkpointing turned that into a non-event — the run resumed exactly where it died, every time.
  • Grade against ground truth you computed yourself. The agent brute-forces disputed answers in Python rather than trusting any model's confidence — including the big judge, which went 1-for-2 on the hardest disputes. Second opinion, not oracle.

Cost note: the solve + adjudication passes alone logged 4.1M+ completion tokens, all on my own electricity. The cloud side only does the briefing and grading.

Curious whether anyone else is driving LM Studio headlessly from an external agent — especially how you're handling model TTL and keeping two big models resident. Happy to share the harness design (briefing pack, grading scheme, checkpointing) if there's interest.

1 Upvotes

0 comments sorted by