Suzu-1.7B

Suzu is the second-generation model in the Mori family by Grenish Rai: a QLoRA SFT of HuggingFaceTB/SmolLM2-1.7B for reasoning, math, coding, and technical help, merged to fp16. Its predecessor is Yoru.

Usage

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

tok = AutoTokenizer.from_pretrained("grenishrai/Suzu-1.7B")
model = AutoModelForCausalLM.from_pretrained("grenishrai/Suzu-1.7B", torch_dtype=torch.float16, device_map="auto")
msgs = [{"role": "user", "content": "A train travels 120 km in 1.5 hours. What is its average speed?"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=256, do_sample=False)
print(tok.decode(out[0, ids.shape[-1]:], skip_special_tokens=True))

The chat template injects a short Suzu system prompt when none is given. Training also used the full Suzu prompt and no prompt at all, so all three work. eos is <|im_end|>, pad is <empty_output>.

Training

Setting Value
Base HuggingFaceTB/SmolLM2-1.7B (base checkpoint; ChatML embeddings mean-initialized before training)
Method QLoRA (4-bit NF4) with Unsloth on one Kaggle T4, completion-only loss, merged to fp16
LoRA r=32, alpha=64, dropout 0, all attention + MLP projections
Data grenishrai/math-sft-dataset 70% train split (61,230 rows incl. identity set)
System prompt mix 40% full / 40% short / 20% none
Steps 5452 (1.42 epochs), global batch 16, max length 2048
LR 0.0002, cosine, 3% warmup, adamw_8bit
Checkpoint kept best validation loss (0.4768)

Evaluation

Metric Value
Held-out test loss (1,000-row sample of the 20% split) 0.5259
GSM8K test, 250-problem sample, 0-shot greedy (4-bit + LoRA, before merge) 47.2%
GSM8K test, 64-problem subset, 0-shot greedy (these merged fp16 weights) 48.4%

The GSM8K numbers come from samples with a simple final-number match, not an official harness run.

Limitations

  • 1.7B parameters: knowledge benchmarks (MMLU, ARC, trivia) are bounded by pretraining, and SFT does not move them much.
  • Math answers can be wrong while looking confident. Verify important results.
  • The training mix is math-heavy (GSM8K, MetaMathQA) with an OpenHermes-2.5 general slice. Its answers are machine-generated and can contain errors.
  • No safety tuning beyond the SFT data.
Downloads last month
23
Safetensors
Model size
2B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for grenishrai/suzu-1.7b

Finetuned
(63)
this model
Quantizations
1 model

Dataset used to train grenishrai/suzu-1.7b