openai/gsm8k
Benchmark • Updated • 17.6k • 1.43M • 2.19k
ZUNO is a small chat language model trained from scratch, from random weights, on a single Google Colab L4 GPU with a modified nanochat. It is the first base model of the Seed project, which aims at small offline specialists.
This is an experimental research model. It writes short English replies, makes factual mistakes often, and must not be relied on for any decision.
| Architecture | nanochat GPT: decoder-only transformer, rotary embeddings, full attention |
| Layers / heads / width | 12 layers, 6 heads (6 KV heads), 768 dimensions |
| Parameters | 286,261,730 tensor elements in the checkpoint (includes nanochat's extra embedding tables) |
| Vocabulary | 32,768 tokens, own BPE tokenizer |
| Context | 1,024 tokens |
| Checkpoint | Chat-tuned step 48, started from zuno-v2-d12@862; validation bpb 0.367 |
| Stage | Data | Licence of the data |
|---|---|---|
| Pretraining | ClimbMix via karpathy/climbmix-400b-shuffle |
The upstream nvidia/ClimbMix is CC BY-NC 4.0 (non-commercial); the reshuffled copy is tagged MIT |
| Chat tuning | SmolTalk (HuggingFaceTB/smol-smoltalk), 24,000 rows |
Apache 2.0 |
| Chat tuning | MMLU (cais/mmlu), 16,000 rows |
MIT |
| Chat tuning | GSM8K (openai/gsm8k), 1,600 rows |
MIT |
| Chat tuning | ZUNO identity conversations (dev/zuno_identity.jsonl), 60 epochs |
Written for this project |
Licence of these weights: not chosen yet. The pretraining data upstream is non-commercial, so check its terms before any commercial use.
| Path | Contents |
|---|---|
model.safetensors |
Model weights (float32 and bfloat16 tensors), converted from nanochat's model_000048.pt and checked tensor by tensor |
meta.json |
nanochat training metadata, including model_config |
tokenizer/ |
tokenizer.pkl and token_bytes.pt (Python pickles: load only from this trusted repo) |
sae/ |
Top-k sparse autoencoders on the residual stream at layers 4, 8 and 12 (12,288 features, k = 32), with feature labels, top examples and manifest.json |
Needs the ZUNO code (private GitHub repo SayeedAmaan06/zuno, folder nanochat/).
import json, os, sys, torch
from safetensors.torch import load_file
repo = "path/to/this/download" # folder with model.safetensors, meta.json, tokenizer/
os.environ["NANOCHAT_BASE_DIR"] = repo # nanochat reads $NANOCHAT_BASE_DIR/tokenizer
sys.path.insert(0, "path/to/zuno/nanochat")
from nanochat.gpt import GPT, GPTConfig
from nanochat.tokenizer import get_tokenizer
meta = json.load(open(f"{repo}/meta.json"))
state = {k: v.float() for k, v in load_file(f"{repo}/model.safetensors").items()} # CPU: use float32
with torch.device("meta"):
model = GPT(GPTConfig(**meta["model_config"]))
model.to_empty(device="cpu")
model.init_weights() # sets up rotary embeddings
model.load_state_dict(state, strict=True, assign=True)
model.eval()
tokenizer = get_tokenizer()
To chat or to open the live brain viewer, use the scripts in the GitHub repo.