This is the chat-tuned version of Aurora2-400M-A20M, our pretrained base model.
It was fine-tuned for 5B tokens to follow a simple User: / Assistant: format and to stop cleanly after its reply,
while a large share of replayed pretraining-style data keeps the base model's abilities intact.
| Architecture | Sparse MoE, 12 layers, 32 experts (top-1) + shared expert, GQA, n-gram hash embeddings |
| Parameters | 399.6M total / 19.1M active |
| Context | 2048 tokens |
| Vocabulary | 16,384 (byte-level BPE, digits split) |
| SFT budget | 5B tokens |
| Weights | FP32 (repo root), FP16 (fp16/), BF16 (bf16/) |
| License | Apache-2.0 |
Held-out loss after SFT, measured on the same validation sets as for the base model (lower is better):
| Validation set | Base loss (ppl) | SFT loss (ppl) | Change |
|---|---|---|---|
| Conversations (assistant tokens only) | 1.505 (4.50) | 1.254 (3.51) | -0.251 |
| Math QA | 0.781 (2.18) | 0.738 (2.09) | -0.044 |
| ClimbMix (general web text) | 2.566 (13.02) | 2.612 (13.63) | +0.046 |
[System: <system prompt>\n\n]User: <message>\n\nAssistant:
Each assistant turn ends with the EOS token (<|eos|>, id 1). For multi-turn chats, append the previous assistant reply
plus EOS, then \n\nUser: ...\n\nAssistant:. Generation stops at EOS (or BOS). The tokenizer ships a chat template that
renders exactly this format and already includes BOS, so call apply_chat_template(..., tokenize=True) directly.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "AuroraAI-Research/Aurora2-400M-A20M-SFT"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, device_map="auto")
# half-precision variants: subfolder="bf16" or subfolder="fp16"
messages = [{"role": "user", "content": "Can you explain what photosynthesis is in simple terms?"}]
enc = tok.apply_chat_template(messages, tokenize=True, return_dict=True, return_tensors="pt")
ids = enc["input_ids"].to(model.device)
out = model.generate(input_ids=ids, do_sample=True, temperature=0.7, top_k=40, repetition_penalty=1.1, max_new_tokens=160)
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))
With 19M active parameters the model is fluent and often helpful on simple requests, but it makes factual and arithmetic mistakes, can ramble, and has no safety tuning. It is a research model, not for production use.
model.safetensors 1.6 GBbf16/model.safetensors 799 MBfp16/model.safetensors 799 MB