1. CUDA Out of Memory (OOM) During Long Context Ingestion
Symptom: Engine crashes with "RuntimeError: CUDA out of memory. Tried to allocate 1.80 GiB"
Root Cause: The KV cache expands with context length and exceeded remaining VRAM headroom on a 12GB GPU.
Resolution Checklist:
- Reduce context window from 128K to 32K or 64K using: --max-context 65536
- Enable FP8 KV cache quantization: --kv-cache-dtype fp8
- Lower VRAM allocation threshold to reserve 1.5GB for Windows DWM: --vram-utilization 0.85