• Stars
    star
    308
  • Rank 134,928 (Top 3 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created about 3 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

Second Mate

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

./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.