[Feature Request] Support MiniCPM-o 4.5 training in Megatron-SWIFT
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 8/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- ai, machine-learning
Research direction
The request spans model integration, weight mapping, audio-aware batching and loss, parallelism, and checkpoint export, with no implementation PR and no assignee yet. Start by reading the Megatron-SWIFT model registration and the existing MiniCPM-V or Qwen-Omni support in the supported-models docs to see how a comparable multimodal model is wired in. Done means the scope is agreed in the issue and a minimal megatron sft example runs; this is design work rather than a first contribution.
Written by the indexing model from the issue text.
Description
Checklist / 检查清单
- I searched existing issues for a MiniCPM-o Megatron training request.
Feature Request Description / Feature Request 描述
Please add MiniCPM-o training support to Megatron-SWIFT, with openbmb/MiniCPM-o-4_5 as the initial target.
The supported-models table currently lists MiniCPM-o 4.5 (model_type=minicpmo, template=minicpmo4_5) with Megatron support marked as unavailable. Related model-support request: #9259.
Use case
Fine-tuning MiniCPM-o for speech-to-speech tasks, including streaming/full-duplex interaction. The requested scope includes audio input and joint text/audio-output supervision across the language and speech-generation components. Tensor and pipeline parallelism would help distribute this workload across GPUs.
Requested capabilities
- Model integration and weight mapping for loading the official Hugging Face checkpoint into the Megatron backend.
- Audio-aware preprocessing, batching, and loss handling that preserve the model's chunk alignment, attention masks, and text/speech supervision.
- A documented supported parallel configuration, initially tensor parallelism and, where feasible, pipeline/sequence parallelism. Please clarify how the audio encoder and speech-generation components are placed and trained.
- Checkpoint save/resume and export back to a checkpoint usable by the original MiniCPM-o inference code.
- A minimal
megatron sftexample with the required dependency versions, dataset format, and supported trainable/frozen components.
If joint speech training needs to be implemented in stages, documenting the initial supported scope and remaining limitations would also be helpful.
This is a feature request based on the documented support gap; it is not a report of a reproduced failure on the latest development version.
Pull Request / Pull Request 信息
No implementation PR at present.
- Dominant language
- Python
- Stars
- 16.2k
- Forks
- 1.8k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 68
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from modelscope/ms-swift
-
get_multimodal_target_regex(..., exclude_router=True) does not exclude shared_expert_gatePossibly taken @KonnyakuMatcha claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
modelscope/ms-swift#10696 ·
Maintainers usually reply within 1 day
-
[BUG] GRPO REAL loss crashes with beta>0 and kl_in_reward=True (NoneType * Tensor)Possibly taken @newcloud123 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
modelscope/ms-swift#10690 ·
Maintainers usually reply within 1 day
-
[BUG] GRPO REAL loss divides by all groups instead of valid groups, silently scaling gradientsPossibly taken @newcloud123 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
modelscope/ms-swift#10688 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 Half a day Newbie friendliness 62/100
modelscope/ms-swift#10621 ·
Maintainers usually reply within 1 day
-
[Bug] `get_seed` consumes a draw from the shared RandomState even when decision augmentation is disabled, changing the train/val split and dataset shufflePossibly taken @ryznren claimed this 38 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
modelscope/ms-swift#10466 · 1 comment ·
Maintainers usually reply within 1 day
All issues in modelscope/ms-swift
Similar issues
-
Test: to_hijri() accepts datetime.datetime and uses only the date partPossibly taken A pull request linked to this issue is open or already merged. Opengood first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 · 3 comments ·
Maintainers usually reply within 1 day
-
polish
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scoresPossibly taken @AshutoshSingh840 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
UKGovernmentBEIS/control-arena#992 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
mvalentsev/awesome-free-ai-coding#70 ·
Maintainers usually reply within 1 day