Files
sglang/docs/references/troubleshooting.md

15 lines
860 B
Markdown
Raw Normal View History

2024-08-01 00:05:26 -07:00
# Troubleshooting
This page lists some common errors and tips for fixing them.
2024-11-02 13:26:32 -07:00
## CUDA out of memory
If you see out of memory (OOM) errors, you can try to tune the following parameters.
2024-11-07 18:20:41 -08:00
- If OOM happens during prefill, try to decrease `--chunked-prefill-size` to `4096` or `2048`.
- If OOM happens during decoding, try to decrease `--max-running-requests`.
- You can also try to decrease `--mem-fraction-static`, which reduces the memory usage of the KV cache memory pool and helps both prefill and decoding.
2024-11-02 13:26:32 -07:00
2024-08-01 00:05:26 -07:00
## CUDA error: an illegal memory access was encountered
This error may be due to kernel errors or out-of-memory issues.
2024-11-02 13:26:32 -07:00
- If it is a kernel error, it is not easy to fix. Please file an issue on the GitHub.
2024-11-16 03:09:10 +08:00
- If it is out-of-memory, sometimes it will report this error instead of "Out-of-memory." Please refer to the above section to avoid the OOM.