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

本地执行finetune.py 模型微调提示@runtime_checkable异常 #44

Open
15874920993 opened this issue Jun 21, 2024 · 1 comment
Open

Comments

@15874920993
Copy link

"D:\Program Files\anaconda3\envs\uie\python.exe" "D:/Program Files/JetBrains/PyCharm 2022.2.2/plugins/python/helpers/pydev/pydevd.py" --multiprocess --qt-support=auto --client 127.0.0.1 --port 49998 --file D:\work\develop\python_work\uie_work\uie_pytorch\finetune.py --train_path ./data/train.txt --dev_path ./data/dev.txt --save_dir ./checkpoint --learning_rate 1e-5 --batch_size 4 --max_seq_len 512 --num_epochs 100 --model uie_base_pytorch --seed 1000 --logging_steps 10 --valid_steps 100 --device cpu
Traceback (most recent call last):
File "D:\Program Files\JetBrains\PyCharm 2022.2.2\plugins\python\helpers\pydev\pydevd.py", line 1496, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "D:\Program Files\JetBrains\PyCharm 2022.2.2\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:\work\develop\python_work\uie_work\uie_pytorch\finetune.py", line 253, in
do_train()
File "D:\work\develop\python_work\uie_work\uie_pytorch\finetune.py", line 44, in do_train
train_data_loader = DataLoader(
File "D:\Program Files\anaconda3\envs\uie\lib\site-packages\torch\utils\data\dataloader.py", line 200, in init
if isinstance(dataset, IterableDataset):
File "D:\Program Files\anaconda3\envs\uie\lib\typing.py", line 1498, in instancecheck
raise TypeError("Instance and class checks can only be used with"
TypeError: Instance and class checks can only be used with @runtime_checkable protocols

@15874920993
Copy link
Author

有哪位大佬遇到过吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant