Qwen3-0.6B-Base SFT

Qwen3-0.6B-Base fine-tuned with supervised fine-tuning (SFT) on banghua/DL-SFT-Dataset. Built as a learning exercise to compare the raw base model's output before and after SFT.

Model Details

  • Developed by: biswadeep2004
  • Model type: Causal language model (Qwen3, 0.6B params)
  • Language(s): Mostly English
  • License: Apache 2.0 (inherited from the base model)
  • Finetuned from: Qwen/Qwen3-0.6B-Base

Intended Use

Experimentation and learning about SFT. Not intended for production use or for factual or safety-critical answers.

Limitations

Small model trained on a small dataset (~3k examples). SFT teaches response format and style, not new knowledge, so it can hallucinate and make arithmetic or factual mistakes.

How to Use

from transformers import AutoTokenizer, AutoModelForCausalLM

repo = "biswadeep2004/<your-repo-name>"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo)

msgs = [{"role": "user", "content": "Why is the sky blue?"}]
prompt = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True)
inputs = tok(prompt, return_tensors="pt", add_special_tokens=False)
out = model.generate(**inputs, max_new_tokens=200, do_sample=False)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Training Details

  • Data: banghua/DL-SFT-Dataset (single-turn user/assistant conversations)
  • Format: ChatML (<|im_start|> / <|im_end|>), with loss computed on assistant tokens only (assistant_only_loss=True)
  • Method: Full fine-tuning with TRL SFTTrainer
  • Hyperparameters: learning rate 1e-5 (cosine, 20 warmup steps), 2 epochs, per-device batch size 1 ร— 16 gradient accumulation, max length 1024, fp16 mixed precision, gradient checkpointing
  • Hardware: 1ร— NVIDIA T4 (Google Colab)
  • Final training loss:

Evaluation

Qualitative only: informal before/after comparison on a handful of prompts. No benchmark scores.

Downloads last month
208
Safetensors
Model size
0.6B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for biswadeep2004/gpt2-medium-sft

Finetuned
(771)
this model

Dataset used to train biswadeep2004/gpt2-medium-sft