mlsanityData to 14 Oct 2026

An MLIR-Based Compilation Method for Large Language Models

arXiv 2607.15865 ↗First posted 17 Jul 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have become the dominant workload on modern AI accelerators, yet deploying them on specialized hardware still faces two core challenges: how to import a trained model into a compiler-friendly intermediate representation, and how to efficiently schedule the autoregressive inference loop under limited on-chip memory. This paper presents an MLIR (Multi-Level Intermediate Representation) based compilation method for large language models, illustrated using two dialects of operators, TopOp and TpuOp. TopOp serves as a high-level graph dialect that is independent of both the source framework and the target chip, and is responsible for expressing model semantics; TpuOp serves as the target hardware dialect, carrying chip-related decisions such as quantization, layer groups, and memory layout. A model is first represented as TopOp, then lowered layer by layer to TpuOp, and finally a deployable binary is generated. In addition, each Transformer layer is split into three stages for static compilation: prefill, prefill_kv (prefill with historical key-value cache), and decode, so as to accommodate the different computational characteristics of prompt-parallel processing and per-token generation. The method has been implemented in the TPU-MLIR compiler {https://github.com/sophgo/tpu-mlir} and the LLM-TPU deployment project {https://github.com/sophgo/LLM-TPU}, supporting a variety of generative models including the Qwen, Llama, InternVL, and MiniCPM-V series, as well as multiple quantization and deployment forms such as GPTQ, AWQ, and AutoRound.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 4 of its 12 references that are in the map. First posted on arXiv 17 Jul 2026.

Builds on

4 of 12 references.

References · 4

  1. 2017Attention Is All You Needcited by 60,361
  2. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  3. 2020MLIR: A Compiler Infrastructure for the End of Moore's Lawcited by 65
  4. 2022TPU-MLIR: A Compiler For TPU Using MLIRcited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Highly Optimized Kernels and Fine-Grained Codebooks for LLM Inference on Arm CPUs
  2. 2023Efficient LLM Inference on CPUs
  3. 2026AI Hardware Accelerators for Large Language Models: Architectures and the Memory Wall ↗
  4. 2025REASONING COMPILER: LLM-Guided Optimizations for Efficient Model Serving
  5. 2025Accelerating Large Language Model Inference via Early-Exiting Algorithms
  6. 2024A Comprehensive Study on Quantization Techniques for Large Language Models
  7. 2025Reimagining Memory Access for LLM Inference: Compression-Aware Memory Controller Design
  8. 2025AxLLM: accelerator architecture for large language models with computation reuse capability