-
Notifications
You must be signed in to change notification settings - Fork 493
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
transformers v4.45 support #2023
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
if check_if_transformers_greater("4.44.99"): | ||
raise ImportError( | ||
f"ONNX conversion disabled for now for transformers version greater than v4.45, found {transformers.__version__}" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disabling onnx export as additional fixes are needed (but don't want to block the latest transformers release for other subpackages) @michaelbenayoun @xenova
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok to me, maybe specify that it's temporary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for handling that!
# Adapted from transformers.models.gptj.modeling_gptj.GPTJAttention._attn | ||
def gptj_wrapped_scaled_dot_product( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe add docstring on how this custom implementation solves the problem.
if check_if_transformers_greater("4.44.99"): | ||
raise ImportError( | ||
f"ONNX conversion disabled for now for transformers version greater than v4.45, found {transformers.__version__}" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok to me, maybe specify that it's temporary.
failing tests unrelated, merging |
No description provided.