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

使用HuggingFace的 Hosted inference API时,报错,在本地用transformers加载报同样的错误 #3

Open
jiweizhangxu opened this issue Jul 10, 2023 · 5 comments

Comments

@jiweizhangxu
Copy link

1

@HillZhang1999
Copy link
Owner

注意指定使用BertTokenizer

@jiweizhangxu
Copy link
Author

注意指定使用BertTokenizer

请问具体怎么操作,API这无法调整Tokenizer,还是API就是不可用的状态

@HillZhang1999
Copy link
Owner

你可以使用我的脚本尝试运行,在线API暂时不可用。
https://github.com/HillZhang1999/NaSGEC/blob/main/demo.py

@jiweizhangxu
Copy link
Author

你可以使用我的脚本尝试运行,在线API暂时不可用。 https://github.com/HillZhang1999/NaSGEC/blob/main/demo.py
代码还是报相同错误,如下:
图片

@HillZhang1999
Copy link
Owner

请尝试安装指定版本的依赖库:
https://github.com/HillZhang1999/NaSGEC/blob/main/requirements.txt

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

2 participants