Electronics

Runtime-Adaptive FPGA Architecture for Dynamic Language Model Inference in Intelligent Vehicles

Wenxia Jia, Yanyang Wang

Computational

Key points

From the paper's conclusion
  • This work develops a ZCU102-based architecture that redistributes a fixed nominal budget of 2048 DSPs between attention and feed-forward processing through four configurations and a stateful break-even controller.

Abstract

Runtime-adaptive FPGA execution addresses the changing computational demands of in-vehicle language models. This work develops a ZCU102-based architecture that redistributes a fixed nominal budget of 2048 DSPs between attention and feed-forward processing through four configurations and a stateful break-even controller. All four configurations are implemented at 200 MHz using Vivado 2024.2. Board measurements show a 47.52% reduction in attention projection GEMM latency for C3 relative to C0, with a mean complete C0/C3 reconfiguration service time of 6.26 ms in each direction. For SmolLM2-135M-Instruct, analytical modeling predicts a 21.32% compute-only prefill latency reduction at 8192 tokens. Event-driven simulations using twenty independent 1000-request traces per controlled synthetic workload yield mean per-trace latency reductions of 12.82% and 16.35% for Mixed lengths and Long context, respectively, relative to static C0. Using measured transition costs, C0/C3 simulations reduce mean latency by 11.40% and 15.40%, respectively. CPU-based W8A8 operator tests report 1.38–1.77% normalized RMSE and cosine similarity above 0.99984; host-side controller decisions average 5.13 µs.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Runtime-Adaptive FPGA Architecture for Dynamic Language Model Inference in Intelligent Vehicles — Science Skim