Live data from Hacker News

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

ai.meta.com

281–290 of 525 posts

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

#281
post #122

Never before in the history of mankind was a group so absolutely besotted with the idea of putting themselves out of a job.

We're not looking at a product that's putting anyone out of a job though, we're looking at a product that frees up a lot of time, and time is great.

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

#282

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…

I'd fail an interview candidate that suggested adding 1 each time for subsequent prime testing

The simple-to-understand, greedy algorithm is always the correct first choice till you have to deal with a constraint.

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

#283
post #216

Earlier quoted context omitted.

Well look for yourself: https://g.co/bard/share/e8d14854ccab The rm answer is now "hardcoded" (aka, manually entered by reviewers), the same with the prime or fibonnaci. This is why we both see the same code across different accounts (you can make the test if you are curious).

Okay, so the entire point of the comment is "A current model which does well used to be bad!" With all due respect, is that a valuable thing to say? Isn't it true of them all?

Isn't the model STILL doing bad if it needs to present a hard-coded answer?

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

#284

Earlier quoted context omitted.

I'd fail an interview candidate that suggested adding 1 each time for subsequent prime testing

The simple-to-understand, greedy algorithm is always the correct first choice till you have to deal with a constraint.

it's not that though, there's several other typical optimisations in there

just not the super obvious one that demonstrates extremely basic understanding of what a prime number is

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

#285
post #216

Earlier quoted context omitted.

I don't get comments like this, we can all go and test Bard and see that what you're saying isn't true https://g.co/bard/share/95761dd6d45e

Well look for yourself: https://g.co/bard/share/e8d14854ccab The rm answer is now "hardcoded" (aka, manually entered by reviewers), the same with the prime or fibonnaci. This is why we both see the same code across different accounts (you can make the test if you are curious).

That's a hallucination. Here's a similar made-up answer:

https://g.co/bard/share/9ce2e6a11e83

LLM's aren't trained on their own documentation, and can't introspect, so generally can't answer questions like this.

(`"Mark House" "Bard"` gives no results on Google.)

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

#286

Earlier quoted context omitted.

That's not a business strategy. Likely this is driven by ego. Yann wants to cement his position as a leader in AI and while he clearly does not appreciate LLMS at all, he realizes that he needs to make waves in this area. Mark needs a generative product and has invested tremendously in the infrastructure for AI in general (for recommendation). He needs researchers to use that infrastructure to create a generative pro…

It’s not just ego. It’s accelerationism. Giving this stuff away from free is probably going to accelerate AI a decade faster than if it was kept locked up behind closed doors at Google, OpenAI, etc. And if you’re an optimist then that actually might make the world a better place much faster.

Realistically, AI will ramp up the good and the bad.

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

#287
post #261

no more work soon?

The ability to work less historically has always came as a byproduct of individuals earning more per hour through productivity increases. The end goal of AI isn't to make your labour more productive, but to not need your labour at all. As your labour becomes less useful if anything you'll find you need to work more. At some point you may be as useful to the labour market as someone with 60 IQ today. At this point mos…

What?

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

#288

Earlier quoted context omitted.

Likely trained on internal code.

That model is trained on synthetically AI-generated code, not internal code. It suggests that synthetic training could be the future in increasing capability of smaller models (and perhaps bigger ones too). AI will train AI.

I thought this specific model was referring to self-instruction using both synthetic prompts (generated from few-shot in-context prompting of presumably some OpenAI model, the original paper used text-davinci-002) as well as synthetic code (presumably Code Llama 7 like for self-instruct) subsequently validated with execution?

The differences being it's not just training on unvalidated synthetic data and this specific method (per the unnatural questions paper) results in increased instruction diversity which confers some added advantage and I'm assuming explains the performance gain over the also synthetic self-instruct code?

I may be misunderstanding but this seems more nuanced than just training on synthetically AI-generated code and is more validating of synthetic instructions (i.e. low resource setting) rather than synthetic code (i.e. high resource setting).

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

#289

Llama is a very cool language model, it being used for coding was all but inevitable. I especially love it being released open for everyone. I do wonder about how much use it'll get, seeing as running a heavy language model on local hardware is kinda unlikely for most developers. Not everyone is runnning a system powerful enough to equip big AIs like this. I also doubt that companies are going to set up large AIs for…

12Gb of VRAM lets you run 13B models (4-bit quantized) with reasonable speed, and can be had for under $300 if you go for previous-generation NVidia hardware. Plenty of developers around with M1 and M2 Macs, as well.

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

#290

Earlier quoted context omitted.

"If software engineering becomes a solved problem" It will simply move to a higher level of abstraction. Remind me, how many programmers today are writing in assembly?

due to the way LLMs work: it will be able to handle that level of abstraction in exactly the same way

LLM is not strong AI. It's not even AI.

So no. You will always need that strong "I" at the top somewhere.

Post reply on HN