copy the container, and when run image2video, find the error

#19
by wen020 - opened

2024-09-20T09:24:07.652946328Z Traceback (most recent call last):
2024-09-20T09:24:07.652993346Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/gradio/queueing.py", line 536, in process_events
2024-09-20T09:24:07.653004948Z response = await route_utils.call_process_api(
2024-09-20T09:24:07.653013204Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
2024-09-20T09:24:07.653021459Z output = await app.get_blocks().process_api(
2024-09-20T09:24:07.653029053Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/gradio/blocks.py", line 1935, in process_api
2024-09-20T09:24:07.653037169Z result = await self.call_function(
2024-09-20T09:24:07.653044723Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/gradio/blocks.py", line 1520, in call_function
2024-09-20T09:24:07.653052979Z prediction = await anyio.to_thread.run_sync( # type: ignore
2024-09-20T09:24:07.653060673Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
2024-09-20T09:24:07.653068838Z return await get_async_backend().run_sync_in_worker_thread(
2024-09-20T09:24:07.653076643Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread
2024-09-20T09:24:07.653084848Z return await future
2024-09-20T09:24:07.653092393Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 859, in run
2024-09-20T09:24:07.653120506Z result = context.run(func, *args)
2024-09-20T09:24:07.653128310Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/gradio/utils.py", line 826, in wrapper
2024-09-20T09:24:07.653136385Z response = f(*args, **kwargs)
2024-09-20T09:24:07.653143879Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/gradio/utils.py", line 826, in wrapper
2024-09-20T09:24:07.653151614Z response = f(*args, **kwargs)
2024-09-20T09:24:07.653159068Z File "/home/user/app/app.py", line 451, in generate
2024-09-20T09:24:07.653166702Z latents, seed = infer(
2024-09-20T09:24:07.653174808Z File "/home/user/app/app.py", line 253, in infer
2024-09-20T09:24:07.653182292Z pipe_image.enable_sequential_cpu_offload()
2024-09-20T09:24:07.653189796Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 1115, in enable_sequential_cpu_offload
2024-09-20T09:24:07.653197751Z cpu_offload(model, device, offload_buffers=offload_buffers)
2024-09-20T09:24:07.653206137Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/accelerate/big_modeling.py", line 204, in cpu_offload
2024-09-20T09:24:07.653214011Z attach_align_device_hook(
2024-09-20T09:24:07.653221696Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/accelerate/hooks.py", line 512, in attach_align_device_hook
2024-09-20T09:24:07.653229581Z attach_align_device_hook(
2024-09-20T09:24:07.653236985Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/accelerate/hooks.py", line 503, in attach_align_device_hook
2024-09-20T09:24:07.653244809Z add_hook_to_module(module, hook, append=True)
2024-09-20T09:24:07.653252344Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/accelerate/hooks.py", line 161, in add_hook_to_module
2024-09-20T09:24:07.653260469Z module = hook.init_hook(module)
2024-09-20T09:24:07.653267923Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/accelerate/hooks.py", line 312, in init_hook
2024-09-20T09:24:07.653275688Z set_module_tensor_to_device(
2024-09-20T09:24:07.653283162Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/accelerate/utils/modeling.py", line 408, in set_module_tensor_to_device
2024-09-20T09:24:07.653291077Z new_value = old_value.to(device)
2024-09-20T09:24:07.653298581Z File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/torch/cuda/init.py", line 302, in _lazy_init
2024-09-20T09:24:07.653306566Z torch._C._cuda_init()
2024-09-20T09:24:07.653314150Z RuntimeError: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 804: forward compatibility was attempted on non supported HW

Knowledge Engineering Group (KEG) & Data Mining at Tsinghua University org

Did you use it with L40s? This error seems to indicate there is no GPU device?

Sign up or log in to comment