Dockerfile 1.4 KB

1234567891011121314151617181920212223242526
  1. # syntax=docker/dockerfile:1.7
  2. # DeepSeek-V4-Flash-DSpark — instanttensor on top of
  3. # aidendle94/sparkrun-vllm-ds4-gb10:production-3.75
  4. #
  5. # production-3.75 already ships the patched NCCL 2.30.4 ABI (its base layers
  6. # are byte-identical to production-3.2, which is labeled "patched NCCL
  7. # 2.30.4"), so no NCCL re-alignment is needed. This overlay only adds
  8. # instanttensor for faster model loading (load-format instanttensor).
  9. #
  10. # Build: cd docker-images/deepseek-v4-flash-dspark && docker build -t sparkrun-vllm-ds4-gb10:fixed .
  11. # Tag: docker tag sparkrun-vllm-ds4-gb10:fixed aidendle94/sparkrun-vllm-ds4-gb10:production-3.75
  12. FROM aidendle94/sparkrun-vllm-ds4-gb10:production-3.75
  13. RUN pip install --no-cache-dir --no-deps --force-reinstall instanttensor==0.1.9
  14. # Fix reasoning_effort handling in the vendored deepseek_v4 tokenizer:
  15. # - high was accepted but silently injected nothing (only max triggered text)
  16. # - low / unknown values were coerced to high (unreachable low, silent escalation)
  17. # - only a single REASONING_EFFORT_MAX wording existed (max used the "high" text)
  18. # Replaces the single constant with a low/high/max dict using the full model-card
  19. # wording and injects for both high and max. See deepseek_v4_encoding.py gate.
  20. # (Mirrors the local-inference-lab encoding_dsv4.py reference implementation.)
  21. COPY patches/deepseek_v4.py \
  22. patches/deepseek_v4_encoding.py \
  23. /opt/venv/lib/python3.12/site-packages/vllm/tokenizers/