Matthew Berman Tests Meta’s Code Llama 70B on a Snake Game

A 2024 look at Meta’s coding-model release, a SQL-focused fine-tune and a hands-on test that did not work on the first attempt.

MBMatthew BermanIntervenant · Forward Future
Chaîne
Matthew Berman
Publié
31 janv. 2024
Vidéo
9:25
Lecture
3 min
Diapositives
5
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

Matthew Berman reviews Meta’s Code Llama 70B and its base, Python and instruction-tuned variants. He discusses reported coding and text-to-SQL benchmarks, then runs a quantized model in LM Studio on a GPU-backed virtual machine. His generated Snake game fails after launch despite installing its missing dependency.

  1. 1Three model variantsMeta’s release includes a base model, a Python-focused model and an instruction-tuned model, with terms governing research and commercial use.
  2. 2A text-to-SQL fine-tuneDefog reported 93% for SQLCoder-70B on its 200-example SQL-Eval test against 82% for GPT-4 in its comparison. Those results are task- and setup-specific.
  3. 3Quantized model on a VMBerman loads Second State’s quantized instruct model in LM Studio on a GPU-backed virtual machine, selecting all 80 layers for GPU offload.
  4. 4Snake fails to runAfter cleaning up the response and installing Pygame, his game opens briefly and exits. Another person’s reported success does not change the result of this attempt.

À retenir

  1. Meta released base, Python-specialized and instruction-tuned 70B Code Llama variants under the applicable Llama license.
  2. A reported 67.8 HumanEval score and SQL-Eval comparisons measure specific tests, not performance on every coding task.
  3. A quantized 70B model still demands substantial memory and hardware; performance depends on the setup.
  4. Berman’s Snake game attempt failed after installing Pygame, while a separate user reported a successful example.
  5. Generated code needs to be run and checked; one attempt does not establish overall capability.
  6. Berman disclosed that he was an investor in LM Studio.
TEXTE INTÉGRAL

Lire le texte remanié, chapitre par chapitre

Transcription seule
01

Code Llama 70B and the model variants

Berman introduces Meta’s January 2024 release, its variants and reported HumanEval score. He also shares a prediction about natural-language programming.

Meta has released Code Llama 70B, its largest Code Llama coding model at the time of this January 2024 video. I am excited about the contribution to available model weights and want to test whether the model can write Snake in one attempt. A single test will give us an example, not a comprehensive ranking.

Meta lists three versions: the base Code Llama 70B, a version specialized for Python, and an instruction-tuned version. The company says Code Llama 70B Instruct scored 67.8 on HumanEval. That is a result on a particular coding benchmark, not proof that it is best for every programming task.

The three Code Llama 70B variants
DIAPOSITIVE 1 / 5The three Code Llama 70B variantsMeta’s announcement lists the base, Python and instruction-tuned models.

Meta says the models use the same license as previous Code Llama releases, supporting research and commercial use under its terms. The download process shown asks users to request access. My earlier Llama 2 request was approved quickly, though that personal experience is not a guarantee for everyone; check the applicable license and access conditions.

Mark Zuckerberg describes coding as an important use of AI and expects related advances to appear in future models. I think natural-language interaction with models could change how software is written and used, potentially reducing the need for conventional programming and apps. That is my prediction, not a result demonstrated by this release.

02

SQLCoder and local deployment options

A fine-tuned model reports strong text-to-SQL results on a particular evaluation. Berman reviews access, licensing and Ollama support.

A fine-tune has already appeared: Defog’s SQLCoder-70B, designed for converting natural language to PostgreSQL queries. Defog’s displayed SQL-Eval chart reports 93% on 200 examples involving schemas not seen in training, compared with 84% for its 34B model and 82% for GPT-4. These vendor-reported numbers reflect that particular test and comparison.

SQL-Eval results for SQLCoder
DIAPOSITIVE 2 / 5SQL-Eval results for SQLCoderDefog’s comparison reports accuracy on 200 examples using schemas not seen during training.

Defog says it fine-tuned the model on fewer than 20,000 hand-curated prompt–completion pairs. Its license allows commercial use subject to conditions, including requirements around changes; anyone deploying it should read the actual terms. The original Code Llama appeared in August 2023, with the 70B update arriving in January 2024.

Ollama already lists support for the 70B model and shows a command to run it. This is a large model, so local speed and memory requirements depend on the machine and quantization. I have not yet tested it on my own computer and expect that doing so could be slow.

Ollama model command
DIAPOSITIVE 3 / 5Ollama model commandThe displayed model page shows a command for running the 70B model through Ollama.

For this test, Massed Compute provided a virtual machine with GPUs. I use LM Studio and a Second State quantized Code Llama 70B Instruct model; the file is nearly 50 GB and the interface indicates more than 30 GB of RAM. I choose GPU offload for all 80 layers and reload the model to apply the setting.

03

Testing the instruct model

He loads a quantized model into LM Studio on a GPU-backed virtual machine and asks it for code. He discloses his investment in LM Studio.

As a quick test I ask for a method that outputs the numbers from 1 to 100. The model first gives a JavaScript-style answer and then a Python alternative. I then ask it to write Snake in Python, and it begins producing a substantial Pygame program.

LM Studio and GPU offload
DIAPOSITIVE 4 / 5LM Studio and GPU offloadThe interface shows the quantized instruct model and 80 GPU layers selected for the virtual-machine test.

I should disclose that I am an investor in LM Studio. While my output continues, I show a post from Tristan Behrens reporting that Code Llama 70B generated a working Snake game on his MacBook Pro. That is another user’s example, with its own setup and prompt, rather than the outcome of my test.

04

The Snake game result

Berman compares another user’s reported success with his own attempt. His generated game fails after a dependency installation, and he plans to investigate further.

The model continues past one version and starts producing more text. I copy the response into VS Code and remove extraneous material around the code. My earlier personal rubric had only a small number of models succeed at this Snake task; that is a narrow informal test rather than a general benchmark.

The first run reports that Pygame is missing, so I install it and try again. The game window opens briefly and closes, and the attempt fails. I plan to investigate off camera; the other user’s reported success shows a different result is possible but does not make this particular run a success.

Pygame dependency error
DIAPOSITIVE 5 / 5Pygame dependency errorThe initial run reports that Pygame is missing; Berman installs it before trying again.

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