vLLM: Bfloat16 is only supported on GPUs with compute capability of at least 8.0 (Grafikkarte zu alt für BF16)
vLLM will das Modell im Zahlenformat BF16 laden, aber deine Grafikkarte kann BF16 nicht. Das betrifft Karten vor der RTX-30-Generation (Ampere), zum Beispiel RTX 20, Quadro RTX, Tesla T4, V100 oder P100.
Die Meldung
ValueError: Bfloat16 is only supported on GPUs with compute capability of at least 8.0. Your Quadro RTX 5000 GPU has compute capability 7.5. You can use float16 instead by explicitly setting the`dtype` flag in CLI, for example: --dtype=half.
Betrifft: vLLM
Warum passiert das?
Viele aktuelle Modelle sind in BF16 gespeichert und vLLM übernimmt dieses Format automatisch. BF16 braucht aber eine NVIDIA-Grafikkarte mit Compute Capability 8.0 oder höher. Ältere Karten (zum Beispiel 7.5 bei RTX 20/T4, 7.0 bei V100) beherrschen nur FP16.
So löst du es
- Starte vLLM mit FP16 statt BF16: Häng an deinen Startbefehl
--dtype halfan (gleichbedeutend:--dtype=half). - Nutzt du vLLM über eine Konfiguration statt über die Kommandozeile, setz dort
dtypeauffloat16. - Prüfe, wie alt deine Karte ist: Die Fehlermeldung nennt die Compute Capability direkt („Your … GPU has compute capability …“).
- Liegt deine Karte unter 7.0 (zum Beispiel Tesla P100 mit 6.0), meldet vLLM danach meist einen weiteren Fehler, weil solche Karten gar nicht unterstützt werden. Dann nimm ein anderes Programm wie llama.cpp oder Ollama.
Lieber nicht: Erwarte nicht, dass jede Quantisierung auf älteren Karten läuft: Manche Formate (zum Beispiel bestimmte AWQ-Varianten) verlangen ebenfalls Compute Capability 8.0, auch wenn --dtype half gesetzt ist.
Nochmal sauber einrichten
Klappt es danach immer noch nicht, hilft oft eine frische Einrichtung Schritt für Schritt:
- Grafikspeicher erklärt: warum VRAM entscheidet
Wie viel Grafikspeicher braucht lokale KI? Faustregel, Quantisierung (Q4, Q8, fp8), Kontext, Bild- und Videomodelle, Auslagern und welche K…
Begriffe dazu
Ähnliche Fehler
- vLLM: The model's max seq len is larger than the maximum number of tokens that can be stored in KV cache / No available memory for the cache blocks (Kontext passt nicht in den VRAM)
- pip: error: externally-managed-environment (Linux/WSL)
- faster-whisper: Requested float16 compute type, but the target device or backend do not support efficient float16 computation (Rechenformat passt nicht zum Gerät)
- nvidia-smi: command not found in WSL (CUDA in WSL nicht verfügbar – richtig ist nur der Windows-Treiber)
- RuntimeError: CUDA error: an illegal memory access was encountered – die Grafikkarte hat auf ungültigen Speicher zugegriffen
Quellen
- https://github.com/vllm-project/vllm/issues/1284
- https://discuss.ray.io/t/set-dfloat-arg-for-kuberay-vllm-example/15771
- https://forums.developer.nvidia.com/t/ai-chatbot-docker-workflow-guide-issue-container-nemollm-inference-microservice-v100-32gb-x8/331982
- https://github.com/vllm-project/vllm/issues/29707
Geprüft am 28.10.2026. Hat das nicht geholfen? Frag im Forum und nenne Grafikkarte, Programm und die vollständige Meldung.