How to use from
Unsloth Studio
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh
# Run unsloth studio
unsloth studio -H 0.0.0.0 -p 8888
# Then open http://localhost:8888 in your browser
# Search for Cbgcbg/qwen3-1.7b-math-sft-antioverfitting-20250724_165951 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex
# Run unsloth studio
unsloth studio -H 0.0.0.0 -p 8888
# Then open http://localhost:8888 in your browser
# Search for Cbgcbg/qwen3-1.7b-math-sft-antioverfitting-20250724_165951 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required
# Open https://huggingface.co/spaces/unsloth/studio in your browser
# Search for Cbgcbg/qwen3-1.7b-math-sft-antioverfitting-20250724_165951 to start chatting
Load model with FastModel
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
    model_name="Cbgcbg/qwen3-1.7b-math-sft-antioverfitting-20250724_165951",
    max_seq_length=2048,
)
Quick Links

Qwen3-1.7B Math SFT - Anti-Overfitting Version

Trained with anti-overfitting measures based on "A Practical Two-Stage Recipe for Mathematical LLMs" paper.

Training Details

  • Base Model: unsloth/Qwen3-1.7B
  • Parameters: 1,720,032,256 (all fine-tuned)
  • Epochs: 10
  • Batch Size: 8
  • Learning Rate: 5e-06 (reduced for stability)
  • Weight Decay: 0.1 (increased regularization)
  • Approach: Full model training with anti-overfitting measures

Anti-Overfitting Measures

  • Reduced learning rate: 5e-06
  • Increased weight decay: 0.1
  • Extended warmup: 10% of steps
  • Early stopping on validation loss
  • Regular evaluation checkpoints

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained(
    "Cbgcbg/qwen3-1.7b-math-sft-antioverfitting-20250724_165951",
    torch_dtype="auto",
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Cbgcbg/qwen3-1.7b-math-sft-antioverfitting-20250724_165951")

messages = [
    {"role": "system", "content": "Please reason step by step, and put your final answer within \boxed{}."},
    {"role": "user", "content": "What is 2+2?"}
]

inputs = tokenizer.apply_chat_template(messages, tokenize=True, return_tensors="pt")
outputs = model.generate(input_ids=inputs, max_new_tokens=256)

Training timestamp: 20250724_165951

Downloads last month
3
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 Cbgcbg/qwen3-1.7b-math-sft-antioverfitting-20250724_165951

Finetuned
Qwen/Qwen3-1.7B
Finetuned
(152)
this model