Show HN: Use Code Llama as Drop-In Replacement for Copilot Chat (continue.dev)
Code Llama was released, but we noticed a ton of questions in the main thread about how/where to use it — not just from an API or the terminal, but in your own codebase as a drop-in replacement for Copilot Chat. Without this, developers don't get much utility from the model.
This concern is also important because benchmarks like HumanEval don't perfectly reflect the quality of responses. There's likely to be a flurry of improvements to coding models in the coming months, and rather than relying on the benchmarks to evaluate them, the community will get better feedback from people actually using the models. This means real usage in real, everyday workflows.
We've worked to make this possible with Continue (https://github.com/continuedev/continue) and want to hear what you find to be the real capabilities of Code Llama. Is it on-par with GPT-4, does it require fine-tuning, or does it excel at certain tasks?
If you’d like to try Code Llama with Continue, it only takes a few steps to set up (https://continue.dev/docs/walkthroughs/codellama), either locally with Ollama, or through TogetherAI or Replicate's APIs.
55 comments
[ 4.5 ms ] story [ 131 ms ] threadAre you seeing good results with code llama yet?
Can you explain what you mean by this, maybe provide some examples?
All said, this was after like 5 minutes of playing with the 13B model, and was not using any kind of human/assistant formatting, hence the need for at least simple prompting to make that work (or fine-tuning if it isn't trained yet on conversational data)
We're primarily focusing on VSCode, IntelliJ and Neovim for Cody. Of course I'll be working on an Emacs version, but that's kinda best-effort for now.
As for the new crop of codegen models, they seem to be getting to parity with GPT/Claude/Bard-class models for code autocompletions, but not so much for other tasks.
We're working on incorporating OSS models, but I'd be surprised if they're ready for prime-time this year. I think next year they'll be huge.
Just my $0.02, take with a grain of salt. Shit moves fast.
[1]: https://github.com/github/copilot.vim
"Please parse <dict name> and re-key it by <field>", making sure to remove entires where <x> is Blue and converting <y> to Yellow."
and it'll dump out a 40 line (working!) parser in ~3 seconds I can then further customize. It's honestly remarkable as you can then interactively ask it to update/adjust "Can you make that a reusable function where I pass in X,Y, and Z?" "Can you convert that to a tuple comprehension?", "Can you unroll that loop and add inline comments explaining the regex?" are all futher-drilldowns I'd use and expect good responses to.
I do have ShellGPT setup to give me (similar generic) responses in the terminal; but I haven't found a good way to let it see my code yet to let it parse my data structures as fluidly.
I believe if you want to do the inference using Replicate or Together, you’ll have to sign up for their services.
So it's either have a Mac or don't run locally if you want to use this service?
(I've gotten this working, more or less, but don't have the hardware to make it practical so I can't give any feedback about Continue or the model.)
This is my project, where the goal is to Unite your AI-stack inside your editor (so, Speech-to-text, Local LLMs, Chat GPT, Retrieval Augmented Gen, etc).
It's built atop a Language Server, so, while no one has made an IntelliJ client yet, it's simple to. I'll help you do it if you make a GH Issue!
I should just buy a super computer..
Honestly this is a pretty standard workstation setup now. The days of 16GB being sufficient are pretty much over. RAM is cheap. And you can run the 7b model with well under that much.
Where did this expectation of free compute come from? Copilot costs too.
VC funded growth & users at any cost and figure out profitability later model?
i.e. hn gang
You'd be surprised how affordable it can be. Mine sits on a tailnet with my laptop and handles most of the workload for me. Especially while I'm at home, I barely even notice that my dev environment is not running "locally." Also doubles great as a host for audiobookshelf, jellyfin, archivebox, and more. I have virt manager set up too (client on laptop, virtmanager service running on desktop) so I can easily spin up all sorts of VMs. I love it. I spent about $2k but I bought top of the line.
The 7B model should run on fairly reasonably priced GPUs. So if you have a desktop PC you can probably get a second hand GPU.
My MacBook Pro runs the larger model fine, wouldn’t call it a super computer, but I do think it’s a rather expensive machine.
[0]: https://www.cursor.so/
I don't use Cursor, but consider that GPT-3 sat around for months and nobody was really talking about "AI doom" and "the lightcone" until OpenAI put a good chat UI layer over it.
I would argue that actually capturing the value from these models lies mostly in the UI: allowing the user to seamlessly and quickly extract useful information from the model.
[0]: https://gist.github.com/david-crespo/d9dbefe5a50c0f0da9ac3de...
Large enterprises can run a private instance of it, but OpenAI is paid for that (indirectly via Microsoft).
I've yet to try code stuff with AI (even Copilot). How well do local models like Code Llama work compared to GPT? When I use ChatGPT, GPT 3.5 feels a decade behind GPT 4. Half the answers are flawed. It's only GPT4 that boosts my productivity to an impressive level.
If you look at local text models for fiction or chat, they seem way behind even 3.5. See the examples table at https://docs.sillytavern.app/usage/faq/#what-do-you-mean-whe...
Code tasks are the sort of thing where I need as much accuracy as possible. Would something like Code Llama actually boost productivity or is this just "look, we can technically do it too, even if the result is awful" thing?