Live data from Hacker News

Meta AI releases Code Llama 70B

twitter.com

221–230 of 311 posts

Re: Meta AI releases Code Llama 70B

#221
post #217

Earlier quoted context omitted.

I got it to build and run the example app on my M3 max with 36 gb ram. Memory pressure was around 32 gb

Did you quantise it? At what level and what was your impression compared to other recent smaller models at that quantisation, if so?

No I just ran it out of the box but I had to modify the source code to run for Mac.

Instructions here: https://github.com/facebookresearch/llama/pull/947/

Re: Meta AI releases Code Llama 70B

#222

Earlier quoted context omitted.

I think your take is a bit optimistic. I like quantization as much as the next person, but even the 2-bit model won’t fit entirely on a 4090: https://huggingface.co/TheBloke/Llama-2-70B-GGUF I would be uncomfortable recommending less than 4-bit quantization on a non-MoE model, which is ~40GB on a 70B model.

The great thing about gguf is that it will cross to system RAM if there isn't enough VRAM. It will be slower, but waiting a couple minutes for a prompt response isn't the worst thing if you are the type that would get use out of a local 70b parameter model. Then again, one could have grabbed 2x 3090s for the price of a 4090 and ended up with 48gb of VRAM in exchange for a very tolerable performance hit.

GGUF is just a file format. The ability to offload some layers to CPU is not specific to it nor to llama.cpp in general - indeed, it was available before llama.cpp was even a thing.

Re: Meta AI releases Code Llama 70B

#223
post #23

Not sure who this is aimed at? The avg programmer probably doesn’t have the gear on hand to run this at the required pace Cool nonetheless

There are companies like phind that offer copilot-like services using finetuned versions of CodeLlama-34B, which imo are actually good. But I do not know if such a larger model is gonna be used in such a context.

Re: Meta AI releases Code Llama 70B

#224

Earlier quoted context omitted.

https://continue.dev/ is a good place to start.

Continue doesn’t support tab completion like Copilot yet. A pull/merge request is being worked on: https://github.com/continuedev/continue/pull/758

Release coming later this week!

Re: Meta AI releases Code Llama 70B

#225

Earlier quoted context omitted.

https://continue.dev/ is a good place to start.

This looks really good..

It's great. It's super easy to install ollama locally, `ollama run `, change the continue config to point to it, and it just works. It even has an offline option by disabling telemetry.

Re: Meta AI releases Code Llama 70B

#226
post #163

I'm not very plugged into how to use these models, but I do love and pay for both ChatGPT and GitHub Copilot. How does one take a model like this (or a smaller version) and leverage it in VS Code? There's a dizzying array of GPT wrapper extensions for VS Code, many of which either seem like kind of junk (10 d/ls, no updates in a year), or just lead to another paid plan, at which point I might as well just keep my GH…

I’ve been working on continue.dev, which is completely free to use with your own Ollama instance / TogetherAI key, or for a while with ours. Was testing with Codellama-70b this morning and it’s clearly a step up from other OS models

How do you test a 70B model locally? I've tried to query, but the response is super slow.

Re: Meta AI releases Code Llama 70B

#227

Earlier quoted context omitted.

I am not too familiar with LLMs and GPUs (Not a gamer either). But want to learn. Could you please expand on what else would be capable of running such models locally? How about a linux laptop/desktop with specific hardware configuration?

It pretty much comes down to 2 factors which is memory bandwidth and compute. You need a high enough memory bandwidth to be able to "feed" the compute and you need beefy enough compute to be able to keep up with the data that is being fed in by the memory. In theory a single Nvidia 4090 would be able to run a 70b model with quantization at "useable" speeds. The reason mac hardware is so capable in AI is because of th…

A single RTX 4090 can run at most 34b models with 4-bit quantization. You'd need 2-bit for 70b, and at that point quality plummets.

Compute is actually not that big of a deal once generation is ongoing, compared to memory bandwidth. But the initial prompt processing can easily be an order of magnitude slower on CPU, so for large prompts (which would be the case for code completion), acceleration is necessary.

Re: Meta AI releases Code Llama 70B

#228
Everyone is mentioning using 4090 and a smaller model, but I rarely see an analysis where the energy consumption is used.

I think Copilot is already highly subsidized by Microsoft.

Let's say you use Copilot around 30% of your daily work hours. How much kWh does an opensource 7B or 13B model use then in a month on one 4090?

EDIT:

I think for a 13B at 30% use per day it comes around 30$/no on energy bill.

So probably with a even more smaller but capable model can beat the Copilot monthly subscription.

Re: Meta AI releases Code Llama 70B

#229

Earlier quoted context omitted.

I’ve been working on continue.dev, which is completely free to use with your own Ollama instance / TogetherAI key, or for a while with ours. Was testing with Codellama-70b this morning and it’s clearly a step up from other OS models

How do you test a 70B model locally? I've tried to query, but the response is super slow.

Personally I was testing with TogetherAI because I don't have the specs for a local 70b. Using quantized versions helps (Ollama's downloads 4-bit by default, you can get down to 2), but it would still require a higher-end Mac. Highly recommend Together, it runs quite quickly and is $0.9/million tokens

Re: Meta AI releases Code Llama 70B

#230

Credit where credit is due, Meta has had a fantastic commitment towards open source ML. You love to see it.

Yes but: if the commitment is driven by internal researchers and coders standing firm about making their work open source (a rumour I’ve heard a couple times), most of the credit goes to them.
Post reply on HN