Lädt...


🔧 Replacing GitHub Copilot with Local LLMs


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

As part of developing Glama, I try to stay at the cutting edge of everything AI, especially when it comes to LLM-enabled development. I've tried GitHub Copilot, Supermaven, and many other AI code completion tools. However, earlier this week I gave a try to locally hosted LLMs and I am not coming back.

Setup

These instructions assume that you are a macOS user.

The setup takes no more than a few minutes.

Download and install Ollama.

What about LM Studio? I saw a few posts debate one over the other. LM Studio has intuitive UI; Ollama does not. However, my research led me to belief that Ollama is faster than LM Studio.

Install the model that you want to use.

ollama pull starcoder2:3b

I've evaluated a few and landed on starcoder2:3b. It provides a good balance of usefuless and interference speed.

For context, the following table shows the speed of each model.

Model tokens/second
starcoder2:3b 99
llama3.1:8b 54
codestral:22b 21

Finally, install a continue.dev – a VSCode extension that enables tab completion (and chat) using local LLMs.

Then update continue.dev settings to use the desired model.

{
  "models": [
    {
      "title": "Starcoder2",
      "provider": "ollama",
      "model": "starcoder2:3b"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Starcoder2",
    "provider": "ollama",
    "model": "starcoder2:3b"
  }
}

Restart VSCode and you should be good to go.

Ensure that you've disabled GitHub Copilot and other overlapping VSCode extensions.

Pros and Cons

Pros

  • Offline Availability: Work anywhere without relying on an internet connection.
  • Privacy: Your code and prompts never leave your machine, ensuring maximum data privacy.
  • Customization: Ability to fine-tune models to your specific needs or codebase.
  • No Subscription Costs: Once set up, there are no ongoing fees unlike many cloud-based services.
  • Consistent Performance: No latency issues due to poor internet connection or server load.
  • Open Source: Many local LLMs are open-source, allowing for community improvements and transparency.

Cons

  • Initial Setup Time: Requires some time and technical knowledge to set up properly.
  • Hardware Requirements: Local LLMs can be resource-intensive, requiring a reasonably powerful machine.
  • Limited Model Size: Typically, local models are smaller than their cloud-based counterparts, which might affect performance for some tasks.
  • Manual Updates: You need to manually update models and tools to get the latest improvements.

Closing Thoughts

I was hesitant to adopt local LLMs because services like GitHub Copilot "just work." However, as I've been traveling the world, I found myself often regretting having to depend on Internet connection for my auto completions. In that sense, switching to a local model has been a huge win for me. If Internet connectivity was not issue, I think services like Supermaven are still very appealing and worth the cost.

If you are not familiar with Supermaven and if you are Okay with depending on Internet connection, then it's worth checking out. Compared to GitHub Copilot, I found Supermaven's auto completion to be much more reliable and much faster.

However, if you are like me and want your code completion to work with or without an Internet connection, then this is definitely worth a try.

...

🔧 Replacing GitHub Copilot with Local LLMs


📈 43.69 Punkte
🔧 Programmierung

🪟 GitHub announces the preview of GitHub Copilot Enterprise and general availability of GitHub Copilot Chat


📈 33.29 Punkte
🪟 Windows Tipps

🎥 An inside look at how GitHub uses LLMs, fine-tuning, and prompt engineering in GitHub Copilot


📈 29.54 Punkte
🎥 Video | Youtube

🎥 Learning AI with GitHub Copilot: Exploring machine learning fundamentals w GitHub Copilot [Part 2/6]


📈 27.07 Punkte
🎥 Video | Youtube

🎥 Learning AI with GitHub Copilot: Building a classifier model with GitHub Copilot [Part 3 of 6]


📈 27.07 Punkte
🎥 Video | Youtube

🎥 Learning AI with GitHub Copilot: Computer vision and PyTorch with GitHub Copilot [Part 4 of 6]


📈 27.07 Punkte
🎥 Video | Youtube

🎥 Learning AI w GitHub Copilot: Analyzing Computer Vision PyTorch Notebook w GitHub Copilot Labs [5/6]


📈 27.07 Punkte
🎥 Video | Youtube

🔧 What are LLMs, Local LLMs and RAG?


📈 25.16 Punkte
🔧 Programmierung

🔧 Using LLMs for productivity without replacing the human originality


📈 24.57 Punkte
🔧 Programmierung

🕵️ GitHub Copilot goes 'multi-model' with support for four new LLMs


📈 23.32 Punkte
🕵️ Hacking

📰 GitHub Copilot Alternatives: Best Open Source LLMs for Coding


📈 23.32 Punkte
🐧 Unix Server

🎥 Not sure what to ask Copilot? Try Copilot Lab! #microsoft #copilot #ai #shorts


📈 21.94 Punkte
🎥 Video | Youtube

🪟 Free Copilot, Copilot Pro, Copilot for Microsoft 365: What are the differences?


📈 21.94 Punkte
🪟 Windows Tipps

📰 Copilot, Copilot, Copilot: Microsoft Ignite bietet viel KI


📈 21.94 Punkte
📰 IT Nachrichten

📰 Ignite 2023: Microsoft und KI - Copilot hier, Copilot da, Copilot überall


📈 21.94 Punkte
📰 IT Security Nachrichten

🐧 Joey Hess: the single most important criteria when replacing Github


📈 21 Punkte
🐧 Linux Tipps

🪟 GitHub Copilot vs Microsoft Copilot: Which Is the Best AI Assistant?


📈 20.85 Punkte
🪟 Windows Tipps

🪟 GitHub reveals Copilot Workspace, a new Copilot-powered developer environment


📈 20.85 Punkte
🪟 Windows Tipps

📰 Copilot Workspace: Github bringt komplette Entwicklungsumgebung mit Copilot


📈 20.85 Punkte
📰 IT Nachrichten

🔧 Using GitHub Copilot Chat in Visual Studio #githubcopilot #visualstudio #copilot


📈 20.85 Punkte
🔧 Programmierung

🔧 The AskVS command in GitHub Copilot for Visual Studio #copilot #visualstudio #githubcopilot


📈 20.85 Punkte
🔧 Programmierung

🪟 GitHub launches Copilot Enterprise, costs $20/month more than Copilot Business plan


📈 20.85 Punkte
🪟 Windows Tipps

📰 GitHub Announces Its 'Refounding' on Copilot, Including an AI-Powered 'Copilot Chat' Assistant


📈 20.85 Punkte
📰 IT Security Nachrichten

📰 GitHub rolls out Copilot for business, experiments with voice control for Copilot


📈 20.85 Punkte
📰 IT Nachrichten

🔧 Top 5 Module to learn GitHub and GitHub Copilot by Microsoft Learn


📈 19.76 Punkte
🔧 Programmierung

🔧 Introduction to Visual Studio Code GitHub Copilot Using GitHub Education


📈 19.76 Punkte
🔧 Programmierung

🔧 Innovation lessons from GitHub Chat and GitHub Copilot Labs


📈 19.76 Punkte
🔧 Programmierung

🎥 Empowering Netflix Developers with GitHub Copilot: Insights Live Podcast at GitHub Universe 2023


📈 19.76 Punkte
🎥 Video | Youtube

📰 Die wichtigsten News der Kalenderwoche 45/2023: GitHub Copilot, GitHub Universe und mehr


📈 19.76 Punkte
📰 IT Nachrichten

🎥 Accelerating cloud-to-edge development flows with GitHub Copilot and GitHub Actions


📈 19.76 Punkte
🎥 Video | Youtube

🎥 The Download: GitHub Universe, GitHub Copilot Workspace Tips & Tricks, and more


📈 19.76 Punkte
🎥 Video | Youtube

🔧 Enhance Your Coding Workflow with Our GitHub and GitHub Copilot Learn Plan


📈 19.76 Punkte
🔧 Programmierung

🔧 Unlock the Future of Coding: Get Started with GitHub and GitHub Copilot


📈 19.76 Punkte
🔧 Programmierung

matomo