Closed y-y-name closed 1 month ago
请问,这个问题有解决吗?求助 谢谢
You should upload the error screenshot. Also, you may downgrade the version of transformers to the one released in early 2021. Many issues are caused by the back-incompatibility of new versions.
在运行infer_vanilla.sh时,提示如下错误:
inferring: 0%| | 0/195 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/data/ESConv_CoT_work/Emotional-Support-Conversation-main/codes_zcj/infer.py", line 190, in model_kwargs
are not used by the model: ['batch_size'] (note: typos in the generate arguments will also show up in this list)
目前版本是transformers==4.24.0
但是旧的版本 安装时总是提示找不到库,如下
Channels:
PackagesNotFoundError: The following packages are not available from current channels:
Current channels:
To search for alternate channels that may provide the conda package you're looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
I think it is an issue regarding the new versions' back-incompatibility. You should install transformers via pip.
这个问题解决了,thank you
错误如下: ValueError: The following
model_kwargs
are not used by the model: ['batch_size']