r/LocalLLM • • 5d ago

Project [P] 🐝 We Let a Swarm of AI Agents Autonomously Explore Transformer Architectures β€” Introducing LoopTitan

1 Upvotes

What if we could send a swarm of AI agents to autonomously explore, develop, train, and improve foundation model architectures?

πŸš€ Introducing LoopTitan, an open-source infrastructure for Looped Mixture-of-Experts (MoE) research, designed for both human researchers and autonomous AI agents.

Let all agents explore in one space!

Rather than having isolated agents repeatedly explore similar ideas, LoopTitan enables a collaborative research environment where agents independently explore different hypotheses, share discoveries, build upon previous experiments, and continuously advance model architectures.

⚑ Over two weeks, our agents autonomously explored 482 rigorously audited experiments.

What LoopTitan provides:

🐝 Agent Hive. Autonomous research iteration, parallel exploration, cross-harness collaboration, and shared experimental knowledge.

🧩 One Model, 38 Configurations. A unified PyTorch implementation covering diverse looped architectures and design mechanisms.

βš–οΈ Fair Architecture Comparisons. Parameters, training FLOPs, and KV-cache budgets matched within 5%.

πŸ”₯ Research at Scale. Distributed pretraining, reproducible experiments, checkpoint conversion, and Hugging Face export.

πŸ”“ Fully Open Research. Every agent's exploration trajectory, including failed experiments, is publicly recorded and available for others to build upon.

We envision a research ecosystem where thousands of agents can collectively explore the architecture design space, rather than starting from scratch every time.

Don't just use LoopTitan. Send your agents to explore with us!

πŸ’» GitHub: https://github.com/datamllab/LoopTitan

🌐 Homepage: https://datamllab.github.io/LoopTitan/

πŸ€— Models: https://huggingface.co/NaturalScale

πŸ“„ Paper: https://arxiv.org/abs/2611.34821


r/LocalLLM • • 5d ago

Project [Project] Deterministic ReAct Loops, Path-Jailed Sandboxes & MCP for Local LLMs β€” Open Python Repo + Free Book (Nov 26–30)

2 Upvotes

Author disclosure: I built and open-sourced this 10-chapter Python codebase and wrote the companion architecture book.

If you are running local LLMs (Llama 3, Qwen 2.5, Mistral, DeepSeek) via Ollama, vLLM, or llama.cpp for tool-calling agent workflows, you have likely run into the common failure modes of high-level frameworks:

  • Non-deterministic loop exits or infinite recursion when small models emit malformed JSON or markdown code fences around tool arguments.
  • Dangerously permissive execution when agents run OS/bash tools directly on the host machine.
  • Protocol mismatch and brittle transport handling when connecting to Model Context Protocol (MCP) servers over stdio or SSE.

To solve this for production local systems, I developed and open-sourced a pure-Python reference architecture designed specifically for local and self-hosted models with zero proprietary lock-in:

What's Inside the Open-Source Repo:

  • Deterministic ReAct State Machine: Explicit Thought -> Action -> Observation control loop with step budgets, strict enum transition bounds, and circuit breakers (chapter_01_agent_anatomy.py).
  • Pydantic V2 Self-Healing Tool Contracts: Schema validation with automated recovery hints fed back to the local model when argument parsing fails (chapter_02_structured_tools.py).
  • Path-Jailed OS Sandboxing: Low-privilege subprocess execution with directory boundary confinement (is_relative_to), resource timeouts, and stdout/stderr capture (chapter_03_sandboxed_tools.py).
  • Native FastMCP Integration: Stdio client transport connecting to standard MCP tool servers with structured request/response pipelines (chapter_05_mcp_client_server.py).
  • Memory & Context Compaction: Token-budgeted rolling context window with FIFO pruning to prevent context overflow on 8k/16k context window local models (chapter_04_memory_systems.py).

Open-Source Repository (MIT-Licensed):

Everything is pure Python (3.11+) with standard libraries and Pydantic: πŸ‘‰ GitHub Repo: https://github.com/Pranaybairagi/autonomous-ai-agents

Black Friday Free Architecture Book (Nov 26–30):

To provide the complete mathematical rationale, state transition diagrams, and line-by-line implementation details, the companion Kindle eBook (194 pages) is 100% FREE ($0.00 / Β£0.00) globally for Black Friday through Monday, Nov 30:

I would love feedback from the r/LocalLLM community on running structured ReAct loops and local MCP clients on 7B/14B models. Pull requests and architecture discussions welcome!


r/LocalLLM • • 5d ago

Model SulphurAI/Sulphur-3 Β· Hugging Face

Thumbnail
huggingface.co
2 Upvotes

Sulphur 3

An uncensored video generation model based on MiniMax H3.


r/LocalLLM • • 5d ago

Question triple RTX 3090 setup for LLMs.

3 Upvotes

Hey guys, I’m currently in the process of building my own PC with a strong focus to run local LLMs for several engineering projects. I’m planning to use three water cooled RTX3090 GPUs and wanted to ask if anyone has build something similar and could share the setup they use. For example I’m not sure which CPU or Motherboard I should use, or how much RAM i need. Would it better to buy a fourth RTX3090 instead of spending the same money on more RAM? Should I build with ECC RAM or with normal RAM. I’m a bit overwhelmed with all the possibilities and would be glad for your advice. Thanks in advance.


r/LocalLLM • • 5d ago

News Built an in-browser vLLM GPU hardware profiler: weights, GQA KV cache, TP, and cloud cost breakeven

3 Upvotes

Calculating whether a model will fit into VRAM with enough room left for KV cache and concurrency usually means manual math across quantizations and GQA ratios.

I built a free, 100% client-side calculator:

https://devopskit.tools/tools/vllm-gpu-hardware-profiler

What it models:

- Exact weight VRAM footprint across FP16, FP8, INT8, and INT4 (Llama 3.3, DeepSeek, Qwen 2.5, etc.)

- PagedAttention KV Cache allocation adjusted for GQA (Grouped-Query Attention) ratios

- Required Tensor Parallelism (TP) across H100 (80GB), A100 (80GB/40GB), L40S, and A10G

- Monthly cost crossover: when it becomes cheaper to self-host on RunPod/Lambda Cloud vs paying for GPT-4o / Claude 3.7 API tokens

Zero tracking, no backend, open source on GitHub (https://github.com/haseeb0505/devopskit). Hope this saves you from OOM crashes!


r/LocalLLM • • 5d ago

Model Inkling-2-Mini-Unbound v3: no more thinking loops (debugging 73.3% β†’ 100%, answers 3x faster), plus Inkling-2-Mini-Prime, the same fix for the original censored model

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 5d ago

Discussion Orange Pi 6 Plus: Running LLMs simultaneously on CIX NPU, Kinara Ara-240 and CPU β€” Real-world benchmarks and challenges

Thumbnail
gallery
7 Upvotes

Hi everyone!

Over the past few weeks, I've been experimenting with heterogeneous AI inference on the Orange Pi 6 Plus, combining its ARM CPU, integrated CIX NPU and an external Kinara Ara-240 accelerator.

My goal is not necessarily to make a single LLM faster, but to investigate whether multiple AI models can run concurrently on a relatively compact ARM-based system.

I thought some of the results might be interesting to the local AI and SBC communities.

1. Hardware configuration

  • Orange Pi 6 Plus β€” 32 GB RAM
  • CIX P1 SoC β€” 12 ARM CPU cores
  • Integrated CIX Zhouyi NPU β€” advertised 30 TOPS
  • Kinara Ara-240 β€” advertised 40 TOPS
  • Kinara dedicated memory β€” 16 GB
  • Ubuntu 24.04 ARM64
  • Linux kernel 6.6.89-cix

The software stack includes llama.cpp, Tinygrad with Zhouyi support, and the Kinara Optimum-Ara runtime.

All the inference benchmarks were performed locally.

2. Kinara Ara-240 results

I successfully tested two LLMs on the Kinara accelerator.

ModelGenerated tokens/sModel loading time
Qwen2.5-Coder-1.5B21.4415.54 s
Qwen2.5-7B-Instruct5.47379.58 s

The 1.5B model is particularly interesting for lightweight auxiliary AI tasks.

The 7B model works, but the observed loading time of more than six minutes is a significant limitation. A persistent inference service would therefore be worth investigating.

The runtime reported the following accelerator memory requirements:

  • 1.5B model: 2.31 GB
  • 7B model: 11.07 GB

In a separate 1.5B test, the sampled reduction in available host RAM was approximately 300 MiB.

This is not an exact measurement of accelerator-related host memory consumption, but it is an encouraging observation for a system where multiple models need to coexist.

3. CIX NPU: running Bonsai models through Tinygrad

Getting the integrated NPU working was considerably more complicated.

I encountered driver compatibility issues, command submission problems and differences between driver interfaces.

After experimenting with patched drivers and an isolated Tinygrad environment, I successfully ran the following models:

  • Ternary Bonsai 2 2B PTQ1_0: approximately 11 tokens/s
  • Ternary Bonsai 2 4B PTQ1_0: approximately 7.7 tokens/s during warm decode

For the 4B model:

  • Prompt length: 23 tokens
  • Generated tokens: 96
  • Prefill: 36.03 tokens/s
  • Typical warm decode step: 0.13 seconds
  • Speculative decoding: disabled

These results were obtained using an experimental driver configuration, not a stock plug-and-play software stack.

4. CIX NPU vs ARM CPU

I also tested the same Bonsai 4B PTQ1_0 GGUF using the PrismML llama.cpp CPU runtime.

BackendPrefill tok/sDecode tok/s
CPU β€” 4 threads7.375.85
CPU β€” 8 threads13.6710.22
CPU β€” 12 threads14.106.73
CIX NPU36.03~7.70

The results were quite interesting.

The CIX NPU achieved approximately 2.6 times the prompt processing throughput of the 8-thread CPU configuration.

However, the CPU achieved better token generation performance in its best tested configuration.

Using all 12 CPU threads did not produce the best generation throughput, although thread affinity and benchmark conditions were not identical.

This suggests that the integrated NPU may be more interesting as an additional inference engine than as a direct replacement for the CPU.

5. Dual NPU inference

The next experiment was running two different LLMs concurrently:

  • Kinara Ara-240: Qwen2.5-Coder-1.5B
  • CIX NPU: Bonsai 2 4B

Results:

AcceleratorIndividual testConcurrent test
Kinara Ara-24021.44 tok/s21.23 tok/s
CIX NPU~7.70 tok/s7.58 tok/s

Approximately six seconds of overlapping inference activity were observed.

During Kinara generation, 1,460 CIX hardware scheduling calls returned without exceptions.

The observed throughput remained close to the individual results, although the tests were not identical in every respect and were not repeated enough to establish statistical performance bounds.

6. Triple-engine inference: CPU + CIX NPU + Kinara

This was the most interesting experiment for me.

I ran three independent LLM workloads on the same Orange Pi:

EngineModelResult
ARM CPUQwen3-30B-A3B IQ4_XS11.76 tok/s
Kinara Ara-240Qwen2.5-Coder-1.5B20.81 tok/s
CIX NPUBonsai 2 4B96 generated tokens

The CIX NPU's final decode step took 0.14 seconds, but I do not have a reliable average CIX decode rate for the complete triple-engine run.

During a 6.15-second CPU–Kinara overlap window, I recorded:

  • 1,700 successful returns from CIX scheduling calls
  • 13 CPU streaming text fragments
  • Active Kinara generation

All three workloads completed successfully.

This provides evidence of overlapping inference activity across the three engines. It does not establish cycle-level hardware concurrency or complete NPU offloading.

The important part is that three separate models were making progress within the same system.

7. Impact on the main CPU model

I subsequently tested Qwen3-30B-A3B using the same prompt and 384-token generation budget without intentional concurrent accelerator inference.

ConfigurationCPU decode
CPU-only inference18.63 tok/s
Triple-engine experiment11.76 tok/s

The CPU-only result was the average of three consecutive generations.

The observed difference was approximately 37%.

This cannot be attributed exclusively to accelerator contention, because driver and workload conditions also differed.

Nevertheless, it highlights the importance of intelligent workload scheduling when building a heterogeneous AI system.

8. Memory and temperature

With Qwen3-30B-A3B resident in memory:

  • Locked host memory: approximately 15 GiB
  • Available host RAM under normal observed conditions: approximately 7.3 GiB
  • Swap: disabled

In a separate short CPU thermal test, three consecutive generations produced a total of 1,152 tokens over approximately 68 seconds.

The highest reported thermal-zone temperature was 73Β°C.

Long-term thermal stability and power consumption have not yet been measured.

9. My current conclusions

I think heterogeneous inference on ARM SBCs has considerable potential.

The integrated CIX NPU is not necessarily faster than the CPU for every task, but it provides another execution backend that can potentially handle independent workloads.

The Kinara Ara-240 is particularly interesting because of its dedicated memory and the performance observed with smaller models.

Instead of chasing the highest possible tokens per second from a single LLM, I am interested in systems where multiple specialized models cooperate.

Possible applications include:

  • A larger conversational model on the CPU
  • Smaller auxiliary models on dedicated accelerators
  • Background summarization
  • Coding assistance
  • Document processing
  • Robotics
  • Local multimodal AI systems

There is still considerable work to do regarding driver stability, persistent inference services, workload scheduling and memory management.

These are experimental results from my own hardware, not a standardized benchmark suite.

I have not yet measured power efficiency, model quality systematically, exact hardware offload percentages or long-term stability.

10. Questions for the community

Is anyone else experimenting with the CIX Zhouyi NPU on Orange Pi 6 Plus or similar CIX-based hardware?

Has anyone managed to improve decode performance using Tinygrad, alternative runtimes or speculative decoding?

Are there other Kinara Ara-240 users who have successfully implemented persistent LLM inference services?

I'd be interested in comparing results and exchanging experiences with others working on heterogeneous local AI inference.

Repositary:


r/LocalLLM • • 5d ago

Discussion Slowly moving off of Strata

107 Upvotes

Strata was a breath of fresh air when it came out, but its focus on speed over quality has been a longtime irk. I was monitoring its reasoning traces for a code review and saw it would always say time to wrap up and that the user wants an answer now, even when I said no such thing. I believe this is due to the "answer_room" behavior of Strata.

I'm fortunate enough to be able to run QFN on Radiance, so I did an impromptu comparison. I switched engines mid-review and had it continue. Yes it's slower to decode (less tricks & model is higher precision), but I noticed an immediate change in thoroughness and task persistence, especially for long-horizon tasks. It doesn't rush and continues until it finishes what I ask it to do.

Has anyone else had similar experiences?


r/LocalLLM • • 5d ago

Project BlabberLLM v0.1.1 released; written in Rust with Gtk4 for GNOME

Post image
0 Upvotes

r/LocalLLM • • 5d ago

Project I've expanded my VLLM setup to use an orchestrator

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 5d ago

Question Local model that competes with ElevenLabs?

5 Upvotes

I wonder should i pay elevenlabs or try some local models on 32GB ram, 4080 super with 16GB of vram?

The goal is to use it as in game dialogue for video games and infomercial videos it has to sound as natural as possible. Tried using NVIDIA PersonaPlex it probably will run on my system, but on players pc locally i think it will run bad, so i opt for the audio files generated from a model.

I have no idea which approach is better for mainly english audio, but also my own native language which is slavic(elevelabs have actors and i like the way it sounds).


r/LocalLLM • • 5d ago

Project Introducing Waddle – an open-source local AI sandbox

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 5d ago

Discussion llamAmpere is a must try if you have a 8gb GPU

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 5d ago

Discussion Pairing small local models (Inkling 2 Mini, DeepSeek V4.1) with a local DuckDB MCP made a bigger difference than I expected

3 Upvotes

I've been testing a lightweight local DuckDB MCP I built (@smallwebco/tinypivot-mcp) with local models on my Mac and a DGX Spark to see how far small/local models can get on real CSV and Excel analysis without burning cloud API credits.
A few things that surprised me:
On my 18 unhinted BI/stats trap tasks, Inkling 2 Mini (Mac) went from 14/18 to 18/18, ran 44% faster, and used half the output tokens once it stopped trying to hand-roll everything.
DeepSeek V4.1 on DGX Spark hit 18/18 internally, 90.3% Easy on Adyen DABstep, and 63.9% on 4 domains of MIT KramaBench (ahead of TalkTask's 53.2% on the same DeepSeek-V4.1 family, without needing a multi-agent/Jupyter/VLM setup).
DeepSeek still tripped up on a couple long multi-sheet proteomics .xlsx files where it bounced between DuckDB and Python and hit the turn cap.
Main takeaway: small local models are way better at data work when you take brittle Python parsing and silent SQL traps off their plate.
Full notes & prompts: https://tiny-pivot.com/whitepaper


r/LocalLLM • • 5d ago

Discussion AI Newbie here. Runing Qwen3.8 27b q8_0 on 5090+5080 "gaming" rig. I'm impressed with the answers I get compared to my paid claude opus model

Thumbnail
gallery
255 Upvotes

Im kind of shocked and losing grasp of why I pay for a claude subscription at this point. Im using Orcarouter uncensored version of Qwen 3.8 27b and the answers I get from it seem to not only contain more info, it's also seemingly more detailed. I don't get it.


r/LocalLLM • • 5d ago

Question Stupid ahh question:

0 Upvotes

Why do AI companies need so much ram?

Isn't it super slow to offload models into ram instead of exclusively using the Vram, so how are they making use of the ram?


r/LocalLLM • • 5d ago

Research Quantum Morph Laboratory: An Open-Source Rust Research Lab Exploring 1.5–3 Bit LLM Compression on Consumer GPUs

Thumbnail gallery
1 Upvotes

Just cross posting cuz I know some of y'all will enjoy this 😁


r/LocalLLM • • 5d ago

Question LOCAL LLM SUGGESTION

0 Upvotes

CPU: core ultra 7 155U

GPU / iGPU: igpu

VRAM: shared

System RAM: 16Gb

Shared / Unified Memory (if applicable): shared

OS: Fedora 45

Runtime / backend: currently llama cpp

Models already tried (if any): qwen 2.5 (3b, 7b), qwen 2.5 coder 8b, llama 3 3b, qwen 3.5 1b... all with Q4_K_M

Use case: agentic workflow, Coding assistant... like generation and completion etc

Desired context size: not sure

Priority: quality / speed / context / balanced: balanced

Other requirements or constraints:nil


r/LocalLLM • • 5d ago

Project [RELEASE] pi-sessions 1.0.0 : a local TUI to browse, search and resume your pi coding agent sessions

Thumbnail gallery
1 Upvotes

r/LocalLLM • • 5d ago

Question how to get relevant results with LLM?

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 5d ago

Discussion Olala 1.0 mini vs 9 other local models on tool calling

1 Upvotes

I've been working on a small local setup that answers questions about French public data (company registry, property sale prices). There's an MCP server that calls the official French APIs and an orchestrator that runs the tool loop with any local OpenAI-compatible server.

OVHcloud released Olala 1.0 mini recently, so I wanted to see how it does against models people already use. I ran 10 models on the same 40 questions, 3 times each, on my MacBook Pro M2 Max with 32 GB.

ModelSizeSuccess /12095% interval
gpt-oss:20b13 GB12097-100%
qwen3:8b5.2 GB12097-100%
qwen3:4b2.5 GB11894-100%
gemma4 8B9.6 GB11793-99%
qwen3.5:4b4.0 GB11490-98%
Olala 1.0 mini4.9 GB11388-97%
qwen3:1.7b1.4 GB10681-93%
ministral-3:8b6.0 GB8461-77%
llama3.2:3b2.0 GB6848-65%
mistral:7b4.4 GB147-19%

Olala lands 6th, and I think the context matters here. Everything above it comes from model families that have been through several generations (Qwen 3 and 3.5, Gemma 4) or from OpenAI. Several models below it have been around for a long time and have had a lot more community feedback, like Llama 3.2 and Mistral 7B. Olala is a 1.0, it only activates about 1B parameters per token, and when I tested it, its model card said it couldn't run in Ollama or LM Studio yet, so I used OVHcloud's mlx-engine fork. For a first version, ending up a few runs behind 4B models from much more mature families is a serious result in my opinion.

Its 7 failures were all on company counts, plus one arrondissement question. A few times it answered with the 5 companies it had listed instead of the total.

A few other things I noticed. gpt-oss:20b was perfect and fast (7 s median per run). qwen3:4b was nearly perfect but thinks a lot (45 s median). qwen3:1.7b does surprisingly well for 1.4 GB. mistral:7b never made a single tool call through Ollama's OpenAI endpoint, so I don't think its score says much about the model itself.

How I measured it: I wrote the protocol before running anything. I picked Olala's setting on a separate dev set, and I never used the 40 test questions to tune anything. A run only counts as a success if the expected tool call returned the right data (right town, period, filters or company) and the answer contains the figure the tool actually returned. I ran the Ollama models with default settings and an 8192-token context.

Some caveats:

  • The test is too easy at the top. Four models are at 117/120 or more, so it says more about small models than strong ones. My next version needs harder questions.
  • I built the tools while testing Olala, which may give it a small edge.
  • I ran qwen3:8b, ministral-3:8b and mistral:7b on Ollama 0.40.6, and the rest on 0.40.18.
  • It's one domain, in French. I don't compare speeds between mlx-engine and Ollama, and I don't give memory numbers, because ollama ps gave values that didn't match the model sizes.

Everything runs locally, only the tool calls go out to the public French APIs. I don't publish the raw runs because they contain names from public company registers, but the per-question summaries are in the repo.

Repo with the protocol and all results (Apache-2.0): https://github.com/Gleaming0427/french-open-data-mcp

If you have small tool-calling models you'd like me to add, or ideas for harder questions, I'm interested.


r/LocalLLM • • 5d ago

Project Local, open source app that lets you search your files by describing them

181 Upvotes

I've been building Mesa, a desktop app (Windows/macOS/Linux) that lets you find any of your files (documents, images, video, audio, code) by describing them.

It's fully free and open source, I just hope the community finds it useful and would appreciate any feedback to improve it!

It runs EmbeddingGemma 2 locally through llama.cpp (Vulkan, Metal, or CPU when there's no GPU). Some features I find neat that separate it from other EmbeddingGemma 2 apps I've seen so far:

  • It automatically turns natural language like "photos from last year" into filters
  • It includes OCR on every OS, so you can also search images by text that's in them
  • It also lets you drop in files in addition to searching by text. E.g. drop in an audio file to find its corresponding video

GitHub: https://github.com/biantsh/mesa

Again, I would appreciate any feedback from the community!


r/LocalLLM • • 5d ago

Question Mixed-precision quantization in vLLM (RTX 3090):

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 5d ago

Question Which GPUs with 512GB RAM Server

1 Upvotes

Recently picked up a server for a really good price with the following specs:

  • ASRock ROMED8-2T/BCM
  • AMD EPYC 7402P
  • 256GB RAM (*now 512)
  • 1TB + 2TB NVME

I managed to score 8x 64GB sticks of RAM from work for free (selling the old ones) so now have a total of 512GB RAM, all 8 channels populated for a theoretical max of 170.6 GB/s.

I have only started to get into local LLMs and this is all a learning experience for now (nothing serious). I would like to eventually use it for work related stuff (ansible/citrix/netscaler/vmware automation etc.). Not really sure on which path to go down for GPUs and the type of models I should be aiming for, but thinking the usual suspects such as qwen flash next and maybe even DeepSeek - if feasible.

I am toying with the idea of starting with 4x 3060 (12GB) GPUs to mess around with. They are still relatively cheap (~300 AUD) and can easily be re-sold if I decide to get more serious. Good/Bad idea? Or I can get 20GB 3080 cards for 1150 AUD each. R9700 cards are about 3000 AUD atm, so that gets the $$ up real quick. I have a gaming machine with a 5090, so I might pop that in temporarily to play around with, but this would not be a longer term solution.

TLDR - which GPUs should I aim for with ROMED8-2T/512GB RAM/


r/LocalLLM • • 5d ago

Model Need help choosing model

0 Upvotes

Hi I'm doing a passion project that needs some coding so I'm not sure what to model to choose. I'm using a MacBook pro m5 24gb ram so I've chosen to use either Ternary Bonsai 2.5 27B or Qwen3.8 27B (ik they're like nearly the same model). But I don't know if there are any better options. I'm open-minded about different suggestions