jev35b moe模型训练报错
Checklist / 检查清单
- [x] I have searched existing issues, and this is a new bug report. / 我已经搜索过现有的 issues,确认这是一个新的 bug report。
Bug Description / Bug 描述
报错日志:[INFO:swift] Setting max_ratio: 200. You can adjust this hyperparameter through the environment variable: MAX_RATIO.
[INFO:swift] Setting frame_factor: 2. You can adjust this hyperparameter through the environment variable: FRAME_FACTOR.
[INFO:swift] Setting fps: 2.0. You can adjust this hyperparameter through the environment variable: FPS.
[INFO:swift] Setting fps_min_frames: 4. You can adjust this hyperparameter through the environment variable: FPS_MIN_FRAMES.
[INFO:swift] Setting fps_max_frames: 768. You can adjust this hyperparameter through the environment variable: FPS_MAX_FRAMES.
[INFO:swift] Setting image_max_token_num: 16384. You can adjust this hyperparameter through the environment variable: IMAGE_MAX_TOKEN_NUM.
[INFO:swift] Setting image_min_token_num: 4. You can adjust this hyperparameter through the environment variable: IMAGE_MIN_TOKEN_NUM.
[INFO:swift] Setting spatial_merge_size: 2. You can adjust this hyperparameter through the environment variable: SPATIAL_MERGE_SIZE.
[INFO:swift] Setting video_max_token_num: 768. You can adjust this hyperparameter through the environment variable: VIDEO_MAX_TOKEN_NUM.
[INFO:swift] Setting video_min_token_num: 128. You can adjust this hyperparameter through the environment variable: VIDEO_MIN_TOKEN_NUM.
[INFO:swift] model_kwargs: {'device_map': 'cuda:0', 'dtype': torch.bfloat16}
The fast path is not available because one of the required library is not installed. Falling back to torch implementation. To install follow
https://github.com/fla-org/flash-linear-attention#installation and https://github.com/Dao-AILab/causal-conv1d
Traceback (most recent call last):
File "/mnt/workspace/zhuye/ms-swift/swift/cli/sft.py", line 20, in
How to Reproduce / 如何复现
USE_HF=0
CUDA_VISIBLE_DEVICES=0
swift sft
--external_plugins xxxev_train_plugin.py
--model xxx/JEV-35B
--model_type jev
--tuner_type lora
--lora_rank 16
--lora_alpha 32
--task_type decision
--loss_type distill_rps
--dataset dxm_jev_tool_train
--val_dataset dxm_jev_tool_val
--torch_dtype bfloat16
--num_train_epochs 1
--per_device_train_batch_size 1
--learning_rate 1e-4
--gradient_accumulation_steps 4
--gradient_checkpointing true
--logging_steps 1
--save_steps 50
--save_total_limit 2
--max_length 32768
--split_dataset_ratio 0
--output_dir xxx/jev_35b
--dataloader_num_workers 1
Additional Information / 补充信息
No response
The failure occurred because this model was not integrated. I have now integrated the model; please pull the latest code from the main branch and proceed with training.