fp8训练报错
Checklist / 检查清单
- [x] I have searched existing issues, and this is a new bug report. / 我已经搜索过现有的 issues,确认这是一个新的 bug report。
Bug Description / Bug 描述
transformer_engine 版本是2.10.0
ms_swift版本是3.12.2
去掉 --use_precision_aware_optimizer true
--exp_avg_dtype bf16
--exp_avg_sq_dtype bf16 \后可以跑
How to Reproduce / 如何复现
transformer_engine 版本是2.10.0
ms_swift版本是3.12.2
megatron sft
--model Qwen3-14B-FP8
--load_safetensors true
--save_safetensors true
--train_type full
--dataset data.json
--load_from_cache_file true
--fp8_format e4m3
--fp8_recipe delayed
--fp8_param_gather true
--tensor_model_parallel_size 8
--finetune true
--micro_batch_size 1
--global_batch_size 160
--packing true
--recompute_granularity selective
--max_epochs 4
--cross_entropy_loss_fusion true
--cross_entropy_fusion_impl te
--lr 1e-5
--lr_warmup_fraction 0.05
--min_lr 1e-6
--save Qwen3-14B-FP8-01
--save_interval 1000
--max_length 32768
--loss_scale last_round+ignore_empty_think
--num_workers 50
--dataset_num_proc 50
--no_save_optim false
--no_save_rng false
--sequence_parallel true
--attention_backend flash
--use_precision_aware_optimizer true
--exp_avg_dtype bf16
--exp_avg_sq_dtype bf16
--report_to wandb
Additional Information / 补充信息
No response
--fp8_param_gather true保存模型是fp32的不是fp8的
https://github.com/modelscope/ms-swift/tree/main/examples/megatron/fp8
https://github.com/modelscope/ms-swift/tree/main/examples/megatron/fp8
麻烦问下fp8_recipe delayed 为什么不行呢?
This issue has been inactive for over 3 months and will be automatically closed in 7 days. If this issue is still relevant, please reply to this message.
This issue has been automatically closed due to inactivity. If needed, it can be reopened.