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 deployment recipe and optimized runtime for running the DeepSeek-V4-Flash-Vision-Exp model on a cluster of two (or three) NVIDIA DGX Spark nodes. It specifically addresses the challenges of managing massive context windows (up to 1 million tokens), optimizing throughput via speculative decoding, and enabling native image support on the Anemll runtime.

How it works

The system utilizes vLLM with Tensor Parallelism (TP=2) and DSpark speculative decoding to accelerate inference. It employs a specialized KV cache (nvfp4_ds_mla) to handle the 1M-token ceiling. The deployment is containerized using Docker and can be configured to either duplicate model weights on each node or mount them from a head node via NFSv4 over a ConnectX link to save storage.

Who it’s for

It is designed for operators and researchers who have access to DGX Spark hardware and want to deploy DeepSeek's Flash Vision model with high throughput, long-context capabilities, and image processing functionality.

Highlights

  • Massive Context: Supports a context ceiling of 1,048,576 tokens.
  • Speculative Decoding: Uses DSpark to increase generation speed.
  • Native Vision Support: Includes a startup hotfix for the Anemll runtime to support images via OpenAI-compatible image_url and <image> tags.
  • Flexible Weight Management: Supports both local weight caching on worker nodes and NFS-based mounting from the head node.
  • Abliteration Support: Optional runtime refusal-direction projection to modify model behavior.
  • Optimized Throughput: Capable of reaching ~160–190 aggregate tokens per second across multiple concurrent streams.

Related

  • Project
  • Project
  • Dispatch
  • Project
  • Project