Skip to content

Field notes · AI

'Train an LLM in 2 Hours for RMB 3': Read the Footnote, Then Train One for Real on a CPU

minimind says 2 hours and RMB 3. The README footnote says which stage, which GPU and what the 3 pays for. Then we ran 50 real training steps on a CPU.

Table of Contents
Two flat tiles side by side. One reads 64M parameters, the other reads One GPU. A thin accent line runs under both and drops to a footnote asterisk. The footnote reads: the 2 hours is one epoch of the SFT stage, supervised fine-tuning, on a single GPU, not pretraining. Headline: "2 hours, RMB 3": read the footnote.

A field note for Tue, Dec 1, 2026. The terminalThe window or screen where you type text commands and read their output, connected to a shell that runs those commands. Read more → output below was captured on bn-dev, our build server, in a throwaway containerA lightweight, portable package that bundles an application with its dependencies and runs in an isolated process on the host OS, sharing the kernel. Read more → with no GPUGraphics Processing Unit: a processor with thousands of small cores built for parallel math, used for displaying graphics and increasingly for AI workloads. Read more →. The star count and trending rank come from Research’s check at 5:35 AM ET today.

The short version

The minimind repo has 74,042 stars and sat at #4 on GitHub’s daily trending page at 5:35 AM ET today, per Research. Its first bullet says it trains a language model of about 64M parameters “entirely from scratch with only about RMB 3 in cost and 2 hours of training time.”

Read fast, that becomes “anyone can train their own ChatGPT at home in 2 hours for three yuan.” The README does not say that, and its own footnote says so. When a number sounds too good, find the footnote that pins down three things: which model, which hardware, which step.

This is the footnote, from the README’s English file, line 42:

“2 hours” refers to the measured time for running 1 epoch of the SFT stage on a single NVIDIA 3090, while “RMB 3” refers to the corresponding GPU rental cost.

Run through the three questions:

  1. Which model? About 64M parameters. Frontier chat models have hundreds of billions. This one is thousands of times smaller.
  2. Which hardware? One NVIDIA 3090, a GPU, and the 3 yuan is what renting it costs. You pay the rental, not a magic discount.
  3. Which step? One pass over the data in the SFT stage, which teaches a model to follow instructions. The README’s cost table lists pretraining separately: about 1.21 h and 1.57 yuan for pretraining, about 1.10 h and 1.43 yuan for SFT, close to 3 yuan for both.
Three plain boxes. Which model: how big is it, and what kind? Which hardware: what ran it, and what does it cost? Which step: pretraining, SFT or another stage? A dot marks the third box. No numbers.
Three questions to ask of any ‘train it in N hours’ claim. The real evidence is the captured terminal block below.

So the claim holds up. It is also much narrower than the headline. That is a good reason to like the project: a small model you can fully train is the best way to learn what training is. It is not a reason to expect a chatbot that competes with the big ones.

Then measure one step yourself

A footnote tells you what the authors measured. It doesn’t tell you what the same job costs on hardware you own. So we took the smallest setup and ran it on a CPU, which is the machine most readers actually have.

We used a throwaway container on bn-dev limited to 4 CPU cores and 4 GB of memory, with no GPU. We downloaded the smallest released weights of this LLM, ran the repo’s own inferenceThe process of running a trained AI model to generate predictions or outputs from new input data, as opposed to training the model. Read more → script on them, then ran its training script from scratch on a 400-line slice of the pretraining data. That is 50 steps, not a full pass.

Inference first. Asking the 64M model questions on the CPU ran at 33 to 42 tokens per second. That is a usable speed for a model this small. The answers are shaky, and that is the point of the size. It repeated itself and invented a “Calvin Cartau” in a photosynthesis answer. Small models talk fluently and know little.

Then training, from scratch, on the real data slice:

Model Params: 63.91M
Trainable Params: 63.912M
Generating train split: 0 examples [00:00, ? examples/s]Generating train split: 400 examples [00:00, 22709.05 examples/s]
Epoch:[1/1](5/50), loss: 8.0520, logits_loss: 8.0520, aux_loss: 0.0000, lr: 0.00048899, epoch_time: 3.0min
Epoch:[1/1](10/50), loss: 7.4020, logits_loss: 7.4020, aux_loss: 0.0000, lr: 0.00045703, epoch_time: 3.0min
Epoch:[1/1](15/50), loss: 7.5001, logits_loss: 7.5001, aux_loss: 0.0000, lr: 0.00040725, epoch_time: 2.0min
Epoch:[1/1](20/50), loss: 7.3513, logits_loss: 7.3513, aux_loss: 0.0000, lr: 0.00034453, epoch_time: 2.0min
Epoch:[1/1](25/50), loss: 7.3174, logits_loss: 7.3174, aux_loss: 0.0000, lr: 0.00027500, epoch_time: 2.0min
Epoch:[1/1](30/50), loss: 7.2041, logits_loss: 7.2041, aux_loss: 0.0000, lr: 0.00020547, epoch_time: 1.0min
Epoch:[1/1](35/50), loss: 7.7106, logits_loss: 7.7106, aux_loss: 0.0000, lr: 0.00014275, epoch_time: 1.0min
Epoch:[1/1](40/50), loss: 7.4500, logits_loss: 7.4500, aux_loss: 0.0000, lr: 0.00009297, epoch_time: 0.0min
Epoch:[1/1](45/50), loss: 7.2496, logits_loss: 7.2496, aux_loss: 0.0000, lr: 0.00006101, epoch_time: 0.0min
Epoch:[1/1](50/50), loss: 7.1971, logits_loss: 7.1971, aux_loss: 0.0000, lr: 0.00005000, epoch_time: 0.0min
train_pretrain.py exit: 0  wall seconds: 266

Captured on bn-dev, Dec 1, 2026, python:3.12-slim, docker run --rm --cpus 4 --memory 4g, Python 3.12.16, torch 2.15.0+cpu, transformers 4.57.6, minimind commit 96de892. The full capture is in the article’s captures/ folder.

How to read that block

The model has 63.91M parameters, matching the README’s “about 64M”. It trained on 400 samples for one epoch, which is 50 steps at a batch of 8. The loss, which measures how wrong the model’s next-word guesses are, fell from 8.05 at step 5 to 7.20 at step 50. It went up and down along the way, as it does early in training. All 50 steps finished in 266 seconds, and the script exited cleanly.

The model learned something, but not much. A loss around 7 is still close to guessing, so this is nowhere near a model that talks. Fifty steps on 400 samples is a smoke test. It tells you the pipeline works and how fast one step goes.

In a separate speed test on the same container, one step took 5.31 seconds on average. That is the number to carry into the next part.

Why GPU versus CPU is a different league

The pretraining file is 1,241,043,656 bytes, about 1.59 million samples going by our slice’s average size. At 8 samples a step, that is roughly 198,000 steps. At 5.31 seconds a step, one pass would take about 293 hours, or about 12 days, on those 4 cores.

That is an estimate, an order of magnitude, not a run. We did not train a full pass, and the README does not state the batch size or sequence length behind its table number. Still, the README puts the same stage near 1.21 hours on one 3090. A gap of around 240 times is the right size to keep in mind. A GPU does not make this a bit faster. It turns a job you would never wait for into one the README measures in about an hour, which is what GPU hardware is for.

This is the same habit as in our notes on whether Inkling 2 Mini runs on your computer and on why agent cost is step count: turn a vague claim into a count of steps and the hardware that does them.

Your first step

Don’t start by training anything. Clone the repo and read the first few bullets of the README, including the footnote, before running a single command:

bash
git clone https://github.com/jingyaogong/minimind

Then ask the three questions of any “train it in N hours” claim: which model size, which hardware, which stage. If one is missing, the headline is hiding something. If you want to try it, rent a GPU by the hour, as the README’s table assumes, and expect to pay a few yuan, not nothing.

Go deeper: the extrapolation and the pipeline

The arithmetic, step by step. Research’s calculation from the captured numbers, not a run: about 1,589,487 samples in pretrain_t2t_mini.jsonl (file bytes divided by the 780.8-byte average of the 400-line slice), divided by a batch of 8, gives about 198,686 steps. Multiplied by 5.31 s per step, that is about 1.06 million seconds, or about 293 hours. The step time was measured at a maximum sequence length of 340 tokens, and padding counts toward the cost, so the real figure depends on how you configure it.

Why 240x is only an order of magnitude. The README table does not say what batch size, sequence length or epoch count produced its 1.21 hour figure. Different settings would move the ratio. Treat it as “hundreds of times”, not a benchmark.

What the repo implements. The README describes the full pipeline: pretraining, SFT, LoRA, DPO and distillation. We only ran the pretraining script, for 50 steps, on CPU. We did not run SFT, LoRA or DPO, and we did not run anything on a GPU. The costs for those stages are the README’s figures.

Where the time goes. Training time follows the number of tokens the model sees, not the lines of code. Cutting the data or the model size is the lever, which is why a 64M model is practical to train at all.

Gotchas. The data files are large (the SFT file is 1,739,201,170 bytes), so check disk space before downloading. We pulled only a 400-line slice using an HTTP range request. Torch and Python versions matter, so note yours.

Teardown. The container was started with --rm and the one image we pulled was removed afterward.

minimindllm-trainingmisinformationcpu-vs-gpusmall-modelsgithub-trendinghow-to-read-claims

All field notes