LLM Long Codegen Test

Experiment to evaluate the ability of code-gen LLMs to generate a long continuous (single) output

About This Project

LLM-Long-Codegen-Test is a Python-based evaluation project that measures how well code-generation large language models produce a single long, continuous response. The project uses a demanding prompt asking the model to assist in building an OpenAI Whisper speech-to-text transcription GUI for Linux. Prompts and raw outputs are stored in the repository's data and outputs folders, allowing results to be independently reviewed.

A analysis script computes three metrics for each output: total character count, the proportion of characters inside code fences, and the number of distinct code blocks. The models tested span hosted platforms such as Hugging Face Chat, Open Router, LibreChat, and Google AI Studio, as well as locally run models served through LM Studio. Results are presented in a data table and accompanying charts, and a Streamlit application provides an interactive view of the findings. Reported results include Qwen 2.5 Coder 32B producing the longest single output at 13,950 characters, and OpenAI o1 Preview producing the largest number of unique code blocks at 10.

The project may be useful to developers and researchers choosing a code-generation model for tasks requiring extended, single-pass output, and to those designing benchmarks for long-form generation. It also illustrates how output variance can arise across access interfaces for the same underlying model. The repository is licensed under CC BY 4.0.

Project Details

Categories

Explore More Projects