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.

Does Apex really support PyTorch 0.4.1?

See original GitHub issue

In Readme.md it says:

PyTorch 0.4 or newer.

But sample code examples/simple/distributed goes down with error AttributeError: 'Linear' object has no attribute 'named_buffers', because named_buffers method of torch.Module was introduced after 0.4.1 version.

Is there any build, that supports pytorch 0.4.1? If not, at least maybe the readme.md should be changed?

P.S.: I’m using apex with CUDA and C++ libraries, installed with command pip install -v --no-cache-dir .

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
WrathOfGrapescommented, Jun 4, 2019

@ptrblck The code runs fine without amp.

I’m hoping to find some time during this month to localize and summarize the issues for you.

0reactions
ptrblckcommented, Jun 4, 2019

@WrathOfGrapes is the IllegalMemoryAccess error only thrown if you are using amp or always using your code in PyTorch 1.1 on a GPU? In the latter case, you could try to run your code using

CUDA_LAUNCH_BLOCKING=1 python script.py args

and check, e.g. if no values are out of bounds.

In the former case, we would need to reproduce this issue in order to debug it, so let us know, if you find some time for debugging and we’ll have a look at it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unofficial pytorch 0.4 support - Part 1 (2018) - Fast.ai forums
Please help me install Pytorch 0.4.1 correctly. Hello coders. I would like to experiment with the pure Pytorch version of the movielens ...
Read more >
Cuda not compatible with PyTorch installation error while ...
A100-SXM4-40GB with CUDA capability sm_80 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA ...
Read more >
cudaCheckError() failed: PyTorch 0.4 and CUDA11
When the code tries to utilize GPU it hits “cudaCheckError() failed : no kernel image is available for execution on the device” error....
Read more >
timm - PyPI
So, beware pip install git+https://github.com/rwightman/pytorch-image-models installs! 0.5.x releases and a 0.5.x branch will remain stable with a cherry pick ...
Read more >
Changelog — PyTorch Lightning 1.8.5.post0 documentation
Added native AMP support for ddp_fork (and associated alias strategies) with ... When resuming training with Apex enabled, the Trainer will now raise...
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