Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 关于uie-x模型微调时finetune.py出现 c_sep_index = attention_mask.index(0) ValueError: 0 is not in list 的问题。 #9637

Open
1 task done
Cynthia-ly opened this issue Dec 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Cynthia-ly
Copy link

软件环境

grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
paddle2onnx               1.2.8
paddledet                 0.0.0
paddlefsl                 1.1.0
paddlelabel               1.0.1
paddlenlp                 3.0.0b1
paddleocr                 2.8.1
paddlepaddle-gpu          3.0.0b1

重复问题

  • I have searched the existing issues

错误描述

在训练时突然中断

稳定复现步骤 & 代码

python -m paddle.distributed.launch --gpus=0,2,3 finetune.py --device gpu --logging_steps 5 --save_steps 25 --eval_steps 25 --seed 42 --model_name_or_path uie-x-base --output_dir ./checkpoint/model1213 --train_path data_1213/train.txt --dev_path data_1213/dev.txt --max_seq_len 512 --per_device_train_batch_size 1 --per_device_eval_batch_size 4 --num_train_epochs 10 --learning_rate 1e-5 --do_train --do_eval --do_export --export_model_dir ./checkpoint/model1213 --overwrite_output_dir --disable_tqdm True --metric_for_best_model eval_f1 --load_best_model_at_end True --save_total_limit 1 --fp16 --gradient_accumulation_steps 2

报错:
微信图片_20241214004619

@Cynthia-ly Cynthia-ly added the bug Something isn't working label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants