> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# Optimizing MoE Inference on NVIDIA DGX Spark with FP8 and Humming Backend
- URL: https://www.stirup.si/optimizing-moe-inference-on-nvidia-dgx-spark-with-fp8-and-humming-back-0e62b0d0/
- Published: 2026-10-28T09:53:34.000Z
- Updated: 2026-10-28T09:53:34.000Z
- Description: Optimizations for MoE inference on NVIDIA DGX Spark, including FP8 quantization and the Humming backend, improved decode throughput by 42.5% and reduced latency by 24.5% without affecting accuracy.
- Author: Satish Das
- Tags: Hardware, News, Stirup Research

## Memory-Bound Decoding and Baseline Configuration

In the batch-size-1 evaluation of Ling-3.0-flash from Inclusion AI on NVIDIA DGX Spark, profiling showed that decoding was memory-bound: reading model weights drove execution time. The baseline followed the official cookbook’s W4A8 configuration: FlashInfer MXFP4 MoE kernels, NVIDIA CUTLASS dense GEMM, and the –enable-fp32-lm-head option. Effect of the Humming MoE backend on Ling-3.0-flash inference on NVIDIA DGX Spark, using a synthetic workload with 32K input tokens, 2K output tokens, and batch size 1\. Optimization 2: Online FP8 LM head quantization. In the checkpoint, the LM head is stored in BF16 and listed in modules\_to\_not\_convert, so it is not quantized during loading.

## Optimization Techniques and Their Implementation

Optimizing Mixture-of-Experts (MoE) inference on NVIDIA DGX Spark involves three key techniques. First, dynamic FP8 quantization is applied specifically during the construction of the LM head, as noted in [NVIDIA Developer](https://developer.nvidia.com/blog/3-ways-to-boost-moe-inference-on-nvidia-dgx-spark/?ref=stirup.si). This approach helps reduce memory usage without sacrificing accuracy. Second, when online FP8 LM-head quantization is used alongside MTP, the draft model must share the entire LM-head module with the target, not just the weight tensor, as outlined in [NVIDIA Developer](https://developer.nvidia.com/blog/3-ways-to-boost-moe-inference-on-nvidia-dgx-spark/?ref=stirup.si). This ensures consistency and avoids performance degradation. Third, the cumulative impact of these optimizations was tested on a synthetic workload with 32K input tokens, 2K output tokens, and a batch size of 1, as described in [NVIDIA Developer](https://developer.nvidia.com/blog/3-ways-to-boost-moe-inference-on-nvidia-dgx-spark/?ref=stirup.si). These techniques collectively enhance inference efficiency on NVIDIA DGX Spark, though results may vary based on specific model and workload configurations.

## Performance and Accuracy Impact of Optimizations

Optimizations applied to MoE inference on NVIDIA DGX Spark significantly enhance performance without compromising accuracy. According to [NVIDIA Developer](https://developer.nvidia.com/blog/3-ways-to-boost-moe-inference-on-nvidia-dgx-spark/?ref=stirup.si), across the full GSM8K evaluation, the three optimizations increased decode throughput by 42.5%, reduced mean end-to-end latency by 24.5%, and produced no statistically detectable accuracy change. These improvements were observed in baseline and optimized Ling-3.0-flash inference runs across all 1,319 GSM8K test questions at batch size 1, as noted in [NVIDIA Developer](https://developer.nvidia.com/blog/3-ways-to-boost-moe-inference-on-nvidia-dgx-spark/?ref=stirup.si). Additionally, [NVIDIA Developer](https://developer.nvidia.com/blog/3-ways-to-boost-moe-inference-on-nvidia-dgx-spark/?ref=stirup.si) reports that mean output lengths increased from 567 to 607 tokens, with median output lengths around 310 tokens and P95 output lengths ranging from approximately 1,900 to 2,060 tokens. These results highlight the effectiveness of the optimizations in improving efficiency while maintaining output quality.

## Differences Between Synthetic and Real Workloads

When evaluating MoE inference on NVIDIA DGX Spark, synthetic and real workloads exhibit key differences. According to [NVIDIA Developer](https://developer.nvidia.com/blog/3-ways-to-boost-moe-inference-on-nvidia-dgx-spark/?ref=stirup.si), the synthetic workload had an average output length of 3.90, significantly higher than the 2.68 observed in the GSM8K real dataset. [NVIDIA Developer](https://developer.nvidia.com/blog/3-ways-to-boost-moe-inference-on-nvidia-dgx-spark/?ref=stirup.si) notes that the synthetic test used greedy decoding, whereas the real evaluation applied temperature=0.6, top\_p=0.95, and top\_k=29, reflecting more nuanced sampling strategies. Additionally, [NVIDIA Developer](https://developer.nvidia.com/blog/3-ways-to-boost-moe-inference-on-nvidia-dgx-spark/?ref=stirup.si) highlights that the synthetic workload fixes output at 2K tokens, while the GSM8K median output is approximately 310 tokens. These distinctions suggest that synthetic benchmarks may not fully capture the variability and complexity of real-world tasks, influencing how MoE models are optimized and evaluated.

## Recommendations for Applying Optimizations

When applying optimizations to MoE inference on NVIDIA DGX Spark, it is essential to align the workload with the intended deployment, as noted in evaluations ([NVIDIA Developer](https://developer.nvidia.com/blog/3-ways-to-boost-moe-inference-on-nvidia-dgx-spark/?ref=stirup.si)). A synthetic test reported an 185.1% throughput gain, but this does not guarantee similar improvements across all workloads ([NVIDIA Developer](https://developer.nvidia.com/blog/3-ways-to-boost-moe-inference-on-nvidia-dgx-spark/?ref=stirup.si)). Combining techniques such as Humming and the FP8 LM head with MTP can yield cumulative benefits, as these mechanisms operate independently—reducing the cost per step and the total number of steps, respectively ([NVIDIA Developer](https://developer.nvidia.com/blog/3-ways-to-boost-moe-inference-on-nvidia-dgx-spark/?ref=stirup.si)). To maximize effectiveness, ensure that each optimization is tested in the context of the specific application, and avoid assuming universal performance gains based on isolated results.

## Sources and reporting notes

- [NVIDIA Developer](https://developer.nvidia.com/blog/3-ways-to-boost-moe-inference-on-nvidia-dgx-spark/?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.