Live data from Hacker News

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

ai.meta.com

471–480 of 525 posts

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

#471

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

at refact.ai we have different functions for code refactoring, making it shorter, simplifying complexity, etc

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

#473

Earlier quoted context omitted.

It's been confirmed by multiple (unofficial) sources that GPT-4 is 8 models, each 220B parameters. Another rumor is GPT-4 being 16x111B models. There's a quite fresh and active project replicating something similar with herd of llamas: https://github.com/jondurbin/airoboros

Can you provide some of these sources?

All of these should have close ties with OpenAI, but no one from inside confirmed it as far as I know.

https://twitter.com/swyx/status/1671272883379908608 https://twitter.com/soumithchintala/status/16712671501017210... https://twitter.com/MParakhin/status/1670666605427298304

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

#474
post #93

Earlier quoted context omitted.

I've been using this or something similar internally for months and love it. The thing that gets downright spooky is the comments believe it or not. I'll have some method with a short variable name in a larger program and not only does it often suggest a pretty good snippet of code the comments will be correct and explain what the intent behind the code is. It's just a LLM but you really start to get the feeling the…

I just don’t understand how anyone is making practical use of local code completion models. Is there a VS Code extension that I’ve been unable to find? HuggingFace released one that is meant to use their service for inference, not your local GPU. The instruct version of code llama could certainly be run locally without trouble, and that’s interesting too, but I keep wanting to test out a local CoPilot alternative tha…

there's also Refact (https://github.com/smallcloudai/refact/) with support of several open-source code LLMs and extension for VS Code and Jetbrains

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

#476

Earlier quoted context omitted.

That can't be, because primes are numbers greater than 1.

They said nothing about not printing any non-primes.

This is a good point; English alone is an awful specification language. Everyone knows what you mean by "print the first ten prime numbers" but only by idiom and cultural context. This is why LLM is a good fit here, because -- when it works -- it includes all three aspects.

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

#477

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…

Interesting here and in some of the other comments in this thread is that 1 is not a prime number ¹)!

Now granted, that's more or less by definition and I don't doubt there's communities and fields where it is considered one, but still shows some of the subtleties at play when using language models.

¹) https://www.google.com/search?q=is+1+a+prime+number

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

#478
post #61
post #47

Feels like we're like a year away from local LLMs that can debug code reliably (via being hooked into console error output as well) which will be quite the exciting day.

Have you tried Code Llama? How do you know it can't do it already? In my applications, GPT-4 connected to a VM or SQL engine can and does debug code when given error messages. "Reliably" is very subjective. The main problem I have seen is that it can be stubborn about trying to use outdated APIs and it's not easy to give it a search result with the correct API. But with a good web search and up to date APIs, it can d…

> But with a good web search and up to date APIs, it can do it.

How do you do that?

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

#479
post #462

Earlier quoted context omitted.

Except, at my company they block software like that. Not only do they block it, but if you try to go to it a security person will immediately call your manager and ask what you are doing.

And people can access those systems via their own devices without the company knowing.

Well yes, but then I’d have to pay for it. That ain’t happening.

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

#480

Anyone know of a good plugin for the JetBrains IDE ecosystem (namely, PyCharm) that is CoPilot but with a local LLM?

try refact.ai they have plugin for JetBrains IDEs and support for local LLMs https://github.com/smallcloudai/refact/
Post reply on HN