h3-blackwell-runtime/Dockerfile.spark

39 lines
1.6 KiB
Text
Raw Normal View History

2026-08-12 14:12:42 +07:00
# GB10/Grace Blackwell development image. It does not start inference by default.
FROM ghcr.io/aeon-7/comfyui-aeon-spark:slim
2026-08-14 21:04:32 +07:00
ARG SOL_ATTN_COMMIT=930a4d6e432ff8b8ed5e30ff2f72519b92d69bdf
2026-08-12 14:12:42 +07:00
WORKDIR /opt/h3-blackwell-runtime
COPY . .
2026-08-12 15:21:03 +07:00
# Prebuilt against the base image's CUDA 13 / Torch ABI for GB10 (sm_121a).
COPY wheels/sageattn3-*.whl /tmp/wheels/
RUN python -m pip install --no-cache-dir --no-deps /tmp/wheels/sageattn3-*.whl \
&& rm -rf /tmp/wheels
2026-08-12 14:12:42 +07:00
2026-08-20 17:39:44 +07:00
RUN python -m pip install --no-cache-dir --no-deps comfy-kitchen==0.2.31
2026-08-13 14:38:17 +07:00
2026-08-13 23:35:01 +07:00
RUN python -m pip install --no-cache-dir "fastsafetensors>=0.1.10"
# Official CuTeDSL FlashAttention-4 beta with CUDA 13 Blackwell support.
RUN python -m pip install --no-cache-dir --pre \
"flash-attn-4[cu13]==4.0.0b27" \
"nvidia-cutlass-dsl[cu13]==4.6.2" \
"quack-kernels==0.6.4"
2026-08-14 21:04:32 +07:00
RUN python -m pip uninstall -y pynvml \
&& python -m pip install --no-cache-dir nvidia-ml-py
RUN git clone https://github.com/Saganaki22/ComfyUI-sol-attn.git /opt/ComfyUI-sol-attn \
&& cd /opt/ComfyUI-sol-attn \
&& git checkout ${SOL_ATTN_COMMIT}
2026-08-12 14:12:42 +07:00
RUN python -m pip install --no-cache-dir --no-deps -e . \
2026-08-20 17:39:44 +07:00
&& python -c "import comfy_kitchen, torch; from sageattn3 import sageattn3_blackwell; assert hasattr(torch.ops.comfy_kitchen, 'rms_rope_split_half_'); assert hasattr(comfy_kitchen, 'int8_attention'); assert hasattr(comfy_kitchen, 'int8_attention_is_available'); print(torch.__version__, torch.version.cuda)"
2026-08-12 14:12:42 +07:00
ENV H3_MODEL_PATH=/models/minimax_h3_ref2va_pruned_nvfp4.safetensors
2026-08-14 21:04:32 +07:00
ENV PYTHONPATH=/opt/ComfyUI-sol-attn
2026-08-12 14:12:42 +07:00
ENV TORCH_COMPILE_DISABLE=0 TORCHDYNAMO_DISABLE=0
ENTRYPOINT []
CMD ["bash"]