Qwen3-1.7B Multi-turn SFT on UltraChat

This repo stores the training script and will receive checkpoints from an SFT run of Qwen/Qwen3-1.7B on HuggingFaceH4/ultrachat_200k.

Training objective

Improve context maintenance across several exchanges by fine-tuning on a multi-turn conversational dataset while computing loss only on assistant turns.

Dataset choice

Selected dataset: HuggingFaceH4/ultrachat_200k

Why:

  • verified multi-turn messages structure with role/content
  • widely used conversational SFT dataset
  • directly compatible with TRL SFTTrainer

Training details

  • Trainer: trl.SFTTrainer
  • Dataset format: conversational language modeling (messages)
  • Loss masking: assistant_only_loss=True
  • Packing: False to preserve dialogue boundaries
  • Chat template handling: rely on TRL's patched Qwen3 training template for assistant-token masking

Key correctness point

For Qwen3, current TRL docs state that when assistant_only_loss=True is enabled, TRL automatically swaps in a patched Qwen3 training chat template containing {% generation %} / {% endgeneration %} markers so only assistant tokens contribute to the loss.

References

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for AbhilekhMeda/qwen3-1.7b-multiturn-ultrachat

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