News for hackers. Stuff that matters.

minosu

Re:GPT-4.5 or GPT-5 being tested on LMSYS? on Tuesday April 30, 2024 @10:42AM (#40211453)
Mistral 7b inferences about 18% faster for me as a 4bit quantized version on an A100. Thats definitely relevant when running anything but chatbots.

Show HN: AIWP – Context-aware DALL·E 3 wallpapers for Android

https://github.com/minosvasilias/AIWP

Hey all! This is a lightweight Android app to auto-change your wallpaper using AI generated images, implemented via the recently introduced DALL·E 3 API.I wanted something no-frills that isn't a bloated commercial option, so this is that. Open source, but also on the Play Store for convenience: https://play.google.com/store/apps/details?id=com.minosapps....It (optionally) injects the current...

( Read More... | no comments | 6 points | on HN )
This a continuation of previous work done in the godot-dodo project (https://github.com/minosvasilias/godot-dodo), which involved finetuning LLaMA models on GitHub-scraped GDScript code.

Starcoder performs significantly better than LLaMA using the same dataset, and exceeds evaluation scores of both gpt-4 and gpt-3.5-turbo, showing that single-language finetunes of smaller models may be a competitive option for coding assistants, especially for less commonplace languages such as GDScript.

The twitter thread also details some drawbacks of the current approach, namely increasing occurences where the model references out-of-scope objects in its generated code, a problem that worsens as the amount of training epochs increases.

Yes, the changes introduced by Godot 4 were a prime motivator for this project.

However, it is not quite as clear cut as OpenAI's models simply being trained on Godot 3.x projects only. Not only do they sometimes produce valid 4.x syntax (gpt-4 more often than 3.5-turbo), indicating there were at least some 4.x projects in the training data, they also hallucinate other invalid syntax, such as Python-specific functionality, or simply non-existent methods.

I do think evaluating against Godot 3.x would increase their scores somewhat, but i have not had time to do so yet.

The wrapping prompt is also used during inference. (https://github.com/minosvasilias/godot-dodo/blob/f62b90a4622...) Prompting like this is useful for instruct-finetunes, and similar prompts are used by other projects like stanford-alpaca.
This repository presents finetuned LLaMA models that try to address the limited ability of existing language models when it comes to generating code for less popular programming languages.

gpt-3.5-turbo and gpt-4 have proven to be excellent coders, but fall off sharply when asked to generate code for languages other than Python/Javascript etc. The godot-dodo approach to address this: Finetune smaller models on a single one of these languages, using human-created code scraped from MIT-licensed GitHub repositories, with existing GPT models generating instructions for each code snippet.

This differs from the dataset generation approach used by projects such as stanford-alpaca or gpt4all, in that the output values of the training set remain high quality, human data, while following the same instruction-following behavior. This will likely prove more effective the more obscure the language. In this case, GDScript was used, which is the scripting language for the popular open-source game-engine Godot. The same approach however can be applied to any other language.

Performance is promising, with the 7 billion parameter finetune outperforming GPT models in producing syntax that compiles on first try, while being somewhat less capable at following complex instructions.

A comprehensive evaluation comparing all models can be found here: https://github.com/minosvasilias/godot-dodo/tree/main/models

Show HN: Godot Copilot – AI-assistant for the Godot engine, supporting GPT-4

https://github.com/minosvasilias/godot-copilot

Hey HN!This is a pretty straightforward addon for folks that work with GDScript and like to do so within the Godot editor insted of VSCode. Integrating code-completions directly with the default code editor used within the engine.One advantage it has over Github Copilot is that it allows for usage of 3.5-turbo and gpt-4 (the latter performing better with GDScript than previous models), as well...

( Read More... | no comments | 4 points | on HN )