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
- Mustapha Réda Senouci (ORCID: https://orcid.org/0000-0002-0564-1742)
- Badis Djamaa (ORCID: https://orcid.org/0000-0003-2323-9316)
- Toufik Kechaoui
- Mohamed Wassim Ouhab
Institutions
- Polytechnic School of Algiers (DZ)
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