We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("openbmb/cpm-bee-5b", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("openbmb/cpm-bee-5b", trust_remote_code=True).cuda() # result = model.generate({"input": "今天天气不错,", "": ""}, tokenizer) print(result)
安装环境:python3.9 transformers
The text was updated successfully, but these errors were encountered:
您的内存配置是多少呢,加载5B模型应该要求有至少10G内存
Sorry, something went wrong.
No branches or pull requests
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("openbmb/cpm-bee-5b", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("openbmb/cpm-bee-5b", trust_remote_code=True).cuda() #
result = model.generate({"input": "今天天气不错,", "": ""}, tokenizer)
print(result)
安装环境:python3.9 transformers
The text was updated successfully, but these errors were encountered: