SWAT Blueberry_ Futuristic Architecture Transformer

SWAT-D12

SWAT-D12 is a 288M-parameter English chat model based on Blueberry's NanoChat-derived looped transformer. This repository contains the final supervised fine-tuning checkpoint, its tokenizer, and the portable Blueberry Chat app. You can run it locally in a browser, from a terminal, or from Python.

Run locally

Install Python 3.10 or newer, then download the repository.

python -m pip install -U huggingface_hub
hf download CrowdMind/SWAT-D12 --local-dir SWAT-D12
cd SWAT-D12/chat

Browser chat

python launch.py

On Windows, you can also double-click start-chat.cmd in the downloaded chat folder. Open http://127.0.0.1:8765 if your browser does not open automatically, then select d12-20261126 in the sidebar.

The launcher installs missing dependencies on first use. Inference runs on your machine and works offline after setup. Use --cpu to force CPU inference or --cuda to require an NVIDIA GPU. The custom architecture is served by the included runtime. This release provides local inference through the bundled app.

One prompt from the terminal

python launch.py --model d12-20261126 --prompt "Explain how a rainbow forms in three sentences."

Python inference

With the dependencies installed in your Python environment, run from the downloaded chat folder.

from pathlib import Path

import torch
from runtime.inference import ChatModel, discover_models

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
files = discover_models(Path("models"))["d12-20261126"]
model = ChatModel(files, device)
messages = [{"role": "user", "content": "Explain how a rainbow forms."}]
for text in model.respond(messages):
    print(text, end="", flush=True)
print()

The checkpoint is under chat/models/d12-20261126/. Keep the weights, metadata, and tokenizer together when moving the app. See the app guide for the folder layout and model switching.

Model and training

Setting Value
Parameters 287,754,722
Distinct transformer blocks 12
Prelude / recurrent / coda blocks 3 / 6 / 3
Recurrent passes 3, for 24 total block executions
Cross-pass message rank 64
Context window 2,048 tokens
Tokenizer vocabulary 32,768
Hidden width / SwiGLU intermediate width 768 / 2,048

The base model was pretrained on ClimbMix, then continued on Pretrain Nemo from the final ClimbMix base checkpoint using the same tokenizer. The continued-pretraining checkpoint at step 3,405 was then fine-tuned for chat with smol-smoltalk, MMLU, and GSM8K. The published weights are from SFT step 1,867.

Evaluation from this run Result
Continued pretraining validation on held-out Pretrain Nemo 0.3936 bits per byte
Final chat fine-tuning validation 0.3498 bits per byte
Final ChatCORE 0.0580
HumanEval 20/164 (12.20%)

SWAT-D12 is a small experimental chat model. It can generate incorrect facts, broken code, and inconsistent answers. Verify outputs before relying on them.

The bundled NanoChat-derived app code is covered by its MIT license.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Datasets used to train CrowdMind/SWAT-D12