Text Generation
Safetensors
English
qwen3
from-scratch
small-language-model
conversational

Supra2-Nano

Runs everywhere • 800k Parameters • Small

dB-CVsI_GN-xBZ9m2J_ET

Supra2-Nano is an 800K-parameter language model trained from scratch on 1B tokens using the Qwen3 architecture. It is part of the Supra2 family, a set of small language models trained on consumer-grade hardware to study scaling behavior at extremely low parameter counts.

Model summary

Architecture Qwen3
Parameters ~800K
Training tokens 1B
Training steps 7,000
Precision bfloat16
Hardware Kaggle 2x T4
License Apache 2.0

The model was trained with a data mix dominated by FineWeb-Edu, supplemented with a small proportion of Cosmopedia-v2 for synthetic instructional-style text.

Architecture

Supra2-Nano uses the Qwen3 architecture at a heavily downscaled size: reduced hidden dimension, few attention heads, and a small number of transformer layers, all fit to an 800K parameter budget. Grouped-query attention and RMSNorm are used as in the original Qwen3 design. The tokenizer vocabulary is kept small (4,096 tokens) to avoid the embedding and output projection layers dominating the parameter count at this scale, a common failure mode when applying full-size tokenizers to tiny models.

Training

  • Dataset: 99% FineWeb-Edu, 1% Cosmopedia-v2
  • Tokens seen: 1B (single epoch, no repetition)
  • Steps: 7,000
  • Hardware: 2x NVIDIA T4 GPUs (Kaggle)
  • Objective: standard next-token prediction (causal LM)

At this parameter count, the model is not expected to produce coherent long-form generations. The purpose of this training run is to establish a baseline for the Supra2 family and to validate the training pipeline (tokenizer, architecture, data mix) before scaling to larger variants in the same family.

Benchmarks

Zero-shot evaluation on standard small-LM benchmarks, compared against two other sub-1M/1M-parameter models from the same lab:

image

Benchmark Supra2-Nano (0.8M) Supra-Mini-v6 (1M) Supra-Mini-v3 (0.5M)
PIQA (acc_norm) 0.53 0.54 0.50
HellaSwag (acc_norm) 0.27 0.27 0.25
ARC-Easy (acc_norm) 0.31 0.30 0.28
ARC-Challenge (acc_norm) 0.21 0.20 0.23

Scores across all three models sit close to random/majority-class baselines, which is expected at this parameter scale. PIQA is the strongest signal, consistent with what's typically observed in sub-million-parameter models — it has the lowest reasoning depth requirement of the four tasks. Supra2-Nano performs comparably to Supra-Mini-v6 despite having 20% fewer parameters, and outperforms Supra-Mini-v3 on three of four tasks.

Get started

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_name = "SupraLabs/Supra2-Nano"

try:
    tokenizer = AutoTokenizer.from_pretrained(model_name)
except Exception:
    from transformers import PreTrainedTokenizerFast
    tokenizer = PreTrainedTokenizerFast.from_pretrained(model_name)

model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype=torch.bfloat16,
)
model.eval()

device = "cuda" if torch.cuda.is_available() else "cpu"
model.to(device)

prompt = "The history of artificial intelligence begins"

inputs = tokenizer(prompt, return_tensors="pt").to(device)
inputs.pop("token_type_ids", None)  # not used by this architecture

with torch.no_grad():
    output_ids = model.generate(
        **inputs,
        max_new_tokens=100,
        do_sample=True,
        temperature=0.8,
        top_p=0.9,
        repetition_penalty=1.3,
        pad_token_id=tokenizer.eos_token_id,
    )

output_text = tokenizer.decode(output_ids[0], skip_special_tokens=True)
print(output_text)

Intended use

This model is intended for research into small-model scaling, architecture ablations, and training pipeline validation. It is not intended for production use or any application requiring reliable text generation. Outputs at this scale will frequently be repetitive, ungrammatical, or incoherent.

Limitations

  • 800K parameters is well below the threshold where transformer language models produce fluent text.
  • The 4,096-token vocabulary increases out-of-vocabulary fragmentation on rare words and non-English text.
  • Single-epoch training on 1B tokens with no held-out validation set beyond benchmark evaluation.
  • No instruction tuning or alignment; this is a base (pretrained) model only.

Citation

If you use this model, please cite the SupraLabs organization on Hugging Face.

Downloads last month
-
Safetensors
Model size
800k params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Datasets used to train SupraLabs/Supra2-Nano

Collection including SupraLabs/Supra2-Nano