-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken tests with new accelerate version (#873)
* Fix broken tests with new accelerate version Latest changes in accelerate led to breaking tests. Unfortunately, the solution is to use a privat method on AcceleratorState but the devs said that this would be the best solution. This PR also sets the requirements for accelerate to be v0.11 or higher. This not only makes our code simpler, but also opens the door to supporting gradient accumulation with accelerate (which will come in a separate PR). * Skip AMP tests if no CUDA device is found
- Loading branch information
1 parent
764a1a0
commit 4b9e765
Showing
2 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
accelerate | ||
accelerate>=0.11.0 | ||
fire | ||
flaky | ||
future>=0.17.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters