Closed doraemon-plus closed 11 months ago
torchrun --nproc_per_node 4 --nnodes 1 finetune.py \ --model_name_or_path $MODEL \ --data_path $DATA \ --bf16 True \ --fix_vit True \ --output_dir output_qwen \ --num_train_epochs 5 \ --per_device_train_batch_size 1 \ --per_device_eval_batch_size 1 \ --gradient_accumulation_steps 16 \ --evaluation_strategy "no" \ --save_strategy "steps" \ --save_steps 1000 \ --save_total_limit 10 \ --learning_rate 1e-5 \ --weight_decay 0.1 \ --adam_beta2 0.95 \ --warmup_ratio 0.01 \ --lr_scheduler_type "cosine" \ --logging_steps 10 \ --report_to "none" \ --model_max_length 3000 \ --lazy_preprocess True \ --use_lora \ --gradient_checkpointing \ --deepspeed finetune/ds_config_zero2.json
No response
- OS: - Python:3.8 - Transformers:4.32 - PyTorch:2.0 - CUDA (`python -c 'import torch; print(torch.version.cuda)'`):11.7
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: -9) local rank: 0 (pid: 2548) of binary: /opt/conda/bin/python3
能提供更详细的信息吗,以及huggingface上的模型文件是否同步到最新。
您好,遇到了同样的问题,您解决了吗
是不是model_max_length设置太大了?
@doraemon-plus遇到同样的问题,请问你是如何解决的?
请问怎么解决的?遇到了相同的问题
--fix_vit 改为false就报错,请问是什么原因哈?谢谢
是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?
该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?
当前行为 | Current Behavior
torchrun --nproc_per_node 4 --nnodes 1 finetune.py \ --model_name_or_path $MODEL \ --data_path $DATA \ --bf16 True \ --fix_vit True \ --output_dir output_qwen \ --num_train_epochs 5 \ --per_device_train_batch_size 1 \ --per_device_eval_batch_size 1 \ --gradient_accumulation_steps 16 \ --evaluation_strategy "no" \ --save_strategy "steps" \ --save_steps 1000 \ --save_total_limit 10 \ --learning_rate 1e-5 \ --weight_decay 0.1 \ --adam_beta2 0.95 \ --warmup_ratio 0.01 \ --lr_scheduler_type "cosine" \ --logging_steps 10 \ --report_to "none" \ --model_max_length 3000 \ --lazy_preprocess True \ --use_lora \ --gradient_checkpointing \ --deepspeed finetune/ds_config_zero2.json
期望行为 | Expected Behavior
No response
复现方法 | Steps To Reproduce
No response
运行环境 | Environment
备注 | Anything else?
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: -9) local rank: 0 (pid: 2548) of binary: /opt/conda/bin/python3