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

Making TF TransfoXL model compliant with AMP #10264

Merged
merged 3 commits into from
Feb 19, 2021

Conversation

jplu
Copy link
Contributor

@jplu jplu commented Feb 18, 2021

What does this PR do?

This PR makes the TF TransfoXL model compliant with AMP. All the slow tests are passing as well for these models.

These two models cannot be XLA compliant for now, as it seems that tf.where cannot be used in XLA if the x and y parameters are None. See the _get_global_attn_indices method which has this case. I have opened an issue on the TF repo in order to ask if it is an expected behavior or a bug.

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@LysandreJik LysandreJik merged commit 3e116ed into huggingface:master Feb 19, 2021
@jplu jplu deleted the tf-transfoxl-amp-xla branch February 19, 2021 13:20
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

Successfully merging this pull request may close these issues.

3 participants