-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
RuntimeError: GET was unable to find an engine to execute this computation #283
Comments
Facing the same issue. |
How to solve the issue.... I am facing the same |
+1 |
2 similar comments
+1 |
+1 |
降低torch版本,多半是由于torch==2.0.0,使用如下命令(这是我自己解决的方式,仅供参考): |
可以放到CPU运算,之后再加载回GPU继续 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
have someone encountered any such problems
Action: Generate Image From User Input Text
0%| | 0/50 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/gradio/routes.py", line 384, in run_predict
output = await app.get_blocks().process_api(
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/gradio/blocks.py", line 1032, in process_api
result = await self.call_function(
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/gradio/blocks.py", line 844, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "visual_chatgpt.py", line 850, in run_text
res = self.agent({"input": text})
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/langchain/chains/base.py", line 168, in call
raise e
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/langchain/chains/base.py", line 165, in call
outputs = self._call(inputs)
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/langchain/agents/agent.py", line 503, in _call
next_step_output = self._take_next_step(
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/langchain/agents/agent.py", line 420, in _take_next_step
observation = tool.run(
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/langchain/tools/base.py", line 71, in run
raise e
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/langchain/tools/base.py", line 68, in run
observation = self._run(tool_input)
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/langchain/agents/tools.py", line 17, in _run
return self.func(tool_input)
File "visual_chatgpt.py", line 241, in inference
image = self.pipe(prompt, negative_prompt=self.n_prompt).images[0]
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py", line 667, in call
noise_pred = self.unet(
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/diffusers/models/unet_2d_condition.py", line 576, in forward
sample = self.conv_in(sample)
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 463, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/home/ps/anaconda3/envs/visgpt/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 459, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,
RuntimeError: GET was unable to find an engine to execute this computation
The text was updated successfully, but these errors were encountered: