Axon DSL Enables Portable, High-Performance LLM Architectures.

Jacob Nielsen, Danial Namazifard, Lukas Galke Poech, Peter Schneider-Kamp· August 21, 2026 View original

Key takeaways

  • Axon is a DSL for "write-once, run-everywhere" LLM architectures.
  • It compiles to PyTorch, JAX, MLX, and vLLM, offering framework-agnostic deployment.
  • Axon provides significant inference speedups across various frameworks.
  • It enhances model portability, efficiency, and reduces deployment lock-in.

Who benefits

AI/TechCloud ComputingResearch & DevelopmentSoftware Development

Summary

This paper introduces Axon, a strongly typed domain-specific language (DSL) that allows "write-once, run-everywhere" implementation of LLM architectures. Axon compiles to standalone implementations for major frameworks like PyTorch, JAX, and MLX, demonstrating significant speedups and enhancing model efficiency and portability.

The current ecosystem for open-source large language models (LLMs) is heavily reliant on a few dominant platforms, creating potential single points of failure and limiting flexibility. Implementing and maintaining efficient model definitions, along with translating them across various training and inference regimes, is a resource-intensive task that hinders both scaling and deployment efforts. To address these challenges, researchers present Axon, a strongly typed domain-specific language (DSL) with a Haskell-like syntax. Axon enables a "write-once, run-everywhere" paradigm for LLM architectures, fostering open collaboration by basing development on a language specification rather than a specific framework's vision. This approach empowers researchers to create highly specialized architectures without sacrificing optimization infrastructure or facing deployment lock-in. Axon allows for concise and auditable specifications that can be automatically compiled into standalone implementations for leading frameworks, including PyTorch, PyTorch with Triton, JAX, MLX, and vLLM. In extensive inference benchmarking experiments involving models from 135M to 32B parameters, Axon demonstrated impressive median speedups: 7% on PyTorch, 12% on PyTorch with Triton, 91% on JAX, and 107% on MLX, compared to reference implementations from the Transformers library. When deployed as native vLLM architectures with PagedAttention and KV-cache, Axon models achieved a 58% median speedup over Transformers implementations.

Why it matters

For AI engineers and researchers, Axon offers a powerful solution to improve the portability, efficiency, and performance of LLM architectures across different frameworks, reducing development overhead and accelerating deployment.

How to implement this in your domain

  1. 1Investigate Axon DSL for defining new LLM architectures or refactoring existing ones for better portability.
  2. 2Experiment with compiling Axon specifications to different target frameworks (PyTorch, JAX, MLX, vLLM).
  3. 3Benchmark the performance of Axon-generated models against your current framework-specific implementations.
  4. 4Train your engineering team on Axon's syntax and best practices for LLM architecture definition.
  5. 5Evaluate Axon's potential to reduce deployment lock-in and streamline multi-framework development.

Original post by Jacob Nielsen, Danial Namazifard, Lukas Galke Poech, Peter Schneider-Kamp

"arXiv:2608.19889v1 Announce Type: new Abstract: The entire ecosystem of open-source language models effectively relies on a single platform. What if this platform was forced to shut down tomorrow? Implementing and maintaining efficient model definitions and translating them betwe…"

View on X

Originally posted by Jacob Nielsen, Danial Namazifard, Lukas Galke Poech, Peter Schneider-Kamp on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses