Abstract
Large language models (LLMs) have shown outstanding capabilities across complex language tasks, but come with massive computational cost and memory footprint. LLM post-training quantizers such as AWQ, SmoothQuant, and QoQ have demonstrated excellent performance under specific configurations, for example, W4A16 (four-bit weight and sixteen-bit activation) and W8A8 (eight-bit weight and eight-bit activation). However, leveraging these quantizers in a mixed-precision problem is a nontrivial task due to the colossal design space and prolonged inference time in LLMs. To address this problem, this work presents UDP (Up-or-Down Precision), a quantizer-agnostic mixed-precision framework that restricts each layer to a low/high precision pair and selects which layers to promote under deployment-driven memory/latency budgets. UDP uses KLD-guided profiling to seed high-quality candidates and a budget-aware genetic search to optimize the layer promotion set. Across Llama and Mistral models and three PTQ backends (AWQ, SmoothQuant, QoQ), UDP improvesWikiText-2 perplexity by up to 0.69 over uniform low-bit baselines at the same low-precision setting and outperforms strong mixed-precision heuristics (FlattenQuant, QFeM, AsymKV) by up to 0.11 under identical budgets. In OmniServe on Llama-2-7B (1024/512 tokens), UDP preserves throughput (≤0.5% vs. W4A8) while reducing p95 time-to-first-token by ≈60 ms and using ≈10% less GPU memory than W8A8. These results show UDP produces practical mixed-precision policies aligned with real serving constraints.
Funding Information
  • Moreh and Van-Lang Institute of Semiconductor Technology