ImportError: cannot import name 'FP16_Optimizer'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 9k
- Forks
- 1.5k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 3
Description
I have the some problem when import apex on colab.
the wdir is apex, I execute the code to install apex
!git clone https://github.com/NVIDIA/apex.git
%cd apex
!pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext"
But it seems that it fails to find the path of fp16_optimizer and FusedAdam at optimizer folder
ImportError: cannot import name 'FP16_Optimizer'
ImportError: Please install apex from https://www.github.com/nvidia/apex
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Colab installation using the commands in the issue, then inspect the optimizer folder and the availability of fp16_optimizer and FusedAdam. Done means the cause of the missing FP16_Optimizer import is identified and a verified resolution is recorded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100