-
Notifications
You must be signed in to change notification settings - Fork 504
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
Codegen model fails #589
Comments
Hi @PoodleWang, With the snippet, I encounter an error but not exactly the same as yours:
Which seems to be due to some large external tensors surpassing the 2GB limits. Did you succeed in exporting the ONNX model? I will take a closer look tomorrow, and there are some ongoing PR to improve large ONNX export #255 #586 . |
I tried the PR you mentioned. However, I still get failed. This is my code: I converted the 6b-mono to the onnx model and store locally tokenizer = AutoTokenizer.from_pretrained("Salesforce/codegen-6B-mono") ** LOG ** environment |
@JingyaHuang code tokenizer = AutoTokenizer.from_pretrained("Salesforce/codegen-6B-mono") pie = pipeline('text-generation', model=model, tokenizer=tokenizer) ** Environment **LOG Invoked with: 0, 0, None |
@PoodleWang can you checkout to this PR #586 and see if it solves your problem? |
System Info
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
python3.7
A100-80G
Expected behavior
model run correctly
The text was updated successfully, but these errors were encountered: