wall
sow-arith-compare: dual-panel Space chạy song song sow-match (fp32) và sow-ternary (1.58-bit)
8724577 | FROM python:3.12-slim | |
| WORKDIR /app | |
| # CPU-only torch wheel keeps the image small; HF Spaces free tier is CPU-only. | |
| RUN pip install --no-cache-dir torch==2.13.0 --index-url https://download.pytorch.org/whl/cpu | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Both models decode in parallel threads; one intra-op thread each (see app). | |
| ENV OMP_NUM_THREADS=1 | |
| ENV MKL_NUM_THREADS=1 | |
| # HF Spaces expects the app to listen on this port (see README.md app_port). | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["python3", "sow_space_app.py"] | |