Three yuan, two hours, and a 64M model you can actually read

There is a specific kind of frustration in reading about language models. Every paper assumes you have a cluster. Every framework hands you trainer.train() and hides four thousand lines of decisions behind it. You finish the tutorial knowing how to call an API and not much else.
jingyaogong/minimind is a reaction to that. It has 72,797 stars and an Apache 2.0 license, and its pitch fits in one line: train a 64M-parameter language model from zero for about three yuan and two hours.
Both numbers are real, and both are narrower than they sound. The README says so itself, in a footnote most people skip: two hours is one epoch of supervised fine-tuning on a single RTX 3090, and three yuan is what that GPU time costs to rent. Pretraining is a separate, longer job. The headline is a hook, not a benchmark.
What you actually get
The repository ships the whole ladder, not a single rung.
There is a dense 64M model (minimind-3) and a sparse one (minimind-3-moe, 198M total with 64M active). The architecture follows the Qwen3 and Qwen3-MoE family closely, including dropping the shared-expert design that earlier versions carried. There is tokenizer training code with template markers for <tool_call>, <tool_response> and <think>. There is pretraining, SFT, LoRA, DPO, PPO, GRPO, CISPO, tool use, agentic RL, adaptive thinking and distillation.
All of it is written in native PyTorch. No trl, no peft, no transformers Trainer doing the work out of sight. The stated reason is that fifteen lines of framework calls teach you nothing about why the loss curve behaves the way it does, and the author compares the alternative to learning physics by riding first class.
That choice has a cost. The code is longer than it would be with a framework, and the abstractions are thinner, which means every bug lands closer to the math. It also means the repository doubles as a course: read train_pretrain.py, then train_full_sft.py, then the RL scripts, and the whole lifecycle is in front of you in a few thousand lines.
Installation is the boring part, which is the point:
git clone https://github.com/jingyaogong/minimind
pip install -r requirements.txt
Weights come from Hugging Face or ModelScope. Training runs on one card or several, with DDP or DeepSpeed, and logs to wandb or swanlab. Evaluation covers C-Eval, C-MMLU and OpenBookQA. There is an OpenAI-compatible server and a Streamlit chat UI. A model this size will also load in llama.cpp, vllm or ollama, which matters if you want to see the thing answer a question on a laptop.

The April update is the interesting one
The 2026-04-01 release notes read like a small changelog and contain one large idea.
That release added train_agent.py: agentic RL over multi-turn tool use, with GRPO and CISPO as the optimizers. The rollout engine was decoupled from the training loop so you can swap generation backends. Tool calling moved into the main SFT data, which means the default fine-tuned model already knows the shape of a tool call instead of learning it as a bolt-on.
This is the part most small-model projects skip. Teaching a 64M model to chat is a weekend. Teaching it to decide when to call a tool, read the response, and try again is where the interesting failure modes live, and those failure modes are exactly what a small model makes visible. A big model hides a broken reward signal behind raw capability. A 64M model cannot. If your reward is wrong, the output degrades in a way you can watch happen.
What 64M is not for
Let me be honest about the ceiling. A 64M model is not going to write your production code, summarize a contract, or hold a coherent conversation about a 40-page document. Its C-Eval score is a curiosity, not a capability. If you need an assistant, use an assistant.
What it is good for is the thing the repository actually sells: a complete, runnable, inspectable example of every stage in the modern LLM pipeline, small enough that a single 3090 finishes an epoch while you make coffee. You can break the tokenizer and see what happens. You can set the learning rate wrong and watch the model collapse into repeating one token. You can write a bad reward function and watch GRPO optimize straight into it.
That kind of failure is expensive at 7B and free at 64M.
The three-yuan framing, examined
Worth separating the marketing from the substance here, because the project is better than its own slogan.
Three yuan buys you one SFT epoch. A full reproduction, pretraining included, costs more and takes longer, and the README is upfront about that. The claim that survives scrutiny is not "train an LLM for three yuan." It is "you can afford to run the entire pipeline, end to end, and still have money for lunch."
There is a second claim worth checking: the model is about 1/2700 the size of GPT-3. Do the arithmetic and it holds, roughly. It also tells you what to expect. GPT-3 at 1/2700 scale is a toy that can form grammatical sentences and occasionally follow an instruction. Treat it as a laboratory, not a product.
A practical first pass
If you do try it, the order matters more than the hyperparameters.
Start from the mini data files. The default training set includes pretrain_t2t_mini.jsonl, sft_t2t_mini.jsonl, rlaif.jsonl, agent_rl.jsonl and agent_rl_math.jsonl, and the mini variants exist so a first run finishes before your patience does. Pretrain for a few thousand steps on the mini set, watch the loss fall, then move to full SFT. Skipping pretraining and going straight to SFT produces a model that can imitate the format of an answer with none of the underlying structure, which looks like success for about ten prompts.
Then check the thinking switch. Since the 2026-04 release, reasoning is no longer a separate training script; it is controlled by the chat template's <think> markers plus an open_thinking flag on the server. Toggle it and watch what changes. On a 64M model, turning thinking on often makes answers worse, because the model spends its small capacity narrating instead of answering. That is a useful lesson in itself: reasoning traces are a capability that scales, not a free feature you can bolt onto any model size.
Finally, evaluate honestly. C-Eval and C-MMLU numbers on a model this small are closer to a sanity check than a score. Run them, then run your own twenty prompts, and trust the second set more.
Why it keeps trending
The repository has been around since 2024 and keeps picking up stars because it solves a problem that does not go away. Every few months a new framework promises to make training easy, and every time the abstraction moves one layer up, the distance between the developer and the mechanism grows.
MiniMind goes the other direction. It assumes you want to see the mechanism, and it pays the price in verbosity so you can.
If you have a spare GPU and a free weekend, the useful exercise is breaking the model rather than training it. Change the temperature schedule, corrupt a slice of the SFT data, misconfigure the reward, then read the loss curve and figure out what you did. That is a two-hour lesson you cannot get from an API.
Turn ideas into images with ChatPicture
60 free credits every day. Generate, edit, and download — no prompt engineering degree required.
Related articles
Thirteen eggs stump a whole lineup of models: AI images can draw, but they cannot count
On the evening of November 18, "Doubao stumped by thirteen eggs" reached Weibo's trending list. Of nine image models, only four got the number right, and research already says prompt tweaks cannot fix counting. The problem is a diffusion model with no counter.
A trading skill pack that refuses to tell you what to buy
claude-trading-skills ships four workflows for reviewing a portfolio, screening a setup and journaling a closed trade. It never issues a buy signal, and the README says so three times.
Tencent's Hy3D 3.6 generates the 3D draft, not the finished asset
Hy3D 3.6 pushes generated models to two million faces and eight-kay PBR textures, then hands them to a retopology artist. Tencent had hundreds of its own 3D artists blind-test it first.
ChatPicture
Start generating
Generate production-ready AI images for e-commerce, design, and film.