Optimizing Inkling 2 Mini on NVIDIA GB10 with vLLM

Optimizing Inkling 2 Mini on an NVIDIA GB10 chip within the vLLM framework requires a targeted approach to kernel configuration, speculative decoding, and memory management. By refining the request path and applying specific patches, it is possible to achieve 101 tok/s for single requests and 195.7 tok/s in aggregate for four concurrent requests, all while keeping the model's 131,072-token context intact.

Performance Tuning Strategy

The optimization process focused on five key areas of the inference request path:

  1. Compilation Stalls: By rounding max_ctas values to powers of two, the system reduced the number of unique kernel variants, cutting compilation stalls on new prompt lengths by 67% to 90%.
  2. Drafting Efficiency: Adding INT8 copies of the DFlash2 draft model weights and utilizing specialized matrix-vector kernels reduced drafting overhead, yielding a 4.3% to 4.9% throughput increase.
  3. Probabilistic Drafting: Switching from greedy to probabilistic drafting allowed the rejection sampler to better utilize the draft model's confidence, resulting in a 14% to 20% speedup for sampled requests.
  4. Adaptive Verify Width: By dynamically marking low-confidence rows as padding, the system skips unnecessary expert computations during the verify phase. This provided a 5.2% to 5.4% gain in throughput.
  5. Prefill GEMM Tuning: Adjusting the launch configuration for expert GEMMs—specifically using wider blocks with smaller steps—reduced the time to the first token for a 32K prompt from 12.2 seconds to 9.7 seconds.

Implementation and Reproducibility

The configuration uses vLLM's inkling-2-mini container image, augmented with read-only overlays that apply the necessary patches. The setup maintains a strict memory budget, allocating 36% of the GB10's memory to Inkling 2 Mini, which allows for concurrent operation alongside other models like Qwen3.8-27B.

Key environment variables used for the deployment include:

  • AILAB_DFLASH2_Q8=1: Enables INT8 draft copies.
  • AILAB_B=1: Enables adaptive verify width.
  • AILAB_B_THETA0=0.3: Sets the verify threshold for temperature 0.
  • AILAB_B_THETA1=0.1: Sets the verify threshold for sampled requests.

Community Perspectives

While throughput benchmarks are a primary focus, users in the community have raised questions regarding the model's qualitative performance and alternative deployment paths. Some users noted that Inkling 2 Mini can exhibit "lazy" behavior in conversational contexts, while others are exploring different inference engines:

"I don't care much for tok/s ratings if the output is crap and I haven't had really good results from Inkling 2 Mini vs most of the other models in the same weight class." — jacquesm

Alternative implementations are also being tracked for various hardware, including:

  • llama.cpp: Community members are working on patches to improve support and performance.
  • Loom: A reported option for running the model on AMD hardware.
  • oMlx: Noted for its performance on Mac hardware.

The current results demonstrate that significant performance headroom exists on the GB10 architecture through manual kernel tuning and strategic modification of the vLLM request path, even when constrained by shared memory environments.

Sources