Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oneflow.cuda.amp.GradScaler is not implemented,please help me. #9822

Closed
randompaga opened this issue Feb 3, 2023 · 4 comments
Closed

oneflow.cuda.amp.GradScaler is not implemented,please help me. #9822

randompaga opened this issue Feb 3, 2023 · 4 comments

Comments

@randompaga
Copy link

Description

Traceback (most recent call last):
File "server.py", line 8, in
import app as user_src
File "/app.py", line 2, in
from diffusers import (
File "/src/diffusers/src/diffusers/init.py", line 22, in
from transformers import CLIPTextModel, CLIPFeatureExtractor
File "", line 1039, in _handle_fromlist
File "/opt/conda/lib/python3.8/site-packages/transformers/utils/import_utils.py", line 1101, in getattr
value = getattr(module, name)
File "/opt/conda/lib/python3.8/site-packages/transformers/utils/import_utils.py", line 1100, in getattr
module = self._get_module(self._class_to_module[name])
File "/opt/conda/lib/python3.8/site-packages/transformers/utils/import_utils.py", line 1112, in _get_module
raise RuntimeError(
RuntimeError: Failed to import transformers.models.clip.modeling_clip because of the following error (look up to see its traceback):
oneflow.cuda.amp.GradScaler is not implemented, please submit an issue at
'https://github.com/Oneflow-Inc/oneflow/issues' including the log information of the error, the
minimum reproduction code, and the system information.

@daquexian
Copy link
Contributor

Thanks for your issue. It is a known problem. Please uninstall accelerator library by pip uninstall accelerator.

@randompaga

This comment was marked as resolved.

@randompaga
Copy link
Author

Thanks for your issue. It is a known problem. Please uninstall accelerator library by pip uninstall accelerator.

I have solve the problem.THX.

@carlitoselmago
Copy link

When I try this i get

WARNING: Skipping accelerator as it is not installed.

which doesn't fix the problem

Thanks for your issue. It is a known problem. Please uninstall accelerator library by pip uninstall accelerator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants