Live data from Hacker News

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

ai.meta.com

511–520 of 525 posts

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

#511

Earlier quoted context omitted.

Someone should turn this into a product! You highlight the code you want to optimize, and it posts it to hn as a semi-contextually-appropriate comment to invite code golfing, and the highest rated reply gets posted back to your repo as a PR.

What are some existing data source that are somewhat analogous to this? e.g., Project Euler.

There's also code golf stackexchange[0] and iirc reddit has some daily programmer challenges too

[0] http://codegolf.stackexchange.com/

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

#512
post #299

Earlier quoted context omitted.

But Yann LeCun seems to think the safety problems of eventual AGI will be solved somehow. Nobody is saying this model is AGI obviously. But this would be an entry point into researching one small sliver of the alignment problem. If you follow my thinking, it’s odd that he professes confidence that AI safety is a non issue, yet from this he seems to want no part in understanding it. I realize their research interest m…

It’s not that odd and I think you’re overestimating the importance of user submitted data for the purposes of alignment research. In particular because it’s more liability for them to try to be responsible for outputs. Really though, this way they get a bunch of free work from volunteers in open source/ML communities.

Yes sounds like a reasonable explanation, thanks.

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

#513
post #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

Whether 1 should be a prime number or not wasn't clear-cut for centuries.

Current consensus has settled on excluding 1 from the definition, but there are examples of publications well into the 20th century that still included 1 as prime.

Fascinating read about the subject: https://arxiv.org/pdf/1209.2007.pdf

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

#517
post #374

Earlier quoted context omitted.

You probably do not have a child of 7 years old because they do not know at that age what is a prime number. Second, basic math still that you never or rarely use or with very large time between usage might get rusty. You may understand the concept but not find the optimal solution. The way you are responding here shows quite a lot about how you are short sighted by instant-failing someone with a single question inst…

> You probably do not have a child of 7 years old because they do not know at that age what is a prime number. it's part of the curriculum for children of this age where I grew up (I did check) > The way you are responding here shows quite a lot about how you are short sighted by instant-failing someone with a single question instead of trying to asses the whole person as much as you can. On you side, you are wasting…

[deleted]

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

#518

Earlier quoted context omitted.

That seems daft. You can, I suppose, contract your code so that it’s context free and uses less tokens, but that makes it more confusing for humans and language models . Taken to the extreme, you can see obviously with one letter functions and variables like i, j, k the model will be able to infer literally nothing and, thus, produce arbitrary nonsense. Clearly the solution is to do what we already do to manage compl…

64k tokens ought to be enough for anybody.

I see what you did there mr Gates

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

#519
post #212

Earlier quoted context omitted.

Apple Silicon, especially an M1 Max Studio seems to be an interesting machine to hang on to as the models become more and more efficient with using less and less. If there's nay other opinions or thoughts on this, I'd be very happy to learn as well. I have considered the eGPU route connected to a 1L PC such as a thinkcentre m80/90.

I have a 64 GB M1 Max MBP, and I'd say unless you really have some academic interest towards messing with open models, for now accessing SOTA models via a REST API has better latency for a given quality. Claude 1.2 instant is as fast as 3.5, follows instructions at a quality closer to 4, and has a 100k context window. Hard to compete with that with an open source model right now.

Thanks for the insight.

I do have interest in local models (say running on a fixed list of document structures)

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

#520
post #419

Earlier quoted context omitted.

Approx 0% of devs need to know what the earth is, but from lots of interviews I've given I've found consistent correlation between lack of basic knowledge and lack of ability to solve many things. It was so strong we found it much more cost effective to cut people early that didn't know at least a few of some standard knowledge items.

This is some really good advice here. It's always a good idea to throw out all candidates that can't immediately recall what the first theoretical result of the rest mass of a Higgs boson was in the first paper describing was. Basic knowledge like this just correlates so well with ability to make proper decisions in API architecture.

I'd also save time and money cutting people that read as poorly as you're demonstrating.

Try actually measuring basic knowledge with competency at programming before thinking your opinion is better than measured data. Peer reviewed research finds similar results [1].

And yes, we tested all this carefully before enacting it. Interviews cost time and money, so giving 100% on every candidate despite quick signals is a waste of time and money that would be better spent on other candidates. If you want the best outcome then you allocate scarce resources based on expected returns, not on unfounded beliefs.

[1] https://helloworld.raspberrypi.org/articles/hw12-language-sk...

Post reply on HN