Spaces:
Runtime error
Runtime error
fix: switch to Docker SDK for full build control, llama-cpp-python 0.3.2
Browse files- Dockerfile +32 -0
- README.md +3 -5
- requirements.txt +1 -1
Dockerfile
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
+
|
| 3 |
+
# System deps (cmake for llama-cpp-python compilation if needed)
|
| 4 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 5 |
+
cmake build-essential git git-lfs curl \
|
| 6 |
+
&& rm -rf /var/lib/apt/lists/* \
|
| 7 |
+
&& git lfs install
|
| 8 |
+
|
| 9 |
+
WORKDIR /app
|
| 10 |
+
|
| 11 |
+
# Install Python packages
|
| 12 |
+
# llama-cpp-python: try pre-built wheel first, fall back to source
|
| 13 |
+
RUN pip install --no-cache-dir --upgrade pip && \
|
| 14 |
+
pip install --no-cache-dir \
|
| 15 |
+
"huggingface_hub>=0.23.0" \
|
| 16 |
+
"gradio==4.44.1" \
|
| 17 |
+
"uvicorn>=0.14.0" \
|
| 18 |
+
"fastapi<0.113.0" \
|
| 19 |
+
&& pip install --no-cache-dir \
|
| 20 |
+
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu \
|
| 21 |
+
"llama-cpp-python==0.3.2"
|
| 22 |
+
|
| 23 |
+
# Copy app
|
| 24 |
+
COPY app.py .
|
| 25 |
+
|
| 26 |
+
ENV PYTHONUNBUFFERED=1
|
| 27 |
+
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 28 |
+
ENV GRADIO_SERVER_PORT=7860
|
| 29 |
+
|
| 30 |
+
EXPOSE 7860
|
| 31 |
+
|
| 32 |
+
CMD ["python", "app.py"]
|
README.md
CHANGED
|
@@ -3,9 +3,8 @@ title: ZKAEDI PRIME — Solidity Auditor
|
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
-
sdk:
|
| 7 |
-
|
| 8 |
-
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
| 11 |
hardware: cpu-basic
|
|
@@ -26,5 +25,4 @@ tags:
|
|
| 26 |
|
| 27 |
**Recursively Coupled Hamiltonian Vulnerability Detection**
|
| 28 |
|
| 29 |
-
Model: `zkaedi/gemma-7b-solidity-energy-signatures` (Gemma-7B GGUF Q4_K_M
|
| 30 |
-
Method: ZKAEDI PRIME Hamiltonian energy field analysis
|
|
|
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 7860
|
|
|
|
| 8 |
pinned: false
|
| 9 |
license: mit
|
| 10 |
hardware: cpu-basic
|
|
|
|
| 25 |
|
| 26 |
**Recursively Coupled Hamiltonian Vulnerability Detection**
|
| 27 |
|
| 28 |
+
Model: `zkaedi/gemma-7b-solidity-energy-signatures` (Gemma-7B GGUF Q4_K_M)
|
|
|
requirements.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
# handled by Dockerfile
|