What's the license of the project? There is no license file in the repo
FauxPilot – an attempt to build a locally hosted version of GitHub Copilot
51–60 of 86 posts
Re: FauxPilot – an attempt to build a locally hosted version of GitHub Copilot
#52Bravo! I'm so glad this is born. I'm curious about its model, SalesForce CodeGen. Does it train on all the public repos on GitHub? Does Copilot have access to private repos that CodeGen cannot access? Also, it would be really cool if I can personalize FauxPilot by feeding it with all my repos on GitHub. Sometimes I just need to reimplement a function I've written before but it's really hard to find where my old code…
Copilot only accesses the private repositories for the user it is authenticated with. I'm fine with them accessing public repositories, as long as they respect the license. Which they probably aren't for private? On a related note, Google apparently treats their free customers in a way where all their data is mixed in for the algorithm, but apparently not the data from accounts who use Google Suite (paid business acc…
They don't respect the license.
Re: FauxPilot – an attempt to build a locally hosted version of GitHub Copilot
#53With model sizes starting at 2GB, wouldn't the model be hopelessly overdetermined for small codebases?
Re: FauxPilot – an attempt to build a locally hosted version of GitHub Copilot
#54man I finally got a 3080 and. ow you're telling me I need a second?! haha seriously though, I'm kinda sad the model size is 2GB then straight to 13GB.
In theory the 2B model should be somewhere in between, whenever it gets fixed.
Edit: sadly, it's not that easy. Removing that check lets the 2B model load, but it produces gibberish. I've opened an issue with FasterTransformer here, and will also try to debug it further myself, but unfortunately it's not obvious how they're using that assumption. https://github.com/NVIDIA/FasterTransformer/issues/268
Re: FauxPilot – an attempt to build a locally hosted version of GitHub Copilot
#55This is awesome! How is the quality vs. GitHub Copilot for Python or JavaScript?
Re: FauxPilot – an attempt to build a locally hosted version of GitHub Copilot
#56Earlier quoted context omitted.
It might be interesting to look into existing projects like Gitea or SourceHut. Gitea specifically seems to have a similar look and feel as GitHub.
Oof. GitLab is really the only contender to GitHub. Both gitea and sr.ht don’t have search features. So we are really starting from square one here
I built my own web frontend for it a while back: https://simonwillison.net/2020/Nov/28/datasette-ripgrep/
Re: FauxPilot – an attempt to build a locally hosted version of GitHub Copilot
#57Bravo! I'm so glad this is born. I'm curious about its model, SalesForce CodeGen. Does it train on all the public repos on GitHub? Does Copilot have access to private repos that CodeGen cannot access? Also, it would be really cool if I can personalize FauxPilot by feeding it with all my repos on GitHub. Sometimes I just need to reimplement a function I've written before but it's really hard to find where my old code…
It is possible to fine-tune CodeGen using Huggingface Transformers! Then you'd be able to fine-tune it on your own code and use the resulting model. However, training is more expensive -- you'd need an A6000 or better to train the 6B model. Something like the following should work: deepspeed --num_gpus 1 --num_nodes 1 run_clm.py --model_name_or_path=Salesforce/codegen-6B-multi --per_device_train_batch_size=1 --learni…
Re: FauxPilot – an attempt to build a locally hosted version of GitHub Copilot
#58Earlier quoted context omitted.
> I just need to reimplement a function I've written before There was a project here some time back that allowed to call function using its hash. This avoided replication. It was entirely different paradigm to resolve dependencies. Anyone remembers its name? It was controversial here but it was interesting nonetheless.
Are you talking about Unison? https://www.unison-lang.org/learn/the-big-idea/
Re: FauxPilot – an attempt to build a locally hosted version of GitHub Copilot
#59Re: FauxPilot – an attempt to build a locally hosted version of GitHub Copilot
#60Earlier quoted context omitted.
It is possible to fine-tune CodeGen using Huggingface Transformers! Then you'd be able to fine-tune it on your own code and use the resulting model. However, training is more expensive -- you'd need an A6000 or better to train the 6B model. Something like the following should work: deepspeed --num_gpus 1 --num_nodes 1 run_clm.py --model_name_or_path=Salesforce/codegen-6B-multi --per_device_train_batch_size=1 --learni…
How do I create a dataset?
{"text": "contents_of_source_file_1"}
{"text": "contents_of_source_file_2"}
...
And then pass that my_code.json as the dataset name.