This might be the best coding model (Better than wizardcoder_python_34b)

#1
by rombodawg - opened

This is the first model to pass my "code snake in python" test. The only other model that passed this was gpt 3.5

And yes i tested wizardcoder_python_34b it failed the code snake in python test

The following prompt was used to create the code for snake in text generation web ui

Prompt:
I need you to write 1 piece of python code for a functioning game of snake. Make sure to fill every line of code completely, do not leave any place holders, as logic for the code must be thought of now and implemented in this generation.

Make sure the game have a window to play in, has proper working food for the snake to collect, has the ability for the snake to eat the food and grow from the eaten food, has the ability for the snake to die from running into itself or the border of the window, and has a restart button once the game is over to play the game over again.

Make sure the game has a simple visual graphical interface for the user to see when playing, you will have to code this yourself. Absolutely make sure everything mentioned in the code is written, do not leave a class that is mentioned somewhere but not written out properly elsewhere Please follow this format when writing the code:
FILENAME

CODE

I'm using the GPTQ version but I am also impressed.

image.png

image.png

Pretty decent job of following instructions about comments too.
image.png

And it understands docstrings and the different docstring styles. It's English is a little unusual but it's clear.

image.png

There is already a V2... TheBloke/Phind-CodeLlama-34B-v2-[etc...]

Sign up or log in to comment