Open-Source LLM Code Generation: Hands-On Testing and a Selection Guide

    This hands-on evaluation tests open-source code-generation models for real front-end work, using Qwen2.5-Coder-7B-Instruct running locally through Ollama and driven from VS Code with Continue. Across three page types—login, product list, and order form—it shows which tasks are close to engineering-ready, which ones fail, and how much human rework each requires. You will find a reproducible test setup, acceptance criteria, code examples for the most common fixes, generation-time measurements, and an evaluation checklist for deciding whether and how to bring open-source models into a team workflow.

    1. Bottom Line First: What You Can Delegate and What Needs Human Review

    Open-source code models can now handle a meaningful share of front-end development, but you should not assume they can generate every page end to end. Based on a real project test, the stable conclusion is:

    • Tasks with clear structure and mature patterns—login pages, detail pages, simple list pages—can be delegated to the model to a large degree.
    • Tasks dense with business rules—complex forms, order flows, access control, cross-component coordination, dynamic validation—must be reviewed and completed by a human.

    This test used Qwen2.5-Coder, a local Ollama deployment, and VS Code + Continue, focusing on React code generation across three page types: login, product list, and order form. Overall, the model produces page skeletons quickly and its boilerplate is highly reusable, but it still falls short on filter coordination, state synchronization, dynamic validation, and edge-case handling. The key to putting an open-source code model into a team workflow is not a single impressive generation, but building an engineering process around it: recording the environment, tiering tasks, keeping a human safety net, and evaluating continuously.

    2. Testing Method: Define the Environment and Acceptance Criteria First

    To keep results verifiable, this test recorded the environment, parameters, and acceptance criteria explicitly.

    Model and Runtime Environment

    • Model under test: Qwen2.5-Coder-7B-Instruct.
    • Model size: 7B parameters, Instruct version.
    • Quantization: GGUF Q4_K_M, suitable for a local consumer-grade GPU.
    • Deployment: loaded locally with Ollama; no cloud API was used.
    • Inference environment: Ollama 0.3.12.
    • Editor extension: VS Code + Continue; Continue version tested was 1.0.13.
    • Continue model configuration: local Ollama address 127.0.0.1:11434, model name qwen2.5-coder:7b-instruct-q4_K_M, temperature set to 0.1, max tokens set to 4096.
    • Hardware: AMD Ryzen 7 5800X CPU, NVIDIA GeForce RTX 4060 Ti 8GB GPU, 32GB DDR4 memory, NVMe SSD.
    • Browser: Chrome.
    • Runtime: Node.js 20.

    Hardware and quantization parameters are recorded here because the output of an open-source code model depends on more than the model name—it also depends on quantization, VRAM size, context length, inference parameters, and the toolchain used to call it. If a team changes the GPU, memory, Ollama version, or Continue version, both generation time and quality can shift.

    How Requirements Were Provided

    This test did not use a one-sentence prompt. It used a structured requirements document with a five-part template:

    1. Page structure: which regions, components, and hierarchy the page contains.
    2. Field definitions: field name, type, default value, and whether it is required.
    3. Interaction logic: click, navigation, filtering, refresh, dialogs, and other behaviors.
    4. Validation rules: required fields, format, boundaries, linkage, and error messages.
    5. Acceptance path: the concrete steps from opening the page to completing the task.

    The requirements document was about 3,200 words, covering the login page, product list page, and order form page, roughly 12 components in total. The model could choose its own tech stack; the actual generated result used React 18 + TypeScript + Vite 5.

    Acceptance Criteria

    Acceptance did not just check whether the code “ran.” It evaluated five things:

    • Whether the project starts successfully.
    • Whether the pages can be accessed.
    • Whether core paths (login, list, form) work.
    • Whether there are obvious compile errors or type errors.
    • Whether key logic needs to be completed by hand.

    FAQ

    1. How do you choose an open-source code-generation model?
      Prioritize models that perform reliably on structured pages, forms, and lists. Also weigh private deployment support, fit with your existing toolchain, and a clear license.

    2. What should you watch when deploying Qwen2.5-Coder locally?
      Pay attention to VRAM, quantization format, Ollama version, Continue configuration, context length, and output stability. Local deployment is not zero-cost—hardware and debugging time both count.

    3. What are the common errors?
      Missing filter options, incomplete field mapping, validation rules that only fire on submit, pagination state not resetting, missing cross-component linkage, and weak understanding of complex business rules.

    3. Login Page: Structured Tasks Are Near Engineering-Ready

    The login page has the most standard structure and the clearest logic. In this test, the model reproduced the carousel, form inputs, and basic interactions fairly completely. Overall it was “usable after minor edits.”

    Verifiable results:

    Requirement Expected behavior Actual output Pass
    Carousel Auto-advance with indicator dots Auto-advance implemented with state and a timer Pass
    Form inputs Username, password, error message Inputs and required-field validation both work Pass
    Basic interaction Clicking login navigates to the list page Route navigation works Pass

    Core logic excerpt (when using it, import the corresponding dependencies from React and React Router):

    1. import { useState } from 'react';
    2. import { useNavigate } from 'react-router-dom';
    3. const navigate = useNavigate();
    4. const [username, setUsername] = useState('');
    5. const [password, setPassword] = useState('');
    6. const [error, setError] = useState('');
    7. const handleLogin = () => {
    8. if (!username || !password) {
    9. setError('Username and password cannot be empty');
    10. return;
    11. }
    12. navigate('/products');
    13. };

    There were no obvious feature gaps on the login page; rework centered on styling details, copy, and brand visuals. For tasks with a mature structure and simple interactions, open-source models already offer high usability. But once you add captchas, session persistence, token refresh, exception messages, or third-party login, a developer still has to fill in that logic explicitly.

    4. List Page: Missing Filters and State Desync Are the Main Rework Points

    The product list page is where problems start to show. The requirements document called for three filters—brand, price range, and stock status—with combined filtering, live refresh, and a reset to page one after filtering.

    The generated result had a complete page skeleton, and brand and price-range filters were mostly present, but the stock-status filter was missing. More seriously, several filters were out of sync:

    • Brand filtering worked, but changing the price range did not re-filter the list.
    • After the result set changed, pagination kept the original page number, so users could land on an empty page or see wrong data.
    • Combined filters did not share a single state; the model kept only some of the filter conditions.
    • The required “return to the first page after filtering” behavior was not implemented.

    This shows that while the model is fairly mature at reproducing page structure, it still has limited understanding of cross-component state management, business linkage, and live-refresh logic.

    When filling this in by hand, do not represent the price range with a string; use a tuple or object to make the type explicit. The code below defines the price range as [number, number] | null, avoiding misjudgments from string indexing:

    1. type PriceRange = [number, number] | null;
    2. type Filters = {
    3. brand: string;
    4. price: PriceRange;
    5. stock: string;
    6. };
    7. const [filters, setFilters] = useState<Filters>({
    8. brand: '',
    9. price: null,
    10. stock: '',
    11. });
    12. const [page, setPage] = useState(1);
    13. useEffect(() => {
    14. setPage(1);
    15. }, [filters]);
    16. const filteredProducts = useMemo(() => {
    17. return products.filter((item) => {
    18. const matchBrand = !filters.brand || item.brand === filters.brand;
    19. const matchPrice =
    20. !filters.price ||
    21. (item.price >= filters.price[0] && item.price <= filters.price[1]);
    22. const matchStock = !filters.stock || item.stock === filters.stock;
    23. return matchBrand && matchPrice && matchStock;
    24. });
    25. }, [products, filters]);

    Rework on the list page is heavier than on the login page but lighter than on a complex form. The generated skeleton still has value; what a developer really needs to fill in is filter state, linkage rules, pagination reset, and empty-state handling.

    5. Form Page: Field Linkage and Dynamic Validation Are the Dividing Line

    The order form page is where the differences become clearest. It required that selecting a province update the city options, that the amount not exceed the stock ceiling, that negative or over-stock input trigger a real-time prompt, and that submission require a second confirmation.

    Expected versus actual results:

    Requirement Expected result Actual output Human completion focus
    Province→city linkage Selecting a province updates city options City options are hard-coded Add linkage mapping
    Amount validation Immediate prompt when over stock Only prompts on submit Add dynamic validation rules
    Negative input Blocked on input Missing in some cases Add boundary rules
    Submit confirmation Submit after a second confirmation Basic dialog generated Add data validation

    The core problem with the form page is not that the page fails to generate—it is that implicit business rules are hard for the model to understand completely. Field dependencies, dynamic validation, boundary conditions, and error messages all need human completion.

    When completing the validation logic by hand, be clear about where stock comes from. This test assumed stock comes from the currently selected product’s inventory, supplied either by an API or by page state. The validation code has to handle nulls, NaN, negatives, and over-stock values:

    1. const [stock, setStock] = useState<number>(0);
    2. const rules = {
    3. amount: [
    4. { required: true, message: 'Please enter an amount' },
    5. {
    6. validator(_, value: unknown) {
    7. if (value === undefined || value === null || value === '') {
    8. return Promise.resolve();
    9. }
    10. const amount = Number(value);
    11. if (Number.isNaN(amount)) {
    12. return Promise.reject('Amount must be a number');
    13. }
    14. if (amount < 0) {
    15. return Promise.reject('Amount cannot be negative');
    16. }
    17. if (Number.isFinite(stock) && amount > stock) {
    18. return Promise.reject('Amount cannot exceed stock');
    19. }
    20. return Promise.resolve();
    21. },
    22. },
    23. ],
    24. };

    For complex forms, the safer strategy is “model generates the skeleton + human completes the business logic.” Rules involving amounts, stock, stock ceilings, time ranges, address linkage, and permission checks cannot be assumed to be fully understood by the model.

    6. UI Style and Efficiency: Local Generation Time and Measurement

    On visual style, the model’s output follows an “engineering-usable first” approach. Compared with the original prototype, the generated pages are more regular with clearer component structure, but design polish is still limited and still falls short of a mature component library’s visual quality. Teams that need high-fidelity design still have to bring in design specs, a component library, and visual review.

    On efficiency, the conclusion up front: under local deployment, generating all three pages took about 13 minutes 25 seconds in total. That suits prototyping, boilerplate generation, and development assistance—not one-shot delivery of complex business pages.

    Measurement conditions:

    • Model: Qwen2.5-Coder-7B-Instruct.
    • Quantization: GGUF Q4_K_M.
    • Deployment: local Ollama.
    • Hardware: RTX 4060 Ti 8GB, 32GB memory, Ryzen 7 5800X.
    • Tooling: VS Code + Continue.
    • Project size: 3 pages, about 12 components, requirements document around 3,200 words.
    • Network: local development environment.
    • Test window: weekday morning, 10:00–11:00.

    Generation times:

    Page Generation time
    Login page ~2 min 30 s
    List page ~4 min 15 s
    Form page ~6 min 40 s
    All three pages ~13 min 25 s

    This test ran on local deployment with no cloud queuing. If you move Qwen2.5-Coder to a cloud API, a private cluster, or a shared inference service, you need to re-test, because cloud environments can be affected by queuing, resource limits, concurrency policies, and paid-acceleration options.

    When generation efficiency is unstable, consider these alternatives:

    • Split the requirements: break a large page into smaller modules.
    • Generate in stages: structure first, then interactions, then validation.
    • Have a human take over key pages, especially forms, orders, and access control.
    • Establish a consistent acceptance standard for model output to avoid repeated rework.

    7. Evaluation Checklist: From “Can It Generate” to “Can It Enter the Team Workflow”

    If a team wants to bring open-source code generation into its development process, it should not judge by a single demo. It should build a reusable checklist. The one below adds rework time, defect count, and lines of human-completed code to the original dimensions, so it can be used directly in review.

    Check item Focus Pass standard This test Suggested metric
    Requirement understanding Whether it grasps the page goal and business rules Complete structure, no obvious misreads Basically pass Requirement deviation count
    Field mapping Whether field name, type, and linkage are correct Fields mostly match, few missing Partial pass Missing field count
    Validation rules Required, format, boundary, and linkage validation Basic validation passes, complex validation needs work Needs human completion Validation defect count
    UI consistency Whether component style, layout, and interactions are consistent Engineering-usable, average visuals Basically pass Visual rework items
    Runnability Whether it starts, compiles, and is accessible Runs without major changes Pass Compile error count
    Human rework volume Time to complete the logic Less than building from scratch Net gain, but manage expectations Rework time, human-completed lines
    Stability Whether repeated generations are consistent Acceptable variance on similar tasks Needs long-term observation Pass rate over multiple runs

    This table is closer to a real engineering decision than leaderboard scores alone. Teams can record model behavior against their own real requirements over time rather than relying on a single experience.

    8. Open-Source Capability Approaches the Frontier: Where Are the Limits, Where Is the Value?

    Across these tasks, open-source models are near usable on structured pages, standard forms, and basic interactions. But the caveat matters: this conclusion comes from one front-end project test and cannot be extrapolated into “they have already surpassed closed models across the board.”

    The conclusion up front: the value of open-source models is not to fully replace frontier closed models, but to keep the capability gap within a range that can be caught up, compensated for, and engineered around. They carry real meaning for open-source code generation, local deployment, private delivery, and integration into team toolchains.

    Concretely, the value includes:

    1. Technical equity: developers can deploy locally, do secondary development, and use it privately, reducing dependence on a single closed service.
    2. Ecosystem growth: an ecosystem of tooling, fine-tuning approaches, deployment optimization, and community collaboration forms around open models.
    3. Data sovereignty: for data-sensitive sectors such as finance, healthcare, and government, private deployment helps meet data-residency requirements.
    4. Iteration speed: open weights let teams fine-tune quickly for vertical scenarios, turning general capability into domain capability.

    On fit, structured page generation, internal tooling, form prototypes, admin backends, boilerplate, unit-test assistance, and comment generation are good candidates to try first; complex business rules, financial calculations, access audits, and strong-compliance flows should not rely on model output alone.

    Private deployment also carries compliance reminders: even when a model runs locally, you still need to review the model license, output copyright, supply-chain provenance, data security, permission isolation, and runtime auditing. Whether the model repository is trustworthy, whether dependency sources are safe, and whether generated code introduces incompatible licenses should all be part of the process—don’t overlook the compliance boundary just because deployment is “private.”

    9. Practical Advice for Developers and a Troubleshooting Checklist

    1. Allocate Trust by Task Difficulty

    • Structured pages like login, list, and detail can be delegated more to the model.
    • Complex business pages like forms, orders, permissions, payments, and checkout must be reviewed by a human.
    • Code involving amounts, stock, risk control, and compliance must be tested separately.

    2. Trade Requirements Quality for Generation Quality

    Writing page structure, field definitions, interaction logic, validation rules, and acceptance paths clearly reduces the model’s understanding gaps substantially. For code models like Qwen2.5-Coder, the more structured the requirements, the more stable the output.

    3. Adopt a “Generate + Verify” Workflow

    Let the model own the skeleton, boilerplate, and basic components, while developers focus on core logic, boundary conditions, and exception handling. Treat spots like list-page filter linkage, form dynamic validation, and pagination reset as priority acceptance items.

    4. Build a Private Evaluation Set

    Testing the model continuously against your team’s real requirements is more informative than public leaderboards. Keep a record of the model version, quantization parameters, hardware configuration, prompt template, generation time, and rework results for each run.

    5. Common Long-Tail Questions and Troubleshooting

    • Qwen2.5-Coder fails to deploy locally: check whether Ollama loaded the model, whether VRAM is insufficient, and whether the model name is spelled correctly.
    • Ollama loads slowly: check model quantization size, disk speed, available memory, and background processes.
    • Continue cannot call the local model: check whether 127.0.0.1:11434 is reachable and whether the model configuration matches.
    • Generated code is missing fields: add a field-definition table and ask the model to output against the field list.
    • Filter linkage is broken: ask the model for unified state management and make pagination reset explicit after filtering.
    • Validation rules are missing: specify when validation triggers, and separate real-time validation from submit-time validation.
    • Too many type errors: ask the model to use explicit TypeScript types and add type-definition examples.
    • Long-context truncation: split the requirements and generate in stages instead of feeding in too many rules at once.

    Conclusion: Put the Model on the Right Task and Verify It Rigorously

    Open-source model code generation already has real engineering value, but developers should not be fooled by “it runs.” What truly makes it usable is a clear sense of its limits: which pages can be generated directly, which logic must be completed by hand, and which metrics need long-term evaluation.

    Suggested steps for a team to adopt it:

    1. Start with one low-risk control page, such as a login or list page, and run a small pilot.
    2. Fix the model version, quantization parameters, hardware environment, and toolchain, and record reproducible information.
    3. Build an evaluation set from real requirements, and track generation time, rework time, defect count, and lines of human-completed code.
    4. Keep a human review in place for complex business pages; don’t let the model decide key rules outright.
    5. Before adopting private deployment, complete a review of licensing, supply chain, data security, and output copyright.

    Putting the model on the right task, verifying it with rigorous methods, and amplifying it through an open ecosystem is the rational way to bring open-source models into the development process.