LLMIR

Version 0.1.0

Large Language Model IR Compiler Framework

LLMIR Related Publications

LLMIR Publications

ICCD 2025 Submission

LLMIR: A Compiler Infrastructure for Optimizing Large Language Model Inference

  • Author: Xingqiang Chen (Xiamen University & Turingai Inc.)
  • Venue: IEEE/ACM International Conference on Computer-Aided Design (ICCD) 2025
  • Status: Revised version ready for resubmission
  • Repository: github.com/chenxingqiang/llmir

Key Contributions

  1. LLM-Specific MLIR Dialect: Custom types (PagedKVCache, ShardedTensor, QuantizedTensor) capturing LLM semantics
  2. Compiler-Level PagedAttention: First IR-level representation enabling static analysis of dynamic memory patterns
  3. Multi-Stage Compilation Pipeline: Model import → LLM dialect optimization → Code generation → Runtime integration
  4. Comprehensive Optimization Framework: KV cache, multi-precision, parallelization, attention optimizations

Performance Highlights (Revised Paper)

MetricValue
Average Throughput58,499 tokens/sec
Peak Throughput88,250 tokens/sec
vs vLLM+22.4%
vs SGLang+38.1%
vs TensorRT-LLM+4.8%
vs MLC-LLM+25.9%
Attention Speedup1.28× – 2.15×
8-GPU Scaling94.5% efficiency
Memory OptimizationUp to 58.8%

Verification

  • C++ MLIR Dialect: Built with MLIR 18; all 84 unit tests passed
  • A800 GPU Benchmarks: Qwen2.5-7B, PyTorch vs vLLM comparison verified
  • Attention/Cache Algorithms: All paper claims verified in test report

Technical Documents

Contact for Research Collaboration

If you’re interested in collaborating on LLMIR-related research or publications, please contact the project maintainers through our GitHub repository.