Skip to content

Conversation

pcuenca
Copy link
Member

@pcuenca pcuenca commented Nov 7, 2022

This makes it possible to test on CPU/GPU. However, expected slices are only checked when there are 8 devices.

This makes it possible to test on CPU/GPU. However, expected slices are
only checked when there are 8 devices.
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Contributor

@patrickvonplaten patrickvonplaten left a comment

Choose a reason for hiding this comment

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

Thank you

@patrickvonplaten
Copy link
Contributor

Slightly dangerous as we're now allowing the tests to pass when we're running on a single GPU or TPU core, but ok for me!

@pcuenca
Copy link
Member Author

pcuenca commented Nov 7, 2022

@patrickvonplaten The reason is that tests failed when running slow tests in my computer (with Flax installed). I thought it would be ok to avoid hardcoding the number of devices, but as an alternative we could write a decorator that requires an actual TPU node. Should I do that instead?

@patrickvonplaten
Copy link
Contributor

Ok for me think I think we always test on v3-8

@patrickvonplaten patrickvonplaten merged commit af27943 into main Nov 9, 2022
@kashif kashif deleted the flax-tests-devices branch March 19, 2023 12:22
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