atakan Claude Sonnet 5 commited on
Commit
84d5d03
·
1 Parent(s): e1f9681

fix: Use a prebuilt CPU wheel for llama-cpp-python, not a source build

Browse files

The first Space rebuild after adding llama-cpp-python failed with
BUILD_ERROR / "Job timeout": pip was compiling llama.cpp's C++ core from
source, which routinely exceeds HF Spaces' build-job time limit. Pointing
at abetlen's prebuilt wheel index resolves directly to a 24MB manylinux2014
x86_64 wheel instead (verified locally with pip download --only-binary),
skipping the compile entirely.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Files changed (1) hide show
  1. requirements.txt +8 -1
requirements.txt CHANGED
@@ -13,7 +13,14 @@ control>=0.9.4
13
  cvxpy>=1.4.0
14
  rich>=13.7.0
15
  rank-bm25>=0.2.2
16
- llama-cpp-python>=0.3.0
 
 
 
 
 
 
 
17
  pypdf>=3.17.0
18
  pymupdf>=1.23.0
19
  scikit-learn>=1.3.0
 
13
  cvxpy>=1.4.0
14
  rich>=13.7.0
15
  rank-bm25>=0.2.2
16
+ # Pulls a prebuilt CPU wheel instead of compiling llama.cpp's C++ core from
17
+ # source -- a source build routinely exceeds HF Spaces' build-job timeout
18
+ # ("Job timeout" BUILD_ERROR, observed directly). This backend is CPU-only by
19
+ # design (see the GGUF branch in orchestrator.py): llama.cpp's raw CUDA calls
20
+ # aren't visible to ZeroGPU's torch-based interception, so a GPU wheel
21
+ # wouldn't get real GPU time here anyway.
22
+ --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
23
+ llama-cpp-python==0.3.35
24
  pypdf>=3.17.0
25
  pymupdf>=1.23.0
26
  scikit-learn>=1.3.0