DeepThink
DeepThink
> 我碰到你一样的,要修改加载数据的方式,我修改的代码: > > class FewShotDataset(Dataset): def **init**(self, path, processor, tokenizer, args): # max_seq_length = args.max_source_length + args.max_target_length with open(path, 'r', encoding='utf-8') as f: data = json.load(f) self.images = []...
> 可以参考CogVLM里数据集的写法:https://github.com/THUDM/CogVLM/blob/main/utils/dataset.py 感谢指教,学习一下
单机 8卡 megatron pt也有这个问题
加了这个参数依然内存oom
这是我的训练脚本export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True export SKIP_MULTIMODAL_MTP_VALIDATION=1 # 训练参数 export NPROC_PER_NODE=8 export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 export SWIFT_USE_MCORE_GDN=1 export OMP_NUM_THREADS=1 nohup megatron pt \ --model /workspace/model_hub/Qwen3.5-9B/ \ --save_safetensors true \ --use_chat_template false \ --dataset '/workspace/mllm_cpt_data/mllm_cpt_data_.jsonl' \...
I found that the plain text dialogue is not inserted into the graphic dialogue, and adding plain text to the MLLM to fine-tune the LLM can improve the MLLM's instruct...
这个猴子补丁牛逼
https://arxiv.org/pdf/2508.11408 This work has modified the original DFT loss.