Spaces:
Sleeping
Sleeping
File size: 1,296 Bytes
c41af55 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | version: "3.9"
# โโ Local development / testing compose file โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# For HuggingFace Spaces deployment, only the Dockerfile is needed.
#
# Usage:
# docker compose build
# HF_TOKEN=hf_xxx docker compose up
services:
converter:
build: .
image: dsmath-gguf-converter:latest
container_name: dsmath-convert
# Mount a local directory as the workspace so artefacts persist
volumes:
- ./workspace:/workspace
environment:
# Set your HF token here or export it in your shell
- HF_TOKEN=${HF_TOKEN:-}
# Skip flags โ useful when resuming a partial run
- SKIP_DOWNLOAD=${SKIP_DOWNLOAD:-0}
- SKIP_FP8_CAST=${SKIP_FP8_CAST:-0}
- SKIP_GGUF_CONVERT=${SKIP_GGUF_CONVERT:-0}
# Override paths if needed
- FP8_DIR=/workspace/model-fp8
- BF16_DIR=/workspace/model-bf16
- GGUF_BF16=/workspace/model-gguf/model-bf16.gguf
- GGUF_Q8=/workspace/output/deepseek-math-v2-q8_0.gguf
- LLAMA_CPP_DIR=/opt/llama.cpp
# The main conversion pipeline
command: bash /workspace/scripts/convert.sh
# Resource hints (adjust to your machine)
deploy:
resources:
limits:
memory: 800g
|