Reproduce “LlamaF: An Efficient Llama2 Architecture Accelerator on Embedded FPGAs” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Han Xu, Yutong Li, Shihao Ji

Researchers from the University of Illinois at Urbana-Champaign and Georgia State University developed LlamaF, an efficient hardware-software co-design that accelerates Llama2 architecture inference on embedded FPGAs. This accelerator achieves a 14.3x to 15.8x speedup and a 6.1x improvement in power efficiency for TinyLlama 1.1B on a Xilinx ZCU102, with only a 0.57% increase in perplexity due to W8A8 quantization.

Key insights

  • Group-wise W8A8 quantization effectively reduces TinyLlama 1.1B's memory footprint to 1.1GB, enabling deployment on embedded FPGAs with only a 0.57% perplexity increase.
  • Profiling revealed that matrix computations (GQMV) account for over 97% of the total Llama2 inference runtime, highlighting them as the critical bottleneck for FPGA acceleration.
  • Overlapping off-chip memory transfers with FPGA kernel execution through asynchronous scheduling is essential for achieving substantial performance gains (55.6-57.9% improvement) on embedded platforms.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.