paper-with-me

홈 › Papers

COMET: Towards Partical W4A4KV4 LLMs Serving

2024-10-16 · Lian Liu, Haimeng Ren, Long Cheng, Zhaohui Xu, Yudong Pan, Mengdi Wang, Xiaowei Li, Yinhe Han, Ying Wang

Quantization is a widely-used compression technology to reduce the overhead of serving large language models (LLMs) on terminal devices and in cloud data centers. However, prevalent quantization methods, such as 8-bit weight-activation or 4-bit weight-only quantization, achieve limited performance improvements due to poor support for low-precision (e.g., 4-bit) activation. This work, for the first time, realizes practical W4A4KV4 serving for LLMs, fully utilizing the INT4 tensor cores on modern GPUs and reducing the memory bottleneck caused by the KV cache. Specifically, we propose a novel fine-grained mixed-precision quantization algorithm (FMPQ) that compresses most activations into 4-bit with negligible accuracy loss. To support mixed-precision matrix multiplication for W4A4 and W4A8, we develop a highly optimized W4Ax kernel. Our approach introduces a novel mixed-precision data layout to facilitate access and fast dequantization for activation and weight tensors, utilizing the GPU's software pipeline to hide the overhead of data loading and conversion. Additionally, we propose fine-grained streaming multiprocessor (SM) scheduling to achieve load balance across different SMs. We integrate the optimized W4Ax kernel into our inference framework, COMET, and provide efficient management to support popular LLMs such as LLaMA-3-70B. Extensive evaluations demonstrate that, when running LLaMA family models on a single A100-80G-SMX4, COMET achieves a kernel-level speedup of \textbf{$2.88\times$} over cuBLAS and a \textbf{$2.02 \times$} throughput improvement compared to TensorRT-LLM from an end-to-end framework perspective.

📄 PDF Abstract BibTeX arXiv:2410.12168

Code (0)

등록된 구현이 없습니다.

Tasks

QuantizationScheduling

Methods 이 논문이 사용한 방법론

LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

SSA-COMET: Do LLMs Outperform Learned Metrics in Evaluating MT for Under-Resourced African Languages?

2025-06-05 · Senyu Li, Jiayi Wang, Felermino D. M. A. Ali, Colin Cherry 외

Evaluating machine translation (MT) quality for under-resourced African languages remains a significant challenge, as existing metrics often suffer from limited language coverage and poor performance in low-resource sett…

Machine TranslationSentence

Comet: Accelerating Private Inference for Large Language Model by Predicting Activation Sparsity

2025-05-12 · Guang Yan, Yuhui Zhang, Zimu Guo, Lutan Zhao 외

With the growing use of large language models (LLMs) hosted on cloud platforms to offer inference services, privacy concerns about the potential leakage of sensitive information are escalating. Secure multi-party computa…

Language ModelingLanguage ModellingLarge Language Model

CoMet: Metaphor-Driven Covert Communication for Multi-Agent Language Games

2025-05-23 · Shuhang Xu, Fangwei Zhong

Metaphors are a crucial way for humans to express complex or subtle ideas by comparing one concept to another, often from a different domain. However, many large language models (LLMs) struggle to interpret and apply met…

xCOMET: Transparent Machine Translation Evaluation through Fine-grained Error Detection

2023-10-16 · Nuno M. Guerreiro, Ricardo Rei, Daan van Stigt, Luisa Coheur 외

Widely used learned metrics for machine translation evaluation, such as COMET and BLEURT, estimate the quality of a translation hypothesis by providing a single sentence-level score. As such, they offer little insight in…

Machine TranslationSentenceTranslation

CoMeT: Collaborative Memory Transformer for Efficient Long Context Modeling

2026-02-02 · Runsong Zhao, Shilei Liu, Jiwei Tang, Langming Liu 외 arxiv

The quadratic complexity and indefinitely growing key-value (KV) cache of standard Transformers pose a major barrier to long-context processing. To overcome this, we introduce the Collaborative Memory Transformer (CoMeT)…