blueface35 commited on
Commit
1384a0d
·
verified ·
1 Parent(s): 0da8016

Upload 2 files

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -8
Dockerfile CHANGED
@@ -1,10 +1,12 @@
1
  FROM python:3.11-slim
2
 
3
  ENV CEREBRO_ID=F
 
4
  ENV MODEL_PATH="/models/DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf"
5
  ENV PORT=7860
 
 
6
  ENV KILL_THRESHOLD=0.82
7
- ENV KILL_THRESHOLD_SCALP=0.75
8
  ENV HOLD_THRESHOLD=0.18
9
  ENV ADX_FLAT=20
10
  ENV BB_SQUEEZE=0.02
@@ -24,22 +26,18 @@ RUN pip install --no-cache-dir --upgrade pip && \
24
  huggingface_hub \
25
  httpx
26
 
27
- # ── llama-cpp-python: wheel precompilado CPU (NO compila desde source) ────────
28
  RUN pip install --no-cache-dir \
29
  --prefer-binary \
30
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu \
31
  llama-cpp-python
32
 
33
- # ── Modelo: unsloth garantiza GGUF v2 compatible con cualquier versión ─────────
34
  RUN mkdir -p /models && \
35
- huggingface-cli download unsloth/DeepSeek-R1-Distill-Qwen-1.5B-GGUF \
36
  DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf \
37
- --local-dir /models && \
38
- echo "[F] ✅ Modelo OK: $(du -h /models/DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf | cut -f1)"
39
 
40
  COPY server_F.py server_F.py
41
 
42
  EXPOSE 7860
43
- HEALTHCHECK --interval=30s --timeout=10s --start-period=120s --retries=3 \
44
- CMD curl -f http://localhost:7860/health || exit 1
45
  CMD ["uvicorn", "server_F:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
 
1
  FROM python:3.11-slim
2
 
3
  ENV CEREBRO_ID=F
4
+ ENV CEREBRO_ROLE="The Liquidator v2.0 — OrderFlow Engine"
5
  ENV MODEL_PATH="/models/DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf"
6
  ENV PORT=7860
7
+
8
+ # Umbrales configurables desde HF Space Settings
9
  ENV KILL_THRESHOLD=0.82
 
10
  ENV HOLD_THRESHOLD=0.18
11
  ENV ADX_FLAT=20
12
  ENV BB_SQUEEZE=0.02
 
26
  huggingface_hub \
27
  httpx
28
 
 
29
  RUN pip install --no-cache-dir \
30
  --prefer-binary \
31
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu \
32
  llama-cpp-python
33
 
 
34
  RUN mkdir -p /models && \
35
+ hf download unsloth/DeepSeek-R1-Distill-Qwen-1.5B-GGUF \
36
  DeepSeek-R1-Distill-Qwen-1.5B-Q4_K_M.gguf \
37
+ --local-dir /models
 
38
 
39
  COPY server_F.py server_F.py
40
 
41
  EXPOSE 7860
42
+
 
43
  CMD ["uvicorn", "server_F:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]