• Stars
    star
    308
  • Rank 135,712 (Top 3 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 3 years ago
  • Updated about 1 year 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.