Testing WizardCoder 15B as a Local Coding Assistant

Matthew Berman runs the 2023 WizardCoder model locally, testing small Python exercises and a longer Snake game.

MBMatthew BermanSpeaker · Forward Future
Channel
Matthew Berman
Published
Jun 20, 2023
Video
4:36
Read
3 min
Slides
7
Original
English
Open on YouTube
Scroll to read and the video shrinks to the bottom-right corner. Captions follow your reading language.
Reading languageAvailable in 2 languages
You're reading the original English.
SUMMARY

In 30 seconds

Matthew Berman introduces WizardCoder 15B, a code-focused fine-tune of StarCoder, and demonstrates a local GPTQ version in text-generation-webui. He runs a handful of Python challenges and attempts to generate a Snake game. The small functions pass the exercise site’s checks in the examples he shows, while the generated game does not run. His benchmark comparisons and setup reflect June 2023 and should not be read as current rankings or universal limits.

  1. 1Code-oriented fine-tuningThe model description says the team adapted Evol-Instruct for code instructions and fine-tuned StarCoder. Its benchmark chart represents the authors’ comparisons at the time.
  2. 2Running the model locallyBerman starts an existing text-generation-webui setup and selects TheBloke’s GPTQ version of WizardCoder 15B.
  3. 3Prompt sensitivityAn output ends with an unexpected token marker; Berman says removing the example sometimes resolves this in his tests.
  4. 4Small Python exercisesSolutions for divisibility, argument counting, and formatting numbers are shown, with successful checks on some examples.
  5. 5The longer game failsA Snake program requires continued generation and does not run when tested; Berman does not debug it further.

Takeaways

  1. WizardCoder 15B builds on StarCoder and uses code-oriented Evol-Instruct training data, according to its model description.
  2. Berman runs a GPTQ version locally using an existing text-generation-webui installation.
  3. Several small Python exercises pass the website’s checks, while a generated Snake program fails to run.
  4. Removing an example helped in Berman’s tests, though that does not establish a universal prompting rule.
  5. The displayed model comparisons and interface settings reflect the 2023 demonstration.
FULL TEXT

Read the edited text by chapter

Transcript only
01

WizardCoder and its training

Berman introduces a locally runnable 15-billion-parameter coding model. He discusses its StarCoder base, training approach, and 2023 comparisons.

WizardCoder is a coding assistant that can run locally. In this June 2023 demonstration, I show the model’s background, load a local version, and try it on Python coding challenges. The results are an informal snapshot of one setup, not a current ranking of coding models.

WizardCoder model description
SLIDE 1 / 7WizardCoder model descriptionThe model page describes adapting Evol-Instruct to code and fine-tuning StarCoder.

The WizardLM team describes adapting its Evol-Instruct method to code-related instructions, then fine-tuning StarCoder using the resulting instruction-following dataset. The model has 15 billion parameters. The authors’ displayed benchmark compares it favorably with other models available at the time, while placing it below GPT-3.5 and GPT-4 on the shown test; such results depend on the benchmark and settings.

Authors’ benchmark comparison
SLIDE 2 / 7Authors’ benchmark comparisonThe 2023 chart compares models on HumanEval and HumanEval+ under the stated evaluation setup.

I use a GPTQ version supplied by TheBloke. This quick tutorial assumes text-generation-webui has already been installed: in my conda environment, I start the server with `python server.py`, then select the WizardCoder 15B model from the interface. Exact commands and hardware requirements depend on the installation and model format.

02

Loading a local model

He starts a preinstalled text-generation-webui server and selects a GPTQ version. He then introduces the Python Principles exercises used for his informal tests.

Starting text-generation-webui
SLIDE 3 / 7Starting text-generation-webuiThe terminal shows the historical local server command used in this demonstration.

For tests I use Python Principles, which lists programming exercises by difficulty. The first asks for the indexes of capital letters in a string. I copy the instruction into the model and set the maximum new tokens to 2,000. The generation is fast on my setup, though speed will depend on the machine.

03

Small coding challenges

The demonstration includes a strange output marker, a divisibility test, argument counting, and a thousands-separator function. Results differ depending on the prompt and the exercise.

Unexpected output marker
SLIDE 4 / 7Unexpected output markerThe generated response ends with a special marker instead of a completed code example.

Sometimes the response ends unexpectedly with a special marker instead of the code. In my experiments, removing the example from the prompt and running it again can help. That is a workaround I observed in this setup, not a guarantee that examples should always be omitted.

The next problem asks for a `div_3` function that returns whether an integer is divisible by three. The exercise site marks the generated answer correct. I also show an argument-counting problem, where a function accepts a variable number of arguments and returns how many it received.

Divisibility exercise
SLIDE 5 / 7Divisibility exerciseThe Python challenge and generated function illustrate one of the small tests.
Thousands-separator challenge
SLIDE 6 / 7Thousands-separator challengeThe exercise asks for a function to format a non-negative number with commas.

For a harder exercise, `format_number` must convert a non-negative number to a string with commas as thousands separators. I omit the example from the prompt, paste the generated function back into the challenge, and the site marks it correct. When I include the example in another attempt, the response is more complicated and produces an error.

04

A longer Snake program

Berman tries to generate a Python Snake game using the interface’s continuation feature. The resulting program does not work, informing his assessment of the model’s limits.

Next I ask for a Python version of Snake. In this interface I have a 2,000-token generation setting and can sometimes use the Continue button to extend the output; that setting is a feature of the demonstration, not a universal limit on local models. Continuation appears to work, but after I save the code in VS Code, the program does not run.

Generated Snake code in VS Code
SLIDE 7 / 7Generated Snake code in VS CodeBerman tries the longer program, which he reports did not run.

I decide not to debug the game further. From these limited tests, I think the model is useful for relatively small functions, including some more complex ones, but it is not at the level of GPT-3.5 or GPT-4 in my assessment at the time. The practical attraction is that it can run locally.

More from this channel

12 slides34:21EN
MBMatthew Berman· Oct 27, 2026Matthew Berman Examines Anthropic’s IPO Filing, AI Growth and GovernanceMatthew Berman, Sam Altman · Forward FutureThe presenter reviews the S-1’s financial metrics, compute strategy and voting structure while questioning the tension between rapid AI development and safety.AnthropicAI SafetyEnterprise AI+2
6 slides25:50EN
MBMatthew Berman· Oct 24, 2026Kimi K3.1 Pro Tested: Strong 3D Demos, Uneven Results and Competitive PricingMatthew Berman · Forward FutureMatthew Berman tests the open-weight model on coding, 3D rendering and visual explanations, then compares benchmark results and prices.Open-weight modelsBenchmarksAI cost & performance+1
2 slides32:20EN
MBMatthew Berman· Oct 23, 2026Who Is Local AI For? The Costs, Trade-offs and a Hybrid FutureMatthew Berman · Forward FutureMatthew Berman weighs data control and independence against hardware cost, setup complexity and inference speed.Local inferenceOpen-weight modelsAI cost & performance+1
6 slides1:03:37EN
MBMatthew Berman· Oct 23, 2026Matthew Berman’s Team Tests Kimi K3.1 on Animation, Games, and ChartsMatthew Berman, Alex, Brian · Forward FutureA live team AMA turns into an informal test of Kimi K3.1, from personal-agent workflows to motion graphics, a browser game, and a benchmark chart.Coding agentsGenerative mediaEvals+2
0:53EN
MBMatthew Berman· Oct 22, 2026Sam Altman on AI and the Discovery of New KnowledgeSam Altman · OpenAIAltman expects progress in mathematical discovery to extend to biology, materials and energy.AI for scienceMathematicsComputational Biology+1
Slides0:22EN
MBMatthew Berman· Oct 21, 2026A Robot Bodyguard Video Shows Dramatic Rescue ScenariosMatthew Berman · Forward FutureMatthew Berman reacts to a short robot demonstration depicting fighting and vehicle-rescue scenarios.RoboticsEvals