Spaces:
Runtime error
Runtime error
Commit History
-
Switch to Docker SDK with CMAKE_BUILD_PARALLEL_LEVEL=1 to fix OOMKilled build
llama-cpp-python compiles with all CPUs in parallel by default, consuming 12+ GB RAM and OOMKilling the 16 GB HF Spaces build container. A custom Dockerfile lets us set CMAKE_BUILD_PARALLEL_LEVEL=1 (single-threaded cmake) which keeps peak build RAM around 3 GB — well within limits. Build takes ~30 min longer but completes reliably. Also switches base image to python:3.11-slim which is more stable for C++ extension builds. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>2f75245