Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add
accelerate launch
testsWhat does this add?
This PR introduces a subset of tests for checking
accelerate launch
and in turnaccelerate config
, and solves a bug I found during testingWhy is it needed?
Users have pointed out that we're not quite doing a good enough job with backwards compatibility checks on config yamls. To ensure these can be caught new tests are added to run a simple script using
accelerate launch
with no configuration file or specific configuration filesWhat parts of the API does this impact?
User-facing:
Nothing
Internal structure:
tests/test_configs
should contain (at least) the last 2 major versions of Accelerate plus the latest version, which are direct outputs fromaccelerate config
. Since these tests take so fast to execute, I think it's fine if this just contains the last 5 or 6 configs until we are comfortable.Anticipated maintenance burden? (What will happen in say, 3 months if something changes)
As part of PR review, maintainers should be aware of any changes to the config file or CLI arguments and ensure that a new config is added to the folder for proper testing.