OB Studio
Community-Funded · Open-Weight (Apache-2.0)

Tot-360M Technical Specification & Pretraining Log

Tot-360M is a community-funded 345,359,296-parameter (314,639,296 non-embedding) bilingual English/Korean and code language model trained from random initialization across Kaggle TPU v5e-8 and Dual NVIDIA Tesla T4 GPUs (1,799,962,248 tokens through Run 5 at 4,096 sequence length). It is built to serve as the local, offline model inside Tot on everyday laptops and Raspberry Pi hardware.

RunStepsTokensLossThroughputGGUF Checkpoints (Apache-2.0)
Run 1 (Batch 1)439 → 24,785405,680,8804.74 → 2.73 (avg)~17.7k tok/s (TPU v5e-8)Q4_K_M (241.0 MiB), Q8_0 (351.4 MiB)
Run 2 (Batch 2)24,785 → 56,058917,557,3443.18 → 2.81 (avg)~17.6k tok/s (TPU v5e-8)Q4_K_M (241.0 MiB), Q8_0 (351.4 MiB)
Run 3 (Batch 3)56,058 → 87,3951,430,481,3602.61 → 1.93–2.20 (avg)~17.5k tok/s (TPU v5e-8)Q4_K_M (241.0 MiB), Q8_0 (351.4 MiB)
Run 3 Part 2 (Irish-360M)87,395 → 95,8161,568,316,2882.20 → 2.00 (avg)~17.7k tok/s (TPU v5e-8)Q4_K_M (253 MB), Q8_0 (369 MB), FP16 (692 MB)
Run 4 (4,096 Context)95,816 → 101,5911,662,910,7881.39 → 1.24 (avg, 1.008 final)4,277 tok/s (2x Tesla T4)Q4_K_M (253 MB), Q8_0 (369 MB), FP16 (692 MB)
Run 5 (4,096 Context · Base)101,591 → 109,9581,799,962,2481.38 → 1.14 (avg, 1.035 final)4,512 tok/s (2x Tesla T4)Q4_K_M (241.0 MiB), Q8_0 (351.4 MiB)
SFT v2 (Post-trained · EN + Code)109,958 → 113,9581,865,482,2482.64 → 1.14 (masked SFT)4,261 tok/s (2x Tesla T4)Q4_K_M (241.0 MiB), Q8_0 (351.4 MiB)

Run locally with stock llama.cpp or LM Studio: ./llama-cli -m tot_360m_run5_4k_q4_k_m.gguf -c 4096 -p "The gravitational constant" -n 128 --temp 0.7 --repeat-penalty 1.15

Training Loss Across Run 1, Run 2, Run 3, Run 4 4K & Run 5 4K (1,800.0M Tokens)
Each point is the average of a training window. Hover or click to inspect.
4.54.03.53.02.52.01.5Run 2 (24,785)Run 3 (56,058)Run 4 4K (95,816)Run 5 4K (101,591)step 024,785 (406M)56,058 (918M)87,395 (1.43B)109,958 (1.80B)

Run 5, up to step 109,958 (1800.0M tokens): average loss 1.137, step range 0.84–1.42, LR 6.00e-06, 4.5k tok/s.

Run 3 Part 2 completed the 64-shard Batch 3 pack at step 95,816 (1,568.3M tokens, 2.00 window average loss). Run 4 and Run 5 then expanded the context window from 1,024 to 4,096 tokens on Dual NVIDIA Tesla T4 GPUs across 231.6M unseen tokens of long-context Python/JS code, ChatML dialogues, and single-file HTML5 games, reaching 1,799,962,248 cumulative tokens and 1.137 window average loss (1.035 final step loss) at step 109,958.

Verified Telemetry SnapshotUpdated November 1, 2026, KST
Parameters
345,359,296

Counted from the actual architecture, with shared word embeddings. Named 360M for short.

Tokens trained so far
1,865,482,248

Cumulative total after Run 5 4K Base (1.800B, step 109,958) and SFT v2 English + Code Post-Training (1.865B, step 113,958).

Context window
4,096 tokens (4K)

Expanded to 4,096 tokens in Run 4, Run 5, and SFT v2 on Dual Tesla T4 GPUs (0 overflow retries).

Architecture
Qwen3-compatible layout

Trained from scratch. Exports directly to GGUF (Q4_K_M 241 MiB, Q8_0 351 MiB, FP16 660 MiB) for llama.cpp and LM Studio.

Hyperparameters & Tensor Layout

Model classDecoder-only transformer (Qwen3-style GGUF layout)
Total parameters345,359,296 (tied embeddings)
Non-embedding params314,639,296
Layers (n_layers)32
Hidden size (d_model)960
Intermediate (d_ff)2,560 (SwiGLU MLP)
Attention heads15 query / 5 KV (GQA 3:1, head_dim=64, QK-Norm)
Positional encodingRoPE (theta = 10,000.0)
NormalizationRMSNorm (eps = 1e-6)
Vocabulary size32,000 (byte-level BPE)
Sequence length4,096 tokens (expanded from 1,024 in Run 4)
OptimizerAdamW (beta1=0.9, beta2=0.95, wd=0.1)
Precisionbfloat16 on TPU v5e-8 (Runs 1–3) / FP16 on 2x Tesla T4 (Runs 4–5)

Why build a 345M-parameter model from scratch?

Tot started as a local desktop harness connecting to cloud APIs through OpenRouter. While cloud models are great for heavy coding sessions, I wanted a small, self-contained model whose training corpus, tokenizer, and weights I understood end to end, small enough to quantize into a 253 MB file that runs on any CPU or Raspberry Pi 4 without a discrete GPU.

Training on free Kaggle TPU v5e-8 and Dual Tesla T4 sessions imposed strict systems constraints: each session is capped at 9 hours, and the workers must stream packed uint16 shards from local disk to avoid network I/O stalls. Saving a full checkpoint (model weights + FP32 AdamW momentum and variance states) writes ~4.07 GB to disk, so Run 1 saved every 250 steps, Run 2 every 1,000, and Run 3 and Run 4 save only at bounded milestones.

What failed along the way

Early TPU calibration runs failed before step 1: Kaggle's TPU VM image pre-populated a single-worker MASTER_ADDR environment variable that prevented torch_xla.distributed.xla_multiprocessing from spawning all 8 cores. Later runs hit lazy FUSE mount timeouts when 8 processes simultaneously read a 4 GB checkpoint from /kaggle/input. Staging the starting checkpoint once to /tmp/input_ckpt.pt prior to spawning workers eliminated the bottleneck. Training then held steady at about 17,600 tokens/second per step.

Before queueing Run 3 (expanding the cosine horizon from 1.0B to 1.6B tokens), a code review caught a subtle PyTorch CosineAnnealingLR.get_lr() recurrence bug: resuming from step 56,058 with an increased T_max would have multiplied the old near-floor learning rate (3.45e-5) instead of computing the true closed-form cosine value (1.34e-4). After finishing Batch 3 at step 95,816 (1.568B tokens), Run 4 expanded the context window to 4,096 tokens on Dual Tesla T4 GPUs (reaching 1.663B tokens and 1.24 window average loss), and we now schedule a masked-loss ChatML SFT post-trained checkpoint every 2 to 3 pretraining checkpoints.

Run Tot-360M Locally on Phone (Android & iPhone), Laptop & Raspberry Pi 4

Because Tot-360M uses a standard Qwen3-compatible GGUF tensor layout and quantizes down to 253 MB (Q4_K_M) or 369 MB (Q8_0), it runs 100% offline with zero API fees on phones, budget laptops without discrete GPUs, and 4 GB single-board computers.

1. Android & iPhone (PocketPal AI, ChatterUI, Layla)

Download tot_360m_sft_v2_q4_k_m.gguf (241 MiB) or add verycoololiver/Tot-360M-Family from Hugging Face inside PocketPal AI (iOS & Android) or ChatterUI. Uses under 420 MB of mobile RAM, works in airplane mode, and sets n_ctx = 4096.

2. Raspberry Pi 4 & Pi 5 (4 GB / 8 GB RAM)

Compile llama-server natively for ARM64 Cortex-A72/A76 (-DGGML_NATIVE=ON). On a 4 GB Raspberry Pi 4, keeping 1 hot model in memory (Q4_K_M or Q8_0) leaves over 2.8 GB of free RAM for other services.

3. Windows, macOS & Linux (LM Studio & llama.cpp)

Load the Q8_0 (369 MB) or unquantized FP16 (692 MB) GGUF into LM Studio or llama-cli. Streams at 35+ tokens/second on standard laptop CPUs with no discrete GPU required.

Pretraining & Release Pipeline

As of November 1, 2026, KST
  1. Stage 01[Completed]

    Architecture and PyTorch implementation

    Parameter count and tied embeddings checked without allocating the full weights. Attention, gradients and loss behaviour pass numerical checks on a two-layer version.

    32 layers, d_model=960, d_ff=2560 (SwiGLU), 15 Q / 5 KV heads (head_dim=64, QK-Norm), RoPE theta=10,000, RMSNorm eps=1e-6, tied embeddings (345,359,296 total params / 314,639,296 non-embedding).

  2. Stage 02[Completed]

    Tokenizer and calibration data

    32,000-token tokenizer and about 7.2 million packed calibration tokens, with separate held-out examples.

    32,000-token byte-level BPE tokenizer, 1,024-token and 4,096-token packed uint16 binary shards with SHA-256 manifest verification.

  3. Stage 03[Completed]

    Export and inference compatibility

    Full 345.4M-parameter checkpoints export directly to GGUF (F16, Q8_0, and Q4_K_M) and run locally in stock llama.cpp and LM Studio.

    PyTorch checkpoint -> export_gguf.py F16 export (692 MB) -> llama-quantize Q8_0 (369 MB) and Q4_K_M (253 MB) -> stock llama-cli / llama-server generation.

  4. Stage 04[Completed]

    First full Kaggle TPU run (Voy-360M 405.7M tokens)

    Completed after three failed attempts: 8 hours 37 minutes on eight TPU cores, 398.5 million new tokens, clean exit and a verified 4.07 GB checkpoint. Average training loss went from 4.74 to 2.73.

    Run 1 (step 24,785, 405.7M tokens, avg loss 4.74 -> 2.73) and Run 2 (step 56,058, 917.6M tokens, avg loss 3.18 -> 2.81) completed on Kaggle TPU v5e-8.

  5. Stage 05[Completed]

    Second full Kaggle TPU run (Voy-360M 917.6M cumulative tokens)

    Trained 511.9 million unseen tokens in 8 hours 44 minutes (steps 24,785 to 56,058) by saving every 1,000 steps instead of 250. Average loss went from about 3.18 at the start of the run to about 2.81 at the end, and exported working GGUF weights.

    Run 3 (step 87,395, 1,430.5M tokens) and Run 3 Part 2 / Irish-360M (step 95,816, 1,568.3M tokens, window avg loss 2.00) completed on TPU v5e-8.

  6. Stage 06[Completed]

    Third full Kaggle TPU run & Part 2 (Voy-360M 1.43B & Irish-360M 1.57B)

    Completed the entire 651.8M-token Batch 3 pack (43.6% Korean, 32.4% permissive code, 24.0% English & ChatML) across steps 56,058 to 95,816 (1,568,316,288 cumulative tokens), bringing the 500-step average loss down to 2.13.

    Run 4 (step 101,591, 1,662.9M cumulative tokens, window avg loss 1.39 -> 1.24, final loss 1.008) completed at 4,276.8 tok/s on Dual NVIDIA Tesla T4 GPUs with 4,096 context.

  7. Stage 07[Completed]

    Run 4: 4K Context Expansion & ChatML Mid-Training (Tot-360M 1.66B)

    Trained 94.6 million tokens at a 4,096-token context length on Dual Tesla T4 GPUs (steps 95,816 to 101,591, 4,276.8 tokens/s) with sequence-aligned HTML5 web games, multi-turn 4K dialogues, and bilingual Korean/English instructions.

    Run 5 (step 109,958, 1,799,962,248 cumulative tokens, window avg loss 1.38 -> 1.14, final loss 1.035) completed at 4,511.8 tok/s on Dual NVIDIA Tesla T4 GPUs across 137.1M unseen 4K tokens.

  8. Stage 08[Completed]

    Run 5: Dual-T4 GPU 4K Continued Pretraining (Tot-360M 1.80B)

    Trained 137.1 million unseen 4,096-context tokens on Dual Tesla T4 GPUs (steps 101,591 to 109,958, 1,799,962,248 cumulative tokens, 4,511.8 tokens/s, 0 overflow retries), bringing window average loss from 1.38 down to 1.14 (1.035 final step loss).

    Run 6 (tot-360m-tpu-bulk-b6) queued on Kaggle TPU v5e-8 across 64 unseen shards (~585M tokens toward ~2.33B), alongside Masked-Loss ChatML SFT Post-Training v1 (label=-100 on user/system turns, <|im_end|> stop tuning, Iris persona, 10% replay).

  9. Stage 09[Completed]

    SFT v1 & SFT v2: Masked-Loss ChatML Post-Training (Tot-360M SFT v2, 1.87B)

    Trained 4,000 steps of 100% English + Code masked-loss ChatML SFT on Dual Tesla T4 GPUs starting fresh from Run 5 (steps 109,958 to 113,958, 65.5M tokens, 4,261.0 tokens/s, 0 overflow retries), bringing masked assistant loss from 2.64 down to 1.14 and deploying live to the Raspberry Pi 4 demo.

  10. Stage 010[Next]

    Run 6 Kaggle TPU v5e-8 pretraining (~2.38B) & English + Code Run 7

    Run 6 (tot-360m-tpu-bulk-b6) is queued on 8-core TPU v5e-8 across 585M fresh tokens, with Run 7 onwards transitioning TPU pretraining to 100% pure English and permissive code.

Technical FAQ

Is Tot-360M a fine-tuned Qwen or Llama model?
No. Tot-360M is trained from random weight initialization from scratch. It uses its own 32,000-token byte-level BPE tokenizer and a Qwen3-style layout (GQA with QK-Norm) so that stock llama.cpp and LM Studio can load the exported .gguf files without custom C++ patches.
Can I download and run the checkpoints locally right now?
Yes. Every checkpoint from Run 1 (405.7M tokens) through Run 5 (1,799,962,248 tokens, 4,096 context) is available in Q4_K_M, Q8_0, and FP16 GGUF format under the Apache-2.0 license. Run 4 and Run 5 are continued-pretraining 4K checkpoints (all-token causal LM loss across long code, ChatML, and HTML5 games); our first masked-loss ChatML SFT post-trained checkpoint is scheduled next under a cadence of one post-trained release every 2 to 3 pretraining checkpoints.
Why do the logs list both 345.4M and 314.6M parameters?
The complete model with tied input/output token embeddings has 345,359,296 parameters. The embedding table (vocab_size=32,000 × d_model=960) accounts for 30,720,000 of them. Excluding it, the 32 Transformer decoder blocks contain 314,639,296 parameters.
What changed in Run 4 and Run 5?
Run 3 Part 2 (published in verycoololiver/Tot-360M-Family) finished the 64-shard Batch 3 bilingual/code pack on TPU v5e-8 at step 95,816 (1,568,316,288 cumulative tokens, 2.00 window average loss). Run 4 and Run 5 then expanded the sequence length from 1,024 to 4,096 tokens on Dual NVIDIA Tesla T4 GPUs using PyTorch DistributedDataParallel and Flash SDP, training across 231.6M new 4K tokens (steps 95,816 to 109,958) to reach 1,799,962,248 cumulative tokens and 1.14 window average loss (1.035 final step loss).
Will Tot-360M remain open-weight?
Yes. All released checkpoints and quantized .gguf files are published under the Apache-2.0 license for local use on laptops, desktops, and single-board computers.
Where does training happen?
Runs 1 through 3 Part 2 trained on 8-core Kaggle Cloud TPU v5e-8 instances using PyTorch/XLA bfloat16 data parallelism at ~17,600 tokens/second. Run 4 and Run 5 train at 4,096 sequence length on Dual NVIDIA Tesla T4 GPUs (2x 16 GB) using FP16 mixed precision, activation checkpointing, and fused AdamW at 4,277 tokens/second with zero NaN/Inf gradient overflows. Inference runs offline on consumer CPUs and Raspberry Pi 4.