When i try to use ZeroGPU, it keeps saying "GPU Task aborted""
when i try to do something using ZeroGPU with@spaces.GPUit keeps giving me an error saying “GPU Task aborted”
2024-09-14T04:31:55Z
A little more detail, please. If it’s a usage issue, someone can advise. Note that there was a bug with the same symptoms recently, but I think it has been fixed about 70% of the time.huggingface.co@cbensimon on Hugging Face: "Hello everybody,

We've rolled out a major...We’re on a journey to advance and democratize artificial intelligence through open source and open science.huggingface.cozero-gpu-explorers/README · About the phenomenon of eternal stacks when...The following glitch occurs when a @spaces.GPU decorator is attached to a function (method) that is not called directly from app.py . If a function with decorators is called directly, it works. How...
2024-09-15T15:10:02Z
i made a space, GGUF Playground, but when i call the function to generate a response, it gives me an error saying “GPU Task aborted”, these are the logs:Traceback (most recent call last):File “/usr/local/lib/python3.10/site-packages/gradio/queueing.py”, line 536, in process_eventsresponse = await route_utils.call_process_api(File “/usr/local/lib/python3.10/site-packages/gradio/route_utils.py”, line 322, in call_process_apioutput = await app.get_blocks().process_api(File “/usr/local/lib/python3.10/site-packages/gradio/blocks.py”, line 1935, in process_apiresult = await self.call_function(File “/usr/local/lib/python3.10/site-packages/gradio/blocks.py”, line 1532, in call_functionprediction = await utils.async_iteration(iterator)File “/usr/local/lib/python3.10/site-packages/gradio/utils.py”, line 671, in async_iterationreturn await iterator.anext()File “/usr/local/lib/python3.10/site-packages/gradio/utils.py”, line 776, in asyncgen_wrapperresponse = await iterator.anext()File “/usr/local/lib/python3.10/site-packages/gradio/chat_interface.py”, line 653, in _stream_fnfirst_response = await async_iteration(generator)File “/usr/local/lib/python3.10/site-packages/gradio/utils.py”, line 671, in async_iterationreturn await iterator.anext()File “/usr/local/lib/python3.10/site-packages/gradio/utils.py”, line 664, inanextreturn await anyio.to_thread.run_sync(File “/usr/local/lib/python3.10/site-packages/anyio/to_thread.py”, line 56, in run_syncreturn await get_async_backend().run_sync_in_worker_thread(File “/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py”, line 2177, in run_sync_in_worker_threadreturn await futureFile “/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py”, line 859, in runresult = context.run(func, *args)File “/usr/local/lib/python3.10/site-packages/gradio/utils.py”, line 647, in run_sync_iterator_asyncreturn next(iterator)File “/usr/local/lib/python3.10/site-packages/spaces/zero/wrappers.py”, line 354, in gradio_handlerraise gr.Error(“GPU task aborted”)gradio.exceptions.Error: ‘GPU task aborted’
2024-09-15T15:31:52Z
I now duplicated this and it worked normally… any changes?huggingface.coGGUF Playground - a Hugging Face Space by CaioXapelaumDiscover amazing ML apps made by the communitySorry. No, it’s not. There’s an error in the original, too. It’s buggy, though it’s still up and running.
2024-09-15T15:41:12Z
So I fixed the bug. Try duplicating it on your Zero GPU space. It should work.huggingface.coGGUF Playground - a Hugging Face Space by John6666Discover amazing ML apps made by the community
2024-09-15T20:21:40Z
you can delete the space now, i already accepted the pull request you made, anyways, thank you
2024-09-15T21:46:43Z
Deleted. It works, it’s fine.
2025-01-07T05:57:31Z
The same happens to me. I have an space in ZeroGPU and it happens constantly but now always. And that is the annoying part because I cant replay the error because it happens sporadically, not always, without changinf any line of code.
2025-01-20T13:42:17Z
Same for me but I’ve been having it everytime.I’ve created another space just to debug, and I’ve used a very simple pipeline using Llama 3.1 8b Instruct, a simple text placeholder and an output text.I’ve decorated my ‘generate_text’ function but still, I get the ‘GPU task aborted’ error after a dozen of seconds (even with a duration set in the decorator).I can’t make the troubleshooting code more simple, yet I still get the error. Anyone understands the issue ?Thank you a lot