MiaAI-Lab/DeepSeek-v4-Flash-DSpark-2x-DGX-Spark

DeepSeek-v4-Flash 0731 recipe for 2x DGX Sparks

What it solves

This project provides a specialized deployment recipe for running the DeepSeek-V4-Flash-Vision-Exp model on a two-node NVIDIA DGX Spark cluster. It addresses the complexity of configuring high-performance inference, specifically enabling 1-million-token context support, native image input handling, and speculative decoding using the DSpark runtime.

How it works

The project uses a Docker-based environment (Anemll runtime) to manage model weights, NCCL networking for multi-node communication, and vLLM for inference. It includes a set of scripts to prepare model caches, configure environment variables for cluster networking (RoCE/NCCL), and apply specific performance hotfixes (such as KV cache management and prefill chunking) to maintain stability under heavy, long-context workloads.

Who it’s for

This is intended for infrastructure engineers and AI researchers operating multi-node DGX Spark hardware who need to deploy large-scale vision-language models with extreme context windows. It is designed for users comfortable with Linux, Docker, and low-level cluster networking configuration.

Highlights

  • Supports a 1-million-token context ceiling for long-form reasoning and analysis.
  • Includes native image support (via ViT and Aligner) for OpenAI-compatible image_url inputs.
  • Implements speculative decoding (DSpark) to improve inference throughput.
  • Provides automated performance hotfixes for memory management, scheduling, and long-context stability.
  • Supports multi-node scaling with options for NFS-based weight sharing to optimize storage across cluster nodes.

Related

  • Project
  • Project
  • Project
  • Project
  • Project