-
Notifications
You must be signed in to change notification settings - Fork 124
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._softmax_backward_data is not implemented #93
Comments
You may need to update the transformers. Delete the local oneflow version of transformers, directly use the official
Reference: https://github.com/Oneflow-Inc/diffusers/pull/83#discussion_r1092913239 |
The cause of the error is explained here: |
好的,多谢大佬。我发现里面谈到编译共享的问题,现在静态图编译是已经支持动态尺寸推理了吗? |
多谢大佬!! |
可以参见这里更新的评论:https://github.com/Oneflow-Inc/diffusers/issues/75#issuecomment-1418789541 |
好的,点赞。 |
Hello, I had the same issue as this post. After updating the transformers package, I now have a similar error: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): Anyone seen this before? |
oneflow.utils.hooks is not implemented, |
looks like it has been resolved, feel free to reopen if not. |
@strint 大佬,碰到个问题,代码安装3月份的oneflow-0.9.1.dev20230312+cu117会报错,你那有2月份的oneflow==0.9.1.dev20230216+cu117模型吗? |
是什么问题呢,可以发下错误信息和 oneflow 版本号,我们跟进修一下 @Yaodada12 |
@strint Process finished with exit code 134 (interrupted by signal 6: SIGABRT) |
@strint 大佬有2月份模型的whl文件或者下载链接吗,我先应个急。 |
@jackalcooper 知道哪里还有不,刚看了下 https://staging.oneflow.info/branch/master/cu117 都是最新的 |
怎么触发这个问题呢,你用的 oneflow sd 的 commit id 可以帮忙发下 @liujuncheng 看这个报错 user_op_conf.cpp:87] Check failed: attr.get() != nullptr attr_name: query_head_size 是最近优化过的一个 op:Oneflow-Inc/oneflow#9963 |
@strint 好的,晚点我来看看 |
有没有使用编译缓存之类的技术,如果有的话,要注意编译缓存是不能跨不同OneFlow的版本使用的,如果没有的话,看能不能提供一个复现脚本。 |
我靠,还真是。之前离线编译模型用的是2月份的模型,现在用pip install --pre oneflow -f https://staging.oneflow.info/branch/master/cu117 安装的oneflow是3月份的,导致报错,切换回2月份的模型就可以了。。 |
Op 信息也属于 graph runtime_state_dict 的一部分(在执行计划 plan 中),最近版本更新了部分 Op 字段,这样之前版本保存的 runtime_state_dict,最近的版本不兼容了,导致 load graph 失败。 这个 case 还挺典型的,我新开个 issue 记录下。 |
给大佬们点赞。 |
|
上面的链接没有了应该就没有现成的了。 你是不是可以考虑使用下新版本?接口是兼容的。 |
Description
Traceback (most recent call last):
File "/home/user/Software/Anaconda/envs/test/lib/python3.8/site-packages/transformers/utils/import_utils.py", line 1050, in _get_module
return importlib.import_module("." + module_name, self.name)
File "/home/user/Software/Anaconda/envs/test/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/user/Software/Anaconda/envs/test/lib/python3.8/site-packages/transformers/models/clip/modeling_clip.py", line 27, in
from ...modeling_utils import PreTrainedModel
File "/home/user/Software/Anaconda/envs/test/lib/python3.8/site-packages/transformers/modeling_utils.py", line 41, in
from .generation_utils import GenerationMixin
File "/home/user/Software/Anaconda/envs/test/lib/python3.8/site-packages/transformers/generation_utils.py", line 61, in
from .pytorch_utils import torch_int_div
File "/home/user/Software/Anaconda/envs/test/lib/python3.8/site-packages/transformers/pytorch_utils.py", line 19, in
from torch import _softmax_backward_data, nn
File "", line 1039, in _handle_fromlist
File "/home/user/Software/Anaconda/envs/test/lib/python3.8/site-packages/oneflow/mock_torch/init.py", line 42, in getattr
raise NotImplementedError(self.module.name + "." + name + error_msg)
NotImplementedError: oneflow._softmax_backward_data 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.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/user/Desktop/yao/projects/Text2img/AIdraw/en/utils/scheduling_ddim_oneflow.py", line 9, in
from diffusers.configuration_utils import ConfigMixin, register_to_config
File "/home/user/Software/Anaconda/envs/test/lib/python3.8/site-packages/diffusers/init.py", line 22, in
from transformers import CLIPTextModel, CLIPFeatureExtractor
File "", line 1039, in _handle_fromlist
File "/home/user/Software/Anaconda/envs/test/lib/python3.8/site-packages/transformers/utils/import_utils.py", line 1041, in getattr
value = getattr(module, name)
File "/home/user/Software/Anaconda/envs/test/lib/python3.8/site-packages/transformers/utils/import_utils.py", line 1040, in getattr
module = self._get_module(self._class_to_module[name])
File "/home/user/Software/Anaconda/envs/test/lib/python3.8/site-packages/transformers/utils/import_utils.py", line 1052, 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._softmax_backward_data 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.
The text was updated successfully, but these errors were encountered: