cd /news/artificial-intelligence/runtimeerror-no-cuda-gpus-are-availa… · home topics artificial-intelligence article
[ARTICLE · art-122232] src=discuss.huggingface.co ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

RuntimeError: No CUDA GPUs are available and ValueError

A user named Stormpie reported on a forum that their pottery dating machine 'terraID' fails with 'RuntimeError: No CUDA GPUs are available' when clicking the 'Analyze' button, despite the app running on CPU at startup. The application log shows a corrupted classifier file 'museum_classifier_v5.pt' was detected and retrained, achieving 45.7% validation accuracy on 490 memory examples, and a subsequent 'ValueError: Invalid file descriptor: -1' occurred during shutdown.

read3 min views1 publishedSep 7, 2026
RuntimeError: No CUDA GPUs are available and ValueError
Image: Discuss (auto-discovered)

Hello everyone, this is my first post on this forum. I made a pottery dating machine. The space is called ‘terraID’. However, whenever I click the ‘Analyze’ button, I keep getting the error that there are No CUDA GPUs are available. I tried everything(yes, import Spaces is the first line of the app.py). Is there anyone who knows how this problem can be solved?There is also a ValueError that I can’t quite figure out. My username is ‘Stormpie’.

Thanks in advance for the help!

===== Application Startup at 2026-09-07 08:25:26 =====

#

[notice] To update, run: pip install --upgrade pip

#

#

Device at startup: CPU

CLIP: lazy-loaded on ZeroGPU request Imported 490 memory examples from museum_memory.json

FAISS memory rebuilt: 490 vectors

Could not load classifier: PytorchStreamReader failed reading zip archive: unsupported multidisk archive. This is an internal miniz error. If you are seeing this error, there is a high likelihood that your checkpoint file is corrupted. This can happen if the checkpoint was not saved properly, was transferred incorrectly, or the file was modified after saving.

Corrupt classifier moved to: museum_classifier_v5.pt.corrupt

Training classifier from existing memory…

Epoch 001/60 val=11.7%

Epoch 010/60 val=21.3%

Epoch 020/60 val=27.7%

Epoch 030/60 val=30.9%

Epoch 040/60 val=35.1%

Epoch 050/60 val=40.4%

Epoch 060/60 val=44.7%

Classifier checkpoint saved: museum_classifier_v5.pt

Classifier getraind. Validation accuracy: 45.7%. Training: 396, validation: 94.

Totaal: 490 voorbeelden

  1. ca. 5300-2000 v.Chr. — 64
  2. 2000-0 v.Chr — 73
  3. 0-400 n.Chr — 79
  4. 400-1200 n.Chr — 73
  5. 1200-1500 n.Chr — 35
  6. 1500-1700 n.Chr — 73
  7. 1700-1899 n.Chr — 52
  8. 1900-nu n.Chr — 41

FAISS vectors: 490

Validation accuracy: 45.7%

  • Running on local URL: http://0.0.0.0:7860, with SSR (Node proxy → Python :7861) Exception ignored in: <function BaseEventLoop.del at 0x7fb288bc09a0>

Traceback (most recent call last): File “/usr/local/lib/python3.12/asyncio/base_events.py”, line 732, in del

self.close() File “/usr/local/lib/python3.12/asyncio/unix_events.py”, line 68, in close

super().close() File “/usr/local/lib/python3.12/asyncio/selector_events.py”, line 104, in close

self._close_self_pipe() File “/usr/local/lib/python3.12/asyncio/selector_events.py”, line 111, in _close_self_pipe

self._remove_reader(self._ssock.fileno()) File “/usr/local/lib/python3.12/asyncio/selector_events.py”, line 298, in _remove_reader

key = self._selector.get_key(fd) ^^^^^^^^^^^^^^^^^^^^^^^^^^

File “/usr/local/lib/python3.12/selectors.py”, line 190, in get_key

return mapping[fileobj]


File “/usr/local/lib/python3.12/selectors.py”, line 71, in _*getitem*_


fd = self._selector._fileobj_lookup(fileobj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “/usr/local/lib/python3.12/selectors.py”, line 225, in _fileobj_lookup


return _fileobj_to_fd(fileobj)
^^^^^^^^^^^^^^^^^^^^^^^

File “/usr/local/lib/python3.12/selectors.py”, line 42, in _fileobj_to_fd


```
raise ValueError(“Invalid file descriptor: {}”.format(fd))

ValueError: Invalid file descriptor: -1
```
Exception ignored in: <function BaseEventLoop._*del*_ at 0x7fb288bc09a0>


Traceback (most recent call last):
File “/usr/local/lib/python3.12/asyncio/base_events.py”, line 732, in _*del*_


self.close()
File “/usr/local/lib/python3.12/asyncio/unix_events.py”, line 68, in close


super().close()
File “/usr/local/lib/python3.12/asyncio/selector_events.py”, line 104, in close


self._close_self_pipe()
File “/usr/local/lib/python3.12/asyncio/selector_events.py”, line 111, in _close_self_pipe


self._remove_reader(self._ssock.fileno())
File “/usr/local/lib/python3.12/asyncio/selector_events.py”, line 298, in _remove_reader


key = self._selector.get_key(fd)
^^^^^^^^^^^^^^^^^^^^^^^^^^

File “/usr/local/lib/python3.12/selectors.py”, line 190, in get_key


return mapping[fileobj]
~~~~~~~^^^^^^^^^

File “/usr/local/lib/python3.12/selectors.py”, line 71, in _*getitem*_


fd = self._selector._fileobj_lookup(fileobj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “/usr/local/lib/python3.12/selectors.py”, line 225, in _fileobj_lookup


return _fileobj_to_fd(fileobj)
^^^^^^^^^^^^^^^^^^^^^^^

File “/usr/local/lib/python3.12/selectors.py”, line 42, in _fileobj_to_fd


```
raise ValueError(“Invalid file descriptor: {}”.format(fd))

ValueError: Invalid file descriptor: -1

* To create a public link, set `share=True` in `launch()`.

Traceback (most recent call last):
```
File “/usr/local/lib/python3.12/site-packages/spaces/zero/wrappers.py”, line 148, in worker_init


torch.init(nvidia_uuid)
File “/usr/local/lib/python3.12/site-packages/spaces/zero/torch/patching.py”, line 417, in init


torch.Tensor([0]).cuda()
File “/usr/local/lib/python3.12/site-packages/torch/cuda/_*init*_.py”, line 478, in _lazy_init


torch._C._cuda_init()
RuntimeError: No CUDA GPUs are available
── more in #artificial-intelligence 4 stories · sorted by recency
── more on @stormpie 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/runtimeerror-no-cuda…] indexed:0 read:3min 2026-09-07 ·