> ## 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.

# Inkling 2 Mini Architecture and vLLM Integration
- URL: https://www.stirup.si/inkling-2-mini-architecture-and-vllm-integration-227c0cb6/
- Published: 2026-11-20T20:24:21.000Z
- Updated: 2026-11-20T20:24:21.000Z
- Description: The Inkling 2 Mini uses a looped model design with shared weights and separate KV caches for each pass, enhancing efficiency and context handling without increasing parameters.
- Author: Satish Das
- Tags: Self-hosting, News, Stirup Research

## Architecture of Inkling 2 Mini and Looped Model Design

The Inkling 2 Mini is designed as a looped model, where its middle 12 layers execute three times per token using shared weights, with each pass maintaining its own KV cache and incorporating gated messages from the previous pass [vLLM Engineering](https://vllm.ai/blog/2026-11-20-inkling2-mini?ref=stirup.si). This architecture allows for more efficient processing and enhanced context handling without increasing the total number of parameters. The model's layers leverage components from Inkling 2 Small, including block attention residuals, relative-bias attention with a gate and sink, and short convolutions [vLLM Engineering](https://vllm.ai/blog/2026-11-20-inkling2-mini?ref=stirup.si). Additionally, the model includes a 23-layer ViT encoder for image processing, configured similarly to Inkling 2 Small [vLLM Engineering](https://vllm.ai/blog/2026-11-20-inkling2-mini?ref=stirup.si). These design choices reflect a focus on efficiency and performance in both text and image modalities.

## vLLM Integration and Performance Optimization

The integration of the Inkling 2 Mini with vLLM enables day-0 support for a looped model through optimized cache management and kernel reuse. According to [vLLM Engineering](https://vllm.ai/blog/2026-11-20-inkling2-mini?ref=stirup.si), vLLM manages each pass's caches similarly to other cache layers, fusing message reads and controllers while reusing the fused kernels from Inkling 2 Small. [vLLM Engineering](https://vllm.ai/blog/2026-11-20-inkling2-mini?ref=stirup.si) notes that vLLM generalizes these kernels from a hidden size of 4,608 to 2,304 and introduces a mode that returns the FP32 mix before the RMSNorm, allowing later passes to merge messages effectively. As stated in [vLLM Engineering](https://vllm.ai/blog/2026-11-20-inkling2-mini?ref=stirup.si), Inkling 2 Mini utilizes these optimizations across all tensor-parallel sizes, including TP1, and for TP > 1, small batches fuse the all-reduce operation over NVLink multicast. These features collectively enhance performance and scalability in distributed settings.

## Implementation and Deployment with Docker

The implementation and deployment of the Inkling 2 Mini model on vLLM involves leveraging a pre-built Docker image, specifically `vllm/vllm-openai:inkling-2-mini`, as noted in the provided evidence. This image facilitates serving the model with specific configurations, including GPU acceleration, shared cache settings, and speculative decoding parameters. The deployment command includes options such as `--reasoning-parser` and `--tool-call-parser`, which are set to `inkling` to align with the model's architecture. Additionally, the variable-loop research checkpoint can be applied with overrides to configure the number of passes and cache sharing. These settings are managed through the `--hf-overrides` flag, which allows customization of the model's behavior based on the checkpoint's specifications. The flexibility provided by vLLM ensures that users can tailor the deployment to their specific needs, as outlined in the evidence.

## Performance Metrics and KV Cache Management

Performance metrics for the Inkling 2 Mini on vLLM demonstrate efficient handling of the KV cache, particularly with shared cache configurations. On a GB200 (TP1) with a 4K context and forward pass only, the Decode step for batch 1 took 11.51 ms, while batch 32 required 3.81 ms, with a KV cache capacity of 352K tokens. As the batch size increased, the KV cache capacity decreased, with 233K tokens at 22.67 ms and 175K tokens at 33.85 ms. However, sharing the KV cache across passes resulted in 3.86 ms for batch 1 and 8.10 ms for batch 32, with a capacity of 194K tokens. This suggests that shared KV cache usage frees less memory than dropping a pass, as per-pass conv-state caches remain. Accuracy evaluations indicate that vLLM maintains the reference implementation's numerics, including data types, activation quantization, and message merges, with differences in hidden states comparable to those between FlashAttention-4 and PyTorch attention paths in the reference model.

## Accuracy Evaluation and Testing

Accuracy evaluation for the Inkling 2 Mini on vLLM involved testing on multiple benchmarks, including needle-in-a-haystack up to 1M tokens, MMMU-Pro, HLE, and GSM8K, with inkling-verify and DSpark enabled as appropriate. These tests were conducted end to end, as noted in the evaluation process. Fixed-loop checkpoints, such as those used for Inkling 2 Mini, reject certain options during this testing, as indicated by the research team. The collaboration between the Thinking Machines and NVIDIA teams was instrumental in integrating and optimizing the model within the vLLM framework, according to the acknowledgements section.

## Sources and reporting notes

- [vLLM Engineering](https://vllm.ai/blog/2026-11-20-inkling2-mini?ref=stirup.si)

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