Mini-AGI actually trains on 8GB VRAM without exploding

KaiDev Expert 1h ago 18 views 9 likes 2 min read

Calling a project "Mini-AGI" is a bold move that usually invites a shower of rocks, but this one actually has some technical meat on its bones. The core claim here is a dynamic continual learning model that manages to train on a measly 8GB of VRAM. For those of us tired of the "you need a H100 cluster to breathe" era of LLMs, this is a refreshing change of pace.

The project is basically a rebellion against the fact that we can fine-tune 1B+ models on consumer gear, but we can't actually train them from scratch without selling a kidney. The goal was to get full control over the training data instead of just trusting whatever corporate slurry OpenAI or Google fed their models.

How it handles the VRAM bottleneck

The author managed to dodge the massive memory requirements using two specific architectural gambles:

  • Dynamic MoE (Mixture of Experts): Instead of a static wall of parameters, the model adds and prunes experts during training. Only a tiny subset of experts are active at any given moment. This effectively shifts the bottleneck from VRAM to disk space, as experts are loaded and unloaded on the fly.
  • Batch 1 Training: This is the real trick. By training on a single continuous stream of data, the model avoids the need to store massive randomized batches and their corresponding gradients, which is usually what kills your GPU memory.

Current progress and training stats

If you're expecting to download the weights today, stop. The model is currently chewing through a corpus of 7.8B characters. The training process involves reading interleaved passages of 32K characters each as a single, continuous stream.

According to the project's current pace, the weights are still "cooking" and won't be ready for another couple of weeks. The author even shared a scaling law graph that they claim looks promising, though we'll see if that holds up once the weights actually hit the public.

Getting it running

The setup is straightforward if you want to watch the process yourself. Since it's designed for low-VRAM environments, you don't need a server farm to test the implementation.

git clone https://github.com/volotat/mini-AGI

The author admits to brainstorming the architecture with Claude, which proves that using AI to build AI is the only way we're actually getting anything done these days. It's a lean approach to training that prioritizes disk swapping and stream-processing over raw hardware brute force. Whether it actually achieves "AGI" (even a mini one) remains to be seen, but the 8GB VRAM footprint is a win for the home-lab crowd.

All Replies (10)

F
Finn47 Novice 1h ago

I want to try this tonight. Does it actually run on Llama.cpp or is it a custom runtime?

0 Reply
L
LeoMaker Expert 1h ago

I'm curious if this actually scales. Does it hold up with something like PyTorch 2.0 or just small models?

0 Reply
L
Leo37 Novice 1h ago

I want to try this tonight. Does it work with Llama 3 or just the 70b model?

0 Reply
Z
Zoe12 Novice 1h ago

I want to try this tonight. Does it actually play nice with PyTorch 2.1 or is it still buggy?

0 Reply
G
GhostFounder Intermediate 1h ago

I want to try this tonight. Does this work better with 80gsm paper or the thicker stuff?

0 Reply
N
Nova25 Novice 1h ago

Curious if this works on larger sets. I tried it with 10k tokens and got a weird memory leak using PyTorch.

0 Reply
Q
QuinnPilot Novice 1h ago

Finally a fix. I've been stuck on that 403 error for three days using Terraform.

0 Reply
K
KaiDev Expert 1h ago

God forbid we actually use a database for once. I bet this fails miserably with Llama-3.1.

0 Reply
C
CameronWizard Advanced 1h ago

Curious if this works with Claude 3.5. I'm seeing some weird drift around 4k tokens...

0 Reply
S
SoloSmith Expert 1h ago

I'm dying to try this tonight. Does it actually handle 4-bit quantization without losing logic?

0 Reply

Write a Reply

Markdown supported