apex icon indicating copy to clipboard operation
apex copied to clipboard

How should I search for the corresponding APEX release for a specific PyTorch version?

Open skyrise-l opened this issue 1 year ago • 3 comments

How should I search for the corresponding APEX release for a specific PyTorch version? Currently, I'm using PyTorch 1.5.1 and encountering the following error, which requires upgrading PyTorch to version 1.12 or above. However, if I'm unable to change the PyTorch version, how can I find the corresponding APEX release?

packages/apex/normalization/fused_layer_norm.py", line 18, in supports_custom_op return hasattr(torch.library, "custom_op") AttributeError: module 'torch' has no attribute 'library'

skyrise-l avatar Dec 30 '24 02:12 skyrise-l

Same question!

Hiaa1 avatar Dec 30 '24 12:12 Hiaa1

APEX has not cut branches for pytorch stable releases. I would try a commit used in NGC PyTorch containers that are released around when PyTorch 1.5.1 was released. With a quick search, pytorch 1.5.1 was released on July 19th, 2020 according to https://github.com/pytorch/pytorch/releases/tag/v1.5.1, so I might try e.g. nvcr.io/nvidia/pytorch:20.07-py3

crcrpar avatar Jan 01 '25 15:01 crcrpar

same question. you solved it? any solution?

Cominder avatar Jan 05 '25 16:01 Cominder