Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Why do I get "Cannot Initialize NVML"? How can I initialize the GPU kernel?

Aperta
#418 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
docker, python, pytorch

Direzione di ricerca

Inizia riproducendo l'avviso nel container Docker unstructured e verifica in che modo il container espone CUDA e NVML a PyTorch. L'issue è completa quando il percorso di esecuzione GPU viene reso funzionante oppure viene documentata la configurazione runtime richiesta, includendo un ambiente riproducibile e un tipo di file.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug
A clear and concise description of what the bug is.

When I run unstrctured docker container locally, I get this error:

2024-05-20 12:44:22 /home/notebook-user/.local/lib/python3.10/site-packages/torch/cuda/init.py:619: UserWarning: Can't initialize NVML
2024-05-20 12:44:22 warnings.warn("Can't initialize NVML")

I assume that its because its running the CPU version of unstructured and not the GPU version. How can i fix this? running in a GPU would help with hi-res parsing

To Reproduce
Please provide as much info as possible:

  • Filetype:
  • Any additional API parameters:

Environment:

  • Using the hosted API or self hosting?
  • How are you calling the API? (Langchain, SDKs, cUrl, etc.)

Additional context
Add any other context about the problem here.

Lingua principale
Python
Stelle
953
Fork
192
Merge medio
1g 1h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Unstructured-IO/unstructured-api

Tutte le issue di Unstructured-IO/unstructured-api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.