DEV Community

ibrahim ethem demirci
ibrahim ethem demirci

Posted on

6 1

Galois: An auto-completer for code editors based on OpenAI GPT-2.

Today I introduce Galois (/ɡælˈwɑː/) which is an open-source auto code completer based on OpenAI GPT-2 .

Galois is trained (finetuned) on a curated list of approximately 45K Python (~470MB) files gathered from the Github. Currently, it just works properly on Python but not bad at other languages (thanks to GPT-2's power).

Galois demo GIF

With this project, I aim to create a Deep Learning Based Auto-completer such that anyone can run it on their own computer easily. I originally inspired by TabNine but wanted to make Galois can be run on endusers computer, freely (as in freedom). Thus anyone (especially developers) can benefit from state-of-the-art NLP technologies freely without sharing the codes (or texts) with a server. To fulfill this purpose we need to do the same what EfficientNet did to achieve state-of-the-art results in many datasets. For now, Galois trained on GPT-2 345M without developing such an efficient deep learning model. Check the planned works here for the future of Galois.

You can try it on usegalois.com. It is licensed under MIT, so you can find the trained model, codes and some instructions on github.com/iedmrc/galois-autocompleter for Galois, and on github.com/iedmrc/galois-web for the online editor. Check the link here for the docker-compose file .

Any contributions are welcome. The technology behind the Galois has been developed by the community for many years. So clearly we can say that it belongs to the community.

To democratize the AI, let's spread the word to the world! Have it, use it, contribute to it, share it!

With respect to Évariste Galois ([evaʁist ɡalwa]).

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (1)

Collapse
 
roblox22r profile image
Roblox studio

bring it back or i report it

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay