Precision or Peril: A PoC of Python Code Quality from Quantized Large Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Melin, Eric L., Torek, Adam J., Eisty, Nasir U., Kennington, Casey
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911565263929344
author Melin, Eric L.
Torek, Adam J.
Eisty, Nasir U.
Kennington, Casey
author_facet Melin, Eric L.
Torek, Adam J.
Eisty, Nasir U.
Kennington, Casey
contents Context: Large Language Models (LLMs) like GPT-5 and LLaMA-405b exhibit advanced code generation abilities, but their deployment demands substantial computation resources and energy. Quantization can reduce memory footprint and hardware requirements, yet may degrade code quality. Objective: This study investigates code generation performance of smaller LLMs, examines the effect of quantization, and identifies common code quality issues as a proof of concepts (PoC). Method: Four open-source LLMs are evaluated on Python benchmarks using code similarity metrics, with an analysis on 8-bit and 4-bit quantization, alongside static code quality assessment. Results: While smaller LLMs can generate functional code, benchmark performance is limited. Quantization impacts are variable, and generated code exhibits quality and maintainability concerns. Conclusions: LLM-generated code should be carefully validated before integration into software projects.
format Preprint
id arxiv_https___arxiv_org_abs_2411_10656
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Precision or Peril: A PoC of Python Code Quality from Quantized Large Language Models
Melin, Eric L.
Torek, Adam J.
Eisty, Nasir U.
Kennington, Casey
Software Engineering
Context: Large Language Models (LLMs) like GPT-5 and LLaMA-405b exhibit advanced code generation abilities, but their deployment demands substantial computation resources and energy. Quantization can reduce memory footprint and hardware requirements, yet may degrade code quality. Objective: This study investigates code generation performance of smaller LLMs, examines the effect of quantization, and identifies common code quality issues as a proof of concepts (PoC). Method: Four open-source LLMs are evaluated on Python benchmarks using code similarity metrics, with an analysis on 8-bit and 4-bit quantization, alongside static code quality assessment. Results: While smaller LLMs can generate functional code, benchmark performance is limited. Quantization impacts are variable, and generated code exhibits quality and maintainability concerns. Conclusions: LLM-generated code should be carefully validated before integration into software projects.
title Precision or Peril: A PoC of Python Code Quality from Quantized Large Language Models
topic Software Engineering
url https://arxiv.org/abs/2411.10656