asedmammad / emacs-secondmate

An open-source, mini imitation of GitHub Copilot for Emacs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Second Mate

An open-source, mini imitation of GitHub Copilot using EleutherAI GPT-Neo-2.7B (via Huggingface Model Hub) for Emacs.

This is a much smaller model so will likely not be as effective as Copilot, but can still be interesting to play around with!

./assets/demo1.gif

Setup

Inference End / Backend

  1. Set device to “cpu” or “cuda” in serve/server.py
  2. The “priming” is currently done in Python. If you want, modify it to another language or turn it off (from subjective experience, priming seems to help).
  3. Launch serve/server.py. This will launch a Flask app which will allow us to sample the model via REST API.

Emacs

  1. In emacs/secondmate.el, customize the URL in secondmate-url to the address the API is running on.

About

An open-source, mini imitation of GitHub Copilot for Emacs.

License:Apache License 2.0


Languages

Language:Python 53.4%Language:Emacs Lisp 46.6%