-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Inconsistent Results for Output v1_0 After ONNX Runtime Optimization (Flaky Test) #23143
Labels
model:transformer
issues related to a transformer model: BERT, GPT2, Hugging Face, Longformer, T5, etc.
Comments
github-actions
bot
added
the
model:transformer
issues related to a transformer model: BERT, GPT2, Hugging Face, Longformer, T5, etc.
label
Dec 18, 2024
Reshape and Squeeze should not be wrapped into Memcpy nodes. |
Thank you for your analysis and explanation. I will try using only the CPU and look forward to the fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
model:transformer
issues related to a transformer model: BERT, GPT2, Hugging Face, Longformer, T5, etc.
Describe the issue
I encountered an issue where the results from the optimized ONNX model are inconsistent with the original unoptimized model. Specifically, the output v1_0 is inconsistent, and the discrepancy occurs intermittently (flaky test). This issue arises after applying different optimization levels (opt_level=0, 1, 2, 99), though it does not occur consistently in every test.
The following error is reported when comparing the results from the optimized and original models:
Could anyone tell me why the v1_0 output is inconsistent after applying optimizations? Specifically, I'd like to understand the cause of this intermittent discrepancy and whether there are optimizations that could be adjusted to improve the consistency of the results.
To reproduce
Urgency
No response
Platform
Linux
OS Version
Ubuntu 20.04
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
5c1b7cc
ONNX Runtime API
Python
Architecture
X64
Execution Provider
CUDA
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: