[BUG/Help] <keyerror>
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
Traceback (most recent call last):
File "test.py", line 2, in
路径没写错,为什么老是报这个错误呢?config.json也和官方比对过了没错
Expected Behavior
No response
Steps To Reproduce
11
Environment
- OS:Ubuntu
- Python:3.6
- Transformers:4.28.1
- PyTorch:1.9.0
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) : True
Anything else?
No response
Are you sure you are using transformers 4.28.1?
所以你怎么解决了呢?我也遇到了同样的问题,头都挠破了想不出为啥
所以你怎么解决了呢?我也遇到了同样的问题,头都挠破了想不出为啥
保证环境一致也就是更新transformers以及一系列包就没问题了