Comparing Three Local Coding Models on Games and Programming Challenges

Matthew Berman runs DeepSeek-Coder-V2 Lite, Yi-Coder 9B, and Qwen2.5-Coder 7B on a sponsored workstation. Their results vary by task and include manual corrections.

MBMatthew BermanIntervenant · Forward Future
Chaîne
Matthew Berman
Publié
2 nov. 2024
Vidéo
12:50
Lecture
4 min
Diapositives
4
Original
anglais
Ouvrir sur YouTube
En faisant défiler, la vidéo se réduit en bas à droite et continue. Les sous-titres suivent votre langue de lecture.
Langue de lectureDisponible en 2 langues
Cet article n’est pas encore disponible en français ; il s’affiche dans l’original en anglais.
RÉSUMÉ

En 30 secondes

In this November 2024 video sponsored by Dell and NVIDIA, Matthew Berman compares three coding models using LM Studio on a workstation with two RTX A6000 GPUs. Qwen produces his preferred Snake game and the highest displayed generation speed, while all three struggle with Tetris, a difficult regular-expression challenge, and a prime generator’s time limit. All pass the letter-shift and sorted-array median tests after the adjustments shown; this small, uneven test does not establish a universal ranking.

  1. 1Three locally run modelsBerman compares DeepSeek-Coder-V2 Lite, Yi-Coder 9B Chat, and Qwen2.5-Coder 7B using LM Studio.
  2. 2Snake favors QwenThe Qwen-generated version works best in the presenter’s trial, including an observed self-collision game-over.
  3. 3Tetris remains difficultThe attempts either need manual repair, freeze, or still fail after a requested fix.
  4. 4A simple challenge passesAll three pass the letter-shift challenge after the displayed naming adjustments.
  5. 5Harder challenges expose limitsNone passes the regex task completely, and the prime generators time out under the test constraints.
  6. 6Median challengeAll three pass the final sorted-array median test, with the DeepSeek attempt corrected for the expected interface.

À retenir

  1. The three models are DeepSeek-Coder-V2 Lite, Yi-Coder 9B Chat, and Qwen2.5-Coder 7B; their architectures and total parameter counts differ.
  2. Qwen’s generated Snake game works best in this demonstration, while no model produces a satisfactory Tetris game in the attempts shown.
  3. All three pass the letter-shift challenge and the final median challenge after the presenter’s necessary interface adjustments.
  4. The hard regex attempts fail some tests, and the prime generators time out under the challenge’s limits.
  5. Reported generation speeds are observations on the sponsor-provided workstation and cannot be generalized to other hardware or settings.
  6. The video is sponsored by Dell and NVIDIA, and its small set of prompts is not a controlled coding benchmark.
TEXTE INTÉGRAL

Lire le texte remanié, chapitre par chapitre

Transcription seule
01

Models and sponsored hardware

Berman introduces the three coding models and his Dell workstation with two NVIDIA GPUs. He uses LM Studio for local inference.

I am comparing three models for local coding: DeepSeek-Coder-V2 Lite, Yi-Coder 9B Chat, and Qwen2.5-Coder 7B. I will try game generation and programming challenges. This video is sponsored by Dell and NVIDIA, which supplied the workstation; the comparison is an informal set of examples from November 2024, not a comprehensive benchmark.

The Dell Precision 5860 has two RTX A6000 GPUs with 48 GB of VRAM each, and I load all three models in LM Studio. Their architectures are not identical: [DeepSeek-Coder-V2 Lite](https://huggingface.co/deepseek-ai/DeepSeek-Coder-V2-Instruct) is a 16B-parameter mixture-of-experts model with about 2.4B active parameters, while the other names describe 9B and 7B models. Capacity and speed depend on quantization, hardware, and software configuration; two GPUs do not automatically behave as one pooled memory device in every setup.

02

Snake and Tetris

The models generate Python games, with Qwen producing the most successful Snake attempt. None completes Tetris satisfactorily in the demonstrated runs.

Local inference can work without an internet connection once the models and necessary software are available. I start by asking DeepSeek to write Snake in Python. It generates a tkinter version at roughly 30 tokens per second on this machine. The game opens, but it does not behave as I expect, so loading alone is not a complete success.

DeepSeek’s generated Snake code
DIAPOSITIVE 1 / 4DeepSeek’s generated Snake codeLM Studio shows the generated Python and the observed speed in the sponsored workstation setup.

Yi-Coder generates its Snake game with the turtle library at roughly 50 tokens per second. The game works better in my trial, although the pixels do not line up cleanly and I do not find a way to lose. These displayed speeds describe particular generations on this workstation, not a controlled throughput study.

Qwen2.5-Coder uses Pygame and generates at nearly 70 tokens per second in this run. After addressing a missing Pygame module, I run the game: the visuals line up, and colliding with the snake’s own body ends the game. I judge this the strongest Snake attempt of the three.

Qwen’s Snake game
DIAPOSITIVE 2 / 4Qwen’s Snake gameThe generated Pygame version runs during Berman’s comparison.

Next I ask each model for Tetris. DeepSeek’s code uses Pygame without importing it, so I add the import manually; the game starts but is laggy and appears to provide only one piece. Yi-Coder’s attempt does not work and freezes. These tests include human intervention and do not use identical repair steps for all models.

Qwen’s Tetris code also errors. I feed the error back to the model, replace the suggested main function, and try again, but it still fails. None of the three produces a satisfactory Tetris game in the attempts shown, although this is not evidence that they cannot solve the task under different prompts or iterations.

03

CodeWars challenges

All three pass a simple letter-shift task. A difficult regex problem and an efficient prime generator expose failures and timeouts.

I move to Codewars and request a function that advances every letter ten places through the alphabet, wrapping around after z. DeepSeek initially uses a different function name; after I rename it to the expected interface, its solution passes. Yi-Coder passes as well, and Qwen passes after I adjust its function name.

For a much harder Codewars task, I ask for a regular expression that matches binary numbers divisible by a given number. DeepSeek first encounters restrictions on libraries, so I request a version without them; the revised submission passes 166 tests and fails 52. I give Yi-Coder more explicit instructions about the method name and libraries; it still fails tests, as does Qwen. Because the prompts and revisions differ, the displayed counts are not a controlled head-to-head score.

A difficult regex challenge
DIAPOSITIVE 3 / 4A difficult regex challengeThe displayed DeepSeek submission passes some checks and fails others after a revision.

The next challenge asks for an endless prime-number generator fast enough to produce a million primes in a few seconds. DeepSeek passes some checks but times out; Yi-Coder and Qwen also fail to finish within the shown test limit. I wonder aloud whether the requirement is possible in Python, but these three attempts do not establish that it is impossible.

04

Median of two sorted arrays

All three models pass the final median test in the shown attempts. Berman favors Qwen for the observed speed and Snake result.

Finally I ask for the median of two sorted arrays with the stated logarithmic complexity requirement. My first DeepSeek run has an argument error because I did not specify the expected method structure, so I clarify it and rerun; it passes. Yi-Coder and Qwen also pass the displayed tests. Passing a test suite is evidence for those cases, though the clip does not independently prove complexity for every input.

Qwen’s median solution
DIAPOSITIVE 4 / 4Qwen’s median solutionThe model generates code for the final sorted-array median challenge.

For this set of tests, I prefer Qwen2.5-Coder 7B because it was fastest in the displayed runs and produced the best Snake game. I ask viewers what more useful coding tests they would suggest. That is a practical preference based on a few examples and this hardware, not proof that one model is best for all developers or workloads.

Sur la même chaîne

12 diapositives34:21EN
Matthew Berman· 27 oct. 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 SafetyIA en entreprise+2
2 diapositives0:36EN
Matthew Berman· 25 oct. 2026Kimi K3.1 and a Rubik’s Cube Solver DemonstrationMatthew Berman · Forward FutureMatthew Berman shows a scrambled virtual cube being solved and gives the Kimi K3.1 test a favorable assessment.ÉvaluationsAgents de codeOpen-weight models
6 diapositives25:50EN
Matthew Berman· 24 oct. 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 diapositives32:20EN
Matthew Berman· 23 oct. 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 diapositives1:03:37EN
Matthew Berman· 23 oct. 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.Agents de codeGenerative mediaÉvaluations+2
0:53EN
Matthew Berman· 22 oct. 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