question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

test wont work unless --config_path is provided?

See original GitHub issue

Hi, thanks for the great library.

I have two questions:

When running: accelerate config, then accelerate test, the script doesnt work and throws the error: FileNotFoundError: [Errno 2] No such file or directory: 'None' Which means the default path is None rather than in the cache folder?

However it does work perfectly when using: accelerate config --config_file /path/config.json accelerate test --config_file /path/config.json

  1. If I want to use evaluation on one GPU only (not distributed evaluation), it is mentioned:

You can perform regular evaluation in your training script, if you leave your validation dataloader out of the prepare() method. In this case, you will need to put the input data on the accelerator.device manually.

If I do this, do I also need to wrap my code inside: if accelerator.is_main_process(): ?

Thanks a lot!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
sguggercommented, Aug 3, 2021

No, pip install accelerate installs the last released version 😃

0reactions
fawazsammanicommented, Aug 3, 2021

I uninstalled it and re-installed it with pip install git+https://github.com/huggingface/accelerate and now it works Previously i installed it with pip install accelerate so it doesent seem to install from main

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error on Missing test/support Folder · Issue #182 - GitHub
ERROR: Config path [:paths][:support]['test/support'] does not exist on disk. Also it will be better if it continues to build after spewing ...
Read more >
Spring Boot: @TestConfiguration Not Overriding Bean During ...
The @TestConfiguration 's constructor breakpoint is hit, so i know that my test configuration class instantiates, however the configPath method ...
Read more >
Lisa Invoke API Error - The test case is not in a project.
Hi All,I am trying to execute devtest test case using lisa invoke apis from local ... I did not provide the config path,...
Read more >
Configuring Jest compiled - w3resource
This will test files that are run inside a vm, which will slow calls to global context properties (e.g. Math). You can specify...
Read more >
Configuring package.json · Jest
If a given module's path matches any of the patterns, it will not be require() -able in the test environment. These pattern strings...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found