paper-with-me

Papers

Evaluating Quantized Large Language Models for Code Generation on Low-Resource Language Benchmarks

2024-10-18 · Enkhbold Nyamsuren

Democratization of AI is an important topic within the broader topic of the digital divide. This issue is relevant to LLMs, which are becoming popular as AI co-pilots but suffer from a lack of accessibility due to high computational demand. In this study, we evaluate whether quantization is a viable approach toward enabling LLMs on generic consumer devices. The study assesses the performance of five quantized code LLMs in Lua code generation tasks. To evaluate the impact of quantization, the models with 7B parameters were tested on a consumer laptop at 2-, 4-, and 8-bit integer precisions and compared to non-quantized code LLMs with 1.3, 2, and 3 billion parameters. Lua is chosen as a low-level resource language to avoid models' biases related to high-resource languages. The results suggest that the models quantized at the 4-bit integer precision offer the best trade-off between performance and model size. These models can be comfortably deployed on an average laptop without a dedicated GPU. The performance significantly drops at the 2-bit integer precision. The models at 8-bit integer precision require more inference time that does not effectively translate to better performance. The 4-bit models with 7 billion parameters also considerably outperform non-quantized models with lower parameter numbers despite having comparable model sizes with respect to storage and memory demand. While quantization indeed increases the accessibility of smaller LLMs with 7 billion parameters, these LLMs demonstrate overall low performance (less than 50\%) on high-precision and low-resource tasks such as Lua code generation. While accessibility is improved, usability is still not at the practical level comparable to foundational LLMs such as GPT-4o or Llama 3.1 405B.

📄 PDF Abstract BibTeX arXiv:2410.14766

Code (1)

E-Nyamsuren/qLMM-Lua-Eval-Pipeline 공식 구현

Tasks

Code GenerationGPUQuantization

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 제목 키워드 기반

Quantization Hurts Reasoning? An Empirical Study on Quantized Reasoning Models

2025-04-07 · Ruikang Liu, Yuxuan Sun, Manyi Zhang, Haoli Bai 외

Recent advancements in reasoning language models have demonstrated remarkable performance in complex tasks, but their extended chain-of-thought reasoning process increases inference overhead. While quantization has been …

MathQuantization

Evaluating Quantized Large Language Models

2024-02-28 · Shiyao Li, Xuefei Ning, Luning Wang, Tengxuan Liu 외

Post-training quantization (PTQ) has emerged as a promising technique to reduce the cost of large language models (LLMs). Specifically, PTQ can effectively mitigate memory consumption and reduce computational overhead in…

MambaQuantization

Quantization Inflates Reasoning: Token Inflation as a Hidden Cost of Low-Bit Reasoning Models

2026-06-24 · Xinyu Lian, Walid Krichene, Beichen Huang, Masahiro Tanaka 외 arxiv

Quantization is widely used to reduce the inference cost of large language models, but its effect on reasoning models is not fully captured by final-answer accuracy or per-token latency. We show that low-bit post-trainin…

Mathematical ReasoningQuestion AnsweringCode Generation

Vector-Quantized Prompt Learning for Paraphrase Generation

2023-11-25 · Haotian Luo, Yixin Liu, Peidong Liu, Xianggen Liu

Deep generative modeling of natural languages has achieved many successes, such as producing fluent sentences and translating from one language into another. However, the development of generative modeling techniques for…

DiversityParaphrase GenerationPrompt Learning

QIGen: Generating Efficient Kernels for Quantized Inference on Large Language Models

2023-07-07 · Tommaso Pegolotti, Elias Frantar, Dan Alistarh, Markus Püschel

We present ongoing work on a new automatic code generation approach for supporting quantized generative inference on LLMs such as LLaMA or OPT on off-the-shelf CPUs. Our approach is informed by the target architecture an…

Code GenerationCPU