modelscope / modelscope/ms-swift
About qwen3.5 mtp sft, multi-modality data
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 1.7k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 136
Description
Checklist / 检查清单
- I have searched existing issues, and this is a new question or discussion topic. / 我已经搜索过现有的 issues,确认这是一个新的问题与讨论。
Question Description / 问题描述
When I meagtron-sft the qwen3.5-2b model with the multi-modality data and turn on the mtp, the loss seems lower than only text data.
{"loss": 0.04149855, "grad_norm": 1.89314604, "learning_rate": 6.2e-07, "mtp_1_loss": 0.06920646, "iteration": "1/3207", "elapsed_time": "2m 8s", "remaining_time": "4d 17h 46m 31s", "memory(GiB)": 62.88, "train_speed(s/it)": 127.757503}
{"loss": 0.06579629, "grad_norm": 2.2239275, "learning_rate": 3.12e-06, "mtp_1_loss": 0.1017431, "iteration": "5/3207", "elapsed_time": "3m 53s", "remaining_time": "1d 17h 22m 57s", "memory(GiB)": 62.89, "train_speed(s/it)": 46.526125}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named in the report. Start by locating the Megatron SFT and MTP handling for Qwen multimodal training, then compare equivalent text-only and multimodal runs; done means determining whether the lower loss is expected or identifying a reproducible defect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100