Spaces:
Running
Running
Soumik Bose commited on
Commit ·
74b4113
1
Parent(s): c5e3be7
go
Browse files- requirements.txt +0 -19
requirements.txt
CHANGED
|
@@ -5,22 +5,3 @@ fastapi>=0.115.0
|
|
| 5 |
uvicorn>=0.30.0
|
| 6 |
pydantic>=2.8.0
|
| 7 |
huggingface-hub>=0.24.0
|
| 8 |
-
```
|
| 9 |
-
|
| 10 |
-
**Note the underscore vs hyphen**: The package name in the wheel filename uses `llama_cpp_python` (with underscores), not `llama-cpp-python`.
|
| 11 |
-
|
| 12 |
-
If this still gives 404, here's a **bulletproof fallback** - just build it from source but with a timeout workaround:
|
| 13 |
-
|
| 14 |
-
## Alternative: Split the build into pre-requirements
|
| 15 |
-
|
| 16 |
-
Create `packages.txt`:
|
| 17 |
-
```
|
| 18 |
-
build-essential
|
| 19 |
-
cmake
|
| 20 |
-
libopenblas-dev
|
| 21 |
-
```
|
| 22 |
-
|
| 23 |
-
Create `pre-requirements.txt`:
|
| 24 |
-
```
|
| 25 |
-
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
| 26 |
-
llama-cpp-python>=0.2.90
|
|
|
|
| 5 |
uvicorn>=0.30.0
|
| 6 |
pydantic>=2.8.0
|
| 7 |
huggingface-hub>=0.24.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|