Inkling-2-Mini-GLA-g4-DFly2
auxiliary weights to speed up generation
2 min readupdated
This is a set of auxiliary weights and modules for the thinkingmachines/Inkling-2-Mini language model, created for the Honeycomb ecosystem. The repository includes a special drafter for speculative decoding (a generation acceleration method using preliminary token prediction), KV cache compression components, and quantized weights in the FP8 format (a reduced-precision floating-point format for memory saving). Developed by shisuiki, the model significantly boosts the speed of the base LLM (large language model) without losing quality on long contexts. This release will be useful for developers and engineers working on high-performance inference (the process of running a trained model) of language models on multi-GPU clusters.
Key features
- DFly2-KV Drafter: A 3-layer block-parallel drafter with a zero KV cache (0 B draft KV cache), saving VRAM.
- GLA-g4 Projectors: Calibrated global KV projectors for 2x context compression.
- FP8 Dense Weights: Quantized dense weights (absmax E4M3FN) to reduce GPU resource consumption.
- Compatibility: Full integration with the
Honeycombtool and theinkling-v100utility.
What you can do
- Speed up LLM inference: Run the model alongside the base
Inkling-2-Minifor a boost in text generation speed. - Save VRAM: Use FP8 quantization of dense layers and KV cache compression on a server with four V100 GPUs.
- Test speculative decoding: Apply the combination of
DFly2-KVand global projectors for long prompts.
Example
Example of launching a generation server with FP8 weight support and compressed KV cache via the repository utility:
MODEL_DIR=/path/to/Inkling-2-Mini \
DFLY2_DIR=./Inkling-2-Mini-GLA-g4-DFly2 \
INKLING_FP8_DENSE_PATH=./Inkling-2-Mini-GLA-g4-DFly2/fp8_dense/inkling2_fp8_dense_absmax.safetensors \
packages/inkling-v100/tools/serve_inkling.shRead more
Details• Overall speed boost (T=0.0): from 3.050 to 3.645 on base benchmarks and up to 4.486 on long contexts.
• Hardware requirements: tested on a 4x NVIDIA V100-SXM2-16GB GPU setup.
• Training: trained on an open dataset of 46,815 trajectories from the base model.
• File sizes: the main drafter weighs 641 MB, GLA-g4 projectors take 21 MB, and FP8 weights take 1.14 GB.










Comments