mikemao27/KINETIC

KV-Informed Neural Inference and Token-Skipping Execution Core (KINETIC) for diffusion-based large-language model wall-clock speedups. The baseline model used is NVIDIA's Fast-dLLM v2.

1

stars

12

commits

JSON

primary language

Sep 1, 2026

updated

diffusion
kernel
kv-cache
speedup
token-skipping

README

KINETIC: KV-Informed Neural Inference and Token-Skipping Execution Core

Kernel Core License

A Triton-native inference kernel that bounds prefix KV attention to a fixed top-K block budget for masked diffusion language models, without touching model weights or accuracy.

KINETIC is a project developing a custom Triton kernel for KV cache block eviction and block-sparse attention, targeting inference speedups for Fast-dLLM v2, a masked diffusion language model that generates text block-by-block rather than token-by-token. The aim is to bound prefix attention cost to a fixed top-K block budget instead of letting it grow linearly with sequence length, without sacrificing the accuracy of the underlying model. Runtime wall-clock speedups on Fast-dLLM v2 and GSM8K should lie around the 1.3-1.4x range. Accuracy levels should also remain similar to the baseline accuracy at 70-80% (with 80% being slightly higher than the baseline).

[!IMPORTANT] This kernel modifies the model's attention computation and KV cache handling. Any change to the eviction scheduler, block scoring, or sparse kernel path should be checked against the no-op correctness gate (kernel/test_eviction.py --mode noop) before being trusted on a real accuracy sweep.

Further Exploration

This project builds directly on Fast-dLLM v2 and draws on established KV-cache eviction techniques from H2O and StreamingLLM-style attention-sink retention. The kernel/ directory contains the eviction scheduler, the Triton sparse-attention kernel, and the benchmarking/test harnesses used to validate both correctness and speedup. The model/ directory vendors the unmodified upstream Fast-dLLM v2 release that the kernel targets.

Contacts

Feel free to reach out with questions or collaboration ideas.

Citation

If you find this project useful, please give it a star and cite it via GitHub. See LICENSE.txt (Apache 2.0) for terms of use and attribution.

@software{KINETIC,
  author = {Mao, Mike},
  title = {KINETIC: KV-Informed Neural Inference and Token-Skipping Execution Core},
  year = {2026},
  url = {https://github.com/mikemao27/KINETIC},
  version = {1.0.0}
}

Contributors

mikemao27

12 commits

mikemao27/KINETIC

KV-Informed Neural Inference and Token-Skipping Execution Core (KINETIC) for diffusion-based large-language model wall-clock speedups. The baseline model used is NVIDIA's Fast-dLLM v2.

1

stars

12

commits

JSON

primary language

Sep 1, 2026

updated

diffusion
kernel
kv-cache
speedup
token-skipping

README

KINETIC: KV-Informed Neural Inference and Token-Skipping Execution Core

Kernel Core License

A Triton-native inference kernel that bounds prefix KV attention to a fixed top-K block budget for masked diffusion language models, without touching model weights or accuracy.

KINETIC is a project developing a custom Triton kernel for KV cache block eviction and block-sparse attention, targeting inference speedups for Fast-dLLM v2, a masked diffusion language model that generates text block-by-block rather than token-by-token. The aim is to bound prefix attention cost to a fixed top-K block budget instead of letting it grow linearly with sequence length, without sacrificing the accuracy of the underlying model. Runtime wall-clock speedups on Fast-dLLM v2 and GSM8K should lie around the 1.3-1.4x range. Accuracy levels should also remain similar to the baseline accuracy at 70-80% (with 80% being slightly higher than the baseline).

[!IMPORTANT] This kernel modifies the model's attention computation and KV cache handling. Any change to the eviction scheduler, block scoring, or sparse kernel path should be checked against the no-op correctness gate (kernel/test_eviction.py --mode noop) before being trusted on a real accuracy sweep.

Further Exploration

This project builds directly on Fast-dLLM v2 and draws on established KV-cache eviction techniques from H2O and StreamingLLM-style attention-sink retention. The kernel/ directory contains the eviction scheduler, the Triton sparse-attention kernel, and the benchmarking/test harnesses used to validate both correctness and speedup. The model/ directory vendors the unmodified upstream Fast-dLLM v2 release that the kernel targets.

Contacts

Feel free to reach out with questions or collaboration ideas.

Citation

If you find this project useful, please give it a star and cite it via GitHub. See LICENSE.txt (Apache 2.0) for terms of use and attribution.

@software{KINETIC,
  author = {Mao, Mike},
  title = {KINETIC: KV-Informed Neural Inference and Token-Skipping Execution Core},
  year = {2026},
  url = {https://github.com/mikemao27/KINETIC},
  version = {1.0.0}
}

Contributors

mikemao27

12 commits

Languages

JSON

98.6%

Python

1.3%