Live data from Hacker News

Code Llama, a state-of-the-art large language model for coding

ai.meta.com

351–360 of 525 posts

Re: Code Llama, a state-of-the-art large language model for coding

#351
How much am I’m missing out on with tools like this or code pilot, compared to using GPT-4?

I guess since Xcode doesn’t have a good plug-in architecture for this I began experimenting more with a chat interface.

So far gpt-4 has seemed quite useful for generating code, reviewing code for certain problems, etc.

Re: Code Llama, a state-of-the-art large language model for coding

#352

Business opportunity: I'd pay money for NICE desktop software that can run all these different models (non-subscription, "2-year updates included, then discount pricing" modal perhaps). My wishlist: - Easy plug & play model installation, and trivial to change which model once installed. - Runs a local web server, so I can interact with it via any browser - Ability to feed a model a document or multiple documents and…

GPT4All satisfies these requirements, except for (AFAIK) running a web server

https://gpt4all.io/index.html

Re: Code Llama, a state-of-the-art large language model for coding

#353

Copilot has been working great for me thus far, but it's limited by its interface. It seems like it only knows how to make predictions for the next bit of text. Is anyone working on a code AI that can suggest refactorings? "You should pull these lines into a function, it's repetitive" "You should change this structure so it is easier to use" Etc

Give Cody a try! (Cody.dev) With Cody you can create embeddings for your entire repo, so Cody will have much greater context about your code base and the problems you're trying to solve. Disclaimer: I just joined Sourcegraph a few weeks ago.

Cody is great, it had become my go-to (and I pay for Github Co-pilot).

With that said, they have recently changed the architecture, with the local install required, and I have not managed (yet) to get it working with NixOS. Once I have some more time, I will try again - it looks like there will be some hoops to go through. https://nixos.org/manual/nixpkgs/stable/#ssec-pkgs-appimageT...

Kudos to the Source Graph team, Source Graph's original product was nicely thought out and ahead of it's time. Nice to see how the original product gave a nice basis for building out Cody.

Re: Code Llama, a state-of-the-art large language model for coding

#354

Works nearly out of the box with llama.cpp, which makes it easy to try locally: https://github.com/ggerganov/llama.cpp/issues/2766 Here's some output from q4_0 quantization of CodeLlama-7b-Python (first four lines are the prompt): # prints the first ten prime numbers def print_primes(): i = 2 num_printed = 0 # end of prompt while num_printed It will be interesting to see how the larger models perform, especially afte…

Simple, concise, more efficient:

  def primes_upto(limit: int):
    """Generate prime numbers  2 3 5 7 11 13 17 19 23 29

Re: Code Llama, a state-of-the-art large language model for coding

#355
This is great for asking questions like "how do I do x with y" and this code > isn't working, whats wrong? Much faster that googling, or a great basis for forming a more accurate google search.

Where its a bit shit is when its used to provide auto suggest. It hallucinates plausible sounding functions/names, which for me personally are hard to stop if they are wrong (I suspect that's a function of the plugin)

Re: Code Llama, a state-of-the-art large language model for coding

#356
I want "safety" to be opt-in due to the inaccuracy it introduces. I don't want to pay that tax just because someone is afraid I can ask it how to make a bomb when I can just Google that and get pretty close to the same answer already, and I certainly don't care about being offended by its answers.

Re: Code Llama, a state-of-the-art large language model for coding

#357

Business opportunity: I'd pay money for NICE desktop software that can run all these different models (non-subscription, "2-year updates included, then discount pricing" modal perhaps). My wishlist: - Easy plug & play model installation, and trivial to change which model once installed. - Runs a local web server, so I can interact with it via any browser - Ability to feed a model a document or multiple documents and…

I work for a Fortune 100 company with 80,000+ employees. All of us are explicitly forbidden from using any sort of AI/LLM tool without written permission from the head of legal AND the CEO. In other words, nobody is going to get permission. The concerns are 2 fold - 1. We might inadvertently use someone else’s intellectual property. 2. Someone else might gain access to our intellectual property. What you are describi…

Change company. Honestly. If you go as far as to forbid your partners in crime (workers sigh..) to explore new uncharted territory at all - well ya know someone will/might just win by not doing that.

Re: Code Llama, a state-of-the-art large language model for coding

#358
post #352

Business opportunity: I'd pay money for NICE desktop software that can run all these different models (non-subscription, "2-year updates included, then discount pricing" modal perhaps). My wishlist: - Easy plug & play model installation, and trivial to change which model once installed. - Runs a local web server, so I can interact with it via any browser - Ability to feed a model a document or multiple documents and…

GPT4All satisfies these requirements, except for (AFAIK) running a web server https://gpt4all.io/index.html

It runs a web server too - if you start up the desktop app it can run a web server with an API on a port for you.

Re: Code Llama, a state-of-the-art large language model for coding

#359

Earlier quoted context omitted.

https://gradient.ai/ is doing that with llama2

Looks really promising. I wonder if the similar pricing to OpenAI means that Gradient is also(?) bleeding money even if they get a good customer base. Or are these prices sustainable over time?

Good question, esp as Gradient fine-tuning is so much cheaper than Open AI's

Re: Code Llama, a state-of-the-art large language model for coding

#360

Business opportunity: I'd pay money for NICE desktop software that can run all these different models (non-subscription, "2-year updates included, then discount pricing" modal perhaps). My wishlist: - Easy plug & play model installation, and trivial to change which model once installed. - Runs a local web server, so I can interact with it via any browser - Ability to feed a model a document or multiple documents and…

Agreed. After several rounds of setting up various python environments and tinkering with directory structures and debugging glitches and quantizing models just to end up playing around for a few minutes and getting bored, it would be nice to have the experience just be seamless. I wouldn't try to set up a workflow around seriously using what's out there to run on localhost now. That said, non-subscription is essenti…

I've been trying to push things in that direction with my LLM tool - the idea is to have Python plugins which you can install that do all of the irritating details to get a model setup.

I've not yet been able to solve the challenge of needing CUDA etc for some models though!

Plugins so far: https://llm.datasette.io/en/stable/plugins/directory.html

Post reply on HN