Github Copilot Does NOT Like This... (100% Local Free VSCode CoPilot)

1littlecoder · Beginner ·💻 AI-Assisted Coding ·2y ago

Key Takeaways

Local and private VSCode CoPilot alternative is taught as a 100% free solution without relying on Github Copilot

Full Transcript

write a python code with XG boost cross validation if you're not familiar with XG boost it's a machine learning algorithm and also a library that helps you build classification or regression algorithms and as you can see this is completely local no data are sent to the internet you don't need any subscription all you have to do is use olama isn't it amazing show you how to use deep seek coder within your Visual Studio code for your co-pilot it's an AI co-pilot just like GI up copilot only the difference is you don't have to pay any money first thing is you need to have ol installed then the next thing is you need to download the Deep seek coder model to download the Deep seek coder model all you have to do is AMA Run Deep seek Das coder and that will technically download the base the basic version of Deep seek coder which requires about like 800 MB storage and that requires the least Ram our download is successfully completed let's test the model write a python code for a simple addition so this is the simplest question that I can ask and as you can see that it has successfully given you the answer time for us to go ahead and install the visual studio extension which in this case is continue continue lets you use any llm by default it comes with standard set of llms but I'm also going to show you how to do the same thing with ol Lama so which means the Deep SE coder that we just downloaded with wama we're going to use within continue and then use it within our Visual Studio code which is a very popular ID that a lot of people use you can either click install from the continue which is part of the market place of Visual Studio code or you can open your Visual Studio code and click extensions and click search for continue and then start installing either way this would install continue in its vanilla format once the installation is successful we'll be able to access config.js where we can make the changes that we want so before that first thing that they suggest you to do is they suggest you to move move the continuous sidebar to the right hand side of yours so that it doesn't block your Explorer so depending upon your Visual Studio code like the layout you can make it or keep it wherever you want so I've dragged it to the right of mine so that you can see that the right it says ask a question slash for Slash and there are a bunch of things that you need to know control or command M will select the code control shift M will select code for followup and control shift L is for quick edit and control shift R is to to debug the terminal in itself now it's time for you to select the right model that you want they come with a set of models which we are not definitely going to use but once you go click the settings then you'll be able to access the config.js where you can go add your custom model for example I'm going to copy the existing code Lama code and then create a new model which I'm going to call it deep C coder the title doesn't matter a lot what matters is the provider in this case our provider is Ol Lama but I think you can do the same thing with LM Studio once you you have the provider AMA and then select the model which in this case is a deep seek coder model so you have the Deep seek coder model and the title provider model once you have all these things ready then you have to just select the model and then you are good to go ask any question that you want in the right hand side this is pretty much chat mode uh I'm not sure how much you will use it like I can ask a question write a python code for addition and then it creates an answer the answer is a little bit gibberish at this point when you see that is primarily because we are using the very base model of DC coder so if you want better result you need to use at least the 7 billion parameter model which in this case would take about like 8 GB of your space and you need to have appropriate Ram also you don't want to use DC coder you want to try some other model so in this case you can try AMA run stable LM Zer to try the particular model one of the ways you can explore whether the model is good for you or not is first of all you need to understand how the model has been built and second of all you need to make sure that the model is a chat following model not just a full uh next word prediction model so we're going to take a stable LM Zer so all you have to do is copy go to your terminal that you have got and then just run stable or AMA run stable LM Zer so at this point this will start downloading the model which in this case is a 1.6 gigs of model so once this model is downloaded then you should be able to directly use it within your Visual Studio code using continue which I'll quickly show you how to edit the config.js file once the model download is successful the one thing that you need to make sure that you have ol serve on either open the ol software or just run ol serve just to make sure that all the models that we're discussing about are available through the ol endpoint locally within your computer so that is one thing for you to keep in mind the second thing for you to keep in mind is if you don't like sharing Anonymous data with continue. Dev go to the extensions and click the settings that you have got and once you click the settings you'll see extension settings and inside extension settings you will see an option to send the Telemetry data if you don't feel comfortable in sending Telemetry data disable this that would not send any data from your computer to continue at least that's what they're promising so now coming back to the terminal or wherever that you downloaded the model so just you can send any question then ask for a quick check write a python code to add two numbers that's it that's what the question is and you can see that it has given you much cleaner answer than what deep deep seek coders base model give so now all you have to do is go back to your Visual Studio code open the config.js file and inside that you have to add a small block within the models so you would see models and within that you will have to add the small block title is table def zer provider is AMA and the model is stable zeper once again this model name comes from the AMA library in itself which you can just go and click here and then see from the library or we just downloaded it so we don't need it because we just copied it literally from there once you have the save the file and go back to any file that you have got and if you do not see the right side bar where you got continue all you have to do is control shift M and then you would get this thing once to get this particular screen then you can either like click new session with control command M and then you can select the model that you want so in this case you can select either stable Zer or you can select stable deep C coder I'm going to select stable zeper and I'm going to start writing a new python code so I'm going to use command shift M which is to ask any question or you can open a new file and then do command shift L which just has been indicated here so I'm going to just go go here and then say write a python code that would take an input name and then reverse it and print it so this is all I want all I want is to get the name and then print it back somehow this particular model did not work so I'm going to go back to the Deep SE coder model that we already have and then I'm going to do the same thing command shift L command shift L write a python code to get the name and then return the reverse of it so I'm not saying that it should get the string all I'm saying is this so it just wrote this python code and as you can see one of the problems that I face with a deep C coder is that it keeps on adding this um little com markdowns which I don't like it but anyways you can accept it or you can do all these shortcuts if you want I'm going to just simply accept it save it and then run it once I run it you can see that it takes the input and then it just gives you the output but it doesn't take the input from me so I'm going to just select all and then command shift let me close this so I don't need any of this please can you go away that's good so I can go here and then ask the same question or the other option is I can select all command shift l once again just to edit the highlighted code can you modify the code to take the user input so I'm going to ask this thing so that this code is modified to take the user input not necessarily give me whatever it is already there so it does it work let's try to accept everything and then see the code doesn't seem very clean and that is probably the problem with lower size models that you would find so let me delete the entire code come back once again here command shift L and then say write a python code to reverse the string and get the string as an input from the user send this and then see if it actually responds back okay it has created a code I'm going to accept it once again I'm going to remove this crappy markdown at the end and I have one more marck down here which I have to remove it and save the file and run the file so if I run the file as you can see it says raw input is not defined so that is a problem with python because probably python did not have anything called raw input and if you know a little bit of python you would know that that was probably there in the previous one and I'm going to just save it as input and run this once again it says please enter your text I'm going to say one little coder here and once you see it it has successfully reversed it 1 l i t t l e c o d e r so this way you can use it with any model so if youve got a different model all you have to do is control shift M and then you can just click the settings config file and then go here and then say for example I want mistal and I can say mistal and I can save this once again and come back here and then run this so for example I can go here and then say mistal and then control command shift L write a new simple python code what do you want a python code maybe I don't want a python code write a simple JavaScript application that can add two numbers and that's it send it and then technically it should write a JavaScript code even though I've uh saved the file as a p file maybe that's the dumbest thing to do so it says replace python with JavaScript and it does okay accept accept and uh once you accept everything you have the file ready and you can just make the changes that you want the point is that this may not be 100% replacement of your GitHub qu pilot because the quality of model depends a lot but if you have been wondering okay I have been part of a company I've got sensitive data which I don't want to send it to anybody in the cloud all I want is a local model that is successfully running and the then serving my own purpose and this is exactly the local model and you can call this model and you can see the locks also how much time it takes so that you can play with different models of different sizes of different varieties there are more to this thing than what I just showed you but the idea here is that to introduce AMA and also extension like continue that you can use to play with this kind of different local models I hope this tutorial was helpful to you in learning how to run a local co-pilot as an alternative to gith up co-pilot without any Cloud interface if you have any question let me know in the comment section otherwise see you in another video Happy prompting

Original Description

Learn how to use a 100% local 100% Private Local CoPilot without having to pay $20 to Github. Note: It's not as good as Github Copilot so test it for your use-case before you make a deicision! 🔗 Links 🔗 Continue Dev Github - https://github.com/continuedev/continue Ollama Library DeepSeek Coder - https://ollama.com/library/deepseek-coder ❤️ If you want to support the channel ❤️ Support here: Patreon - https://www.patreon.com/1littlecoder/ Ko-Fi - https://ko-fi.com/1littlecoder 🧭 Follow me on 🧭 Twitter - https://twitter.com/1littlecoder Linkedin - https://www.linkedin.com/in/amrrs/
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from 1littlecoder · 1littlecoder · 0 of 60

← Previous Next →
1 How to create your Free Data Science Blog on Github with Fastpages from Fastai
How to create your Free Data Science Blog on Github with Fastpages from Fastai
1littlecoder
2 Making Interactive Matplotlib Plots for Data Science Visualizations on Jupyter (Python)
Making Interactive Matplotlib Plots for Data Science Visualizations on Jupyter (Python)
1littlecoder
3 Create your first Data Science Web App using R Shiny
Create your first Data Science Web App using R Shiny
1littlecoder
4 How to create a Reproducible Example in R using reprex
How to create a Reproducible Example in R using reprex
1littlecoder
5 No Code Visualization using esquisse with Tableau-like Drag and Drop GUI in R
No Code Visualization using esquisse with Tableau-like Drag and Drop GUI in R
1littlecoder
6 Scrape HTML Table using rvest and Process them for insights using tidyverse in R
Scrape HTML Table using rvest and Process them for insights using tidyverse in R
1littlecoder
7 Google Teachable Machine Learning Build No Code AI solution
Google Teachable Machine Learning Build No Code AI solution
1littlecoder
8 Create meaningful fake tidy datasets in R using fakir [#rstats Package]
Create meaningful fake tidy datasets in R using fakir [#rstats Package]
1littlecoder
9 How to enable using R Programming with Visual Studio VS Code
How to enable using R Programming with Visual Studio VS Code
1littlecoder
10 Python, Community, Books - with Abhiram R - Bangpypers Co-organizers | 1littlecoder podcast
Python, Community, Books - with Abhiram R - Bangpypers Co-organizers | 1littlecoder podcast
1littlecoder
11 Growing a Tech Community across India - Anubha Maneshwar, Founder Girlscript | 1littlecoder Podcast
Growing a Tech Community across India - Anubha Maneshwar, Founder Girlscript | 1littlecoder Podcast
1littlecoder
12 Intro to Google Colab - How to use Colab
Intro to Google Colab - How to use Colab
1littlecoder
13 Intro to Plotly Express - Complex Interactive Charts with One-Line of Python Code
Intro to Plotly Express - Complex Interactive Charts with One-Line of Python Code
1littlecoder
14 Indic NLP Python Toolkit Open Source Development - iNLTK Creator Gaurav Arora | 1littlecoder Podcast
Indic NLP Python Toolkit Open Source Development - iNLTK Creator Gaurav Arora | 1littlecoder Podcast
1littlecoder
15 Do you want a career in Data Science - Tamil Webinar
Do you want a career in Data Science - Tamil Webinar
1littlecoder
16 Android Smartphone Analysis in R [Live Coding Screencast]
Android Smartphone Analysis in R [Live Coding Screencast]
1littlecoder
17 Programmatically create Images, Memes, Watermarks using Python with imgmaker
Programmatically create Images, Memes, Watermarks using Python with imgmaker
1littlecoder
18 Kaggle Walkthrough to get you started with Data Science - Webinar
Kaggle Walkthrough to get you started with Data Science - Webinar
1littlecoder
19 Community, Corporate Job, Coding - Gnana Lakshmi T C aka Gyan, WomenWhoCode Leadership Fellow
Community, Corporate Job, Coding - Gnana Lakshmi T C aka Gyan, WomenWhoCode Leadership Fellow
1littlecoder
20 Easy ggplot2 Theme Customization with {ggeasy} | Data Visualization in R
Easy ggplot2 Theme Customization with {ggeasy} | Data Visualization in R
1littlecoder
21 Excel to R - Pivot + Bar Chart in Excel  & R using tidyverse [Live Coding]
Excel to R - Pivot + Bar Chart in Excel & R using tidyverse [Live Coding]
1littlecoder
22 Excel to R #2 - VLOOKUP in Excel to LEFT_JOIN, MERGE in R
Excel to R #2 - VLOOKUP in Excel to LEFT_JOIN, MERGE in R
1littlecoder
23 5 websites to get Free Real-World Datasets for Data Science/ML Projects
5 websites to get Free Real-World Datasets for Data Science/ML Projects
1littlecoder
24 Excel to R #3 - APPROXIMATE VLOOKUP in Excel to FUZZY LEFT_JOIN in R
Excel to R #3 - APPROXIMATE VLOOKUP in Excel to FUZZY LEFT_JOIN in R
1littlecoder
25 Correlation-alternative PPS (Predictive Power Score) Python Package Demo
Correlation-alternative PPS (Predictive Power Score) Python Package Demo
1littlecoder
26 Automated Website Screenshots in R using {webshot}
Automated Website Screenshots in R using {webshot}
1littlecoder
27 Installing Custom RStudio Theme (Synthwave85)
Installing Custom RStudio Theme (Synthwave85)
1littlecoder
28 Analyse Google Trends Search Data in R using {gtrendsR}
Analyse Google Trends Search Data in R using {gtrendsR}
1littlecoder
29 3 Tips to ask question on Stack Overflow the right way to get answers
3 Tips to ask question on Stack Overflow the right way to get answers
1littlecoder
30 Learn Data Science with R - Mini Projects - Web Scraping Zomato
Learn Data Science with R - Mini Projects - Web Scraping Zomato
1littlecoder
31 Easily make Dumbbell Chart using {ggcharts} | Data Visualization in R
Easily make Dumbbell Chart using {ggcharts} | Data Visualization in R
1littlecoder
32 GET Hackernews Front Page Results using REST API in R
GET Hackernews Front Page Results using REST API in R
1littlecoder
33 Quickly deploy ML WebApps from Google Colab using ngrok
Quickly deploy ML WebApps from Google Colab using ngrok
1littlecoder
34 Use Jupyter Notebooks within VSCode (Visual Studio Code) in 2020
Use Jupyter Notebooks within VSCode (Visual Studio Code) in 2020
1littlecoder
35 Plotly Interactive Plots as Pandas Plotting Backend df.plot()
Plotly Interactive Plots as Pandas Plotting Backend df.plot()
1littlecoder
36 Stack Overflow Developer Survey 2020 Highlights for New Programmers
Stack Overflow Developer Survey 2020 Highlights for New Programmers
1littlecoder
37 Matplotlib Animation Charts in Python using Celluloid
Matplotlib Animation Charts in Python using Celluloid
1littlecoder
38 Coding, Postwoman, Passion Project Book - Liyas Thomas Open Source Developer - 1littlecoder podcast
Coding, Postwoman, Passion Project Book - Liyas Thomas Open Source Developer - 1littlecoder podcast
1littlecoder
39 Aspiring Data Scientist, Tips on How to learn Business Domain Knowledge
Aspiring Data Scientist, Tips on How to learn Business Domain Knowledge
1littlecoder
40 Bokeh Interactive Charts as Pandas Plotting Backend df.plot_bokeh()
Bokeh Interactive Charts as Pandas Plotting Backend df.plot_bokeh()
1littlecoder
41 Easy Fast Python Pandas Summary with Sidetable | Pandas Tips & Tricks
Easy Fast Python Pandas Summary with Sidetable | Pandas Tips & Tricks
1littlecoder
42 Inception, Content Ideas, Consistency - Srivatsan Srinivasan AIEngineering YouTube Content Creator
Inception, Content Ideas, Consistency - Srivatsan Srinivasan AIEngineering YouTube Content Creator
1littlecoder
43 ggplot2 Text Customization with ggtext | Data Visualization in R
ggplot2 Text Customization with ggtext | Data Visualization in R
1littlecoder
44 Penguins Dataset Overview - iris alternative | EDA Data Visualization in R
Penguins Dataset Overview - iris alternative | EDA Data Visualization in R
1littlecoder
45 YouTube Growth Tips, Content Creation - Bhavesh Bhatt, YouTuber (Data Science & Machine Learning) #7
YouTube Growth Tips, Content Creation - Bhavesh Bhatt, YouTuber (Data Science & Machine Learning) #7
1littlecoder
46 Matplotlib Animated Bar Chart Race in Python | Data Visualization
Matplotlib Animated Bar Chart Race in Python | Data Visualization
1littlecoder
47 Simple Python GUI Development using {guietta}
Simple Python GUI Development using {guietta}
1littlecoder
48 #8 Niche, Growth, Monetization - David Langer - YouTuber Dave on Data
#8 Niche, Growth, Monetization - David Langer - YouTuber Dave on Data
1littlecoder
49 Simple Fast 3-step Python OCR using Deep Learning 40+ Languages
Simple Fast 3-step Python OCR using Deep Learning 40+ Languages
1littlecoder
50 Github New Feature Profile Summary/Mini-Resume - Profile Views
Github New Feature Profile Summary/Mini-Resume - Profile Views
1littlecoder
51 Otto ML Assistant, GPT-3 on Philosophers, Nvidia-ARM - 3 ML Tech News
Otto ML Assistant, GPT-3 on Philosophers, Nvidia-ARM - 3 ML Tech News
1littlecoder
52 What is OpenAI GPT-3 - Hype, Examples, Worries
What is OpenAI GPT-3 - Hype, Examples, Worries
1littlecoder
53 Julia 1.5, Datamuse API, Live HDR+ Pixel 4a - Machine Learning Tech News
Julia 1.5, Datamuse API, Live HDR+ Pixel 4a - Machine Learning Tech News
1littlecoder
54 Self-driving Car Engineer sentenced, arXiv Dataset, AI/ML Startup Idea - Machine Learning Tech News
Self-driving Car Engineer sentenced, arXiv Dataset, AI/ML Startup Idea - Machine Learning Tech News
1littlecoder
55 GPT-3 Explorer, Ciphey (Automated Decryption), Py-Sudoku - ML Tech News
GPT-3 Explorer, Ciphey (Automated Decryption), Py-Sudoku - ML Tech News
1littlecoder
56 How to use Advanced Google Search to extract Email Ids from Linkedin
How to use Advanced Google Search to extract Email Ids from Linkedin
1littlecoder
57 Cartoonizer Toon-IT (AI Web App), GPT-3 Advice, Android Earthquake Detection - ML Tech News
Cartoonizer Toon-IT (AI Web App), GPT-3 Advice, Android Earthquake Detection - ML Tech News
1littlecoder
58 Flow - R Package to visualize code logic, functions as a Flow Diagram
Flow - R Package to visualize code logic, functions as a Flow Diagram
1littlecoder
59 Build GPT-3-like Language Model on Google Colab with minGPT [PyTorch]
Build GPT-3-like Language Model on Google Colab with minGPT [PyTorch]
1littlecoder
60 Create a Pencil Sketch Portrait with Python OpenCV
Create a Pencil Sketch Portrait with Python OpenCV
1littlecoder

Related Reads

Up next
How To Connect Lovable To GitHub 2026 | Full Setup In Minutes
Tutorial Stack
Watch →