zkaedi commited on
Commit
8ffb198
·
verified ·
1 Parent(s): 5410338

fix: switch to Docker SDK for full build control, llama-cpp-python 0.3.2

Browse files
Files changed (3) hide show
  1. Dockerfile +32 -0
  2. README.md +3 -5
  3. 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: gradio
7
- sdk_version: 4.44.1
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, ~5.3 GB)
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
- https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.2/llama_cpp_python-0.3.2-cp312-cp312-linux_x86_64.whl
 
1
+ # handled by Dockerfile