Locally-deployed Open-source LLMs for Code Generation: Promises and Challenges

This study examines the feasibility of deploying open-source large language models (LLMs) locally for code generation, addressing key concerns related to security, cost efficiency, and operational autonomy. We conduct a rigorous evaluation of six open-source LLMs using the HumanEval benchmark, analyzing their performance across five prompting techniques: Zero-shot, Test-driven, Chain-of-Thought, MapCoder, and LLMDe-bugger. Our results indicate that code-specialized models, when combined with advanced debugging methods, achieve pass@1 accuracy rates of up to 88.02%, rivaling cloud-based solutions while ensuring data sovereignty. Moreover, we explore the trade-offs between model specialization, prompting complexity, and computational overhead, offering practical guidance for organizations considering local LLMs deployment. Our findings affirm that well-configured local LLMs can provide secure and cost-effective alternatives for sensitive software development workflows without compromising performance.

Authors

Institutions

Publication Details

Published
2025-04-23
DOI
https://doi.org/10.1109/pais66004.2025.11126523
Primary Topic
Distributed and Parallel Computing Systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Locally-deployed Open-source LLMs for Code Generation: Promises and Challenges

Mustapha Réda Senouci, Badis Djamaa, Toufik Kechaoui, Mohamed Wassim Ouhab
Distributed and Parallel Computing Systems
article

Locally-deployed Open-source LLMs for Code Generation: Promises and Challenges

Mustapha Réda Senouci, Badis Djamaa, Toufik Kechaoui, Mohamed Wassim Ouhab
article en

Abstract

This study examines the feasibility of deploying open-source large language models (LLMs) locally for code generation, addressing key concerns related to security, cost efficiency, and operational autonomy. We conduct a rigorous evaluation of six open-source LLMs using the HumanEval benchmark, analyzing their performance across five prompting techniques: Zero-shot, Test-driven, Chain-of-Thought, MapCoder, and LLMDe-bugger. Our results indicate that code-specialized models, when combined with advanced debugging methods, achieve pass@1 accuracy rates of up to 88.02%, rivaling cloud-based solutions while ensuring data sovereignty. Moreover, we explore the trade-offs between model specialization, prompting complexity, and computational overhead, offering practical guidance for organizations considering local LLMs deployment. Our findings affirm that well-configured local LLMs can provide secure and cost-effective alternatives for sensitive software development workflows without compromising performance.

Polytechnic School of Algiers (DZ)
Openalex Percentile: Top 75%
Distributed and Parallel Computing Systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.