Live data from Hacker News

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

ai.meta.com

201–210 of 525 posts

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

#201

TheBloke doesn’t joke around [1]. I’m guessing we’ll have the quantized ones by the end of the day. I’m super excited to use the 34B Python 4 bit quantized one that should just fit on a 3090. [1] https://huggingface.co/TheBloke/CodeLlama-13B-Python-fp16

can it be quantised further so it can run locally on a normal laptop of a developer?

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

#202
post #191
post #132

Earlier quoted context omitted.

But it won't stop there. Why would it stop at some arbitrarily defined boundary? The savings associated with no longer having to pay programmers the amounts of money that they believe they are worth (high enough to result in collusion between employers) are just too tempting.

Some form of AI will eventually take over almost all existing jobs. Whether those jobs evolve or not somehow and new jobs replace them, we will see. But it's definitely not just programmers. And it will take time. Society needs to adjust. Stopping progress would not be a solution and is not possible. However, hopefully we can pause before we create digital animals with hyperspeed reasoning and typical animal instinct…

Continuing your aside…

Humans don’t become obsolete, we become bored. This tech will make us bored. When humans get too bored and need shit to stir up, we’ll start a war. Take US and China, global prosperity is not enough right? We need to stoke the flames of war over Taiwan.

In the next 300 years we’ll wipe out most of each other in some ridiculous war, and then rebuild.

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

#204
post #174

As a complete noob at actually running these models, what kind of hardware are we talking here? Couldn't pick that up from the README. I absolutely love the idea of using one of these models without having to upload my source code to a tech giant.

34B should be able to run on 24GiB consumer graphics card, or 32GiB Mac (M1 / M2 chips) with quantization (5~6bit) (and 7B should be able to run on your smart toaster).

Are there cloud offerings to run those models on somebody's else computer?

Any "eli5" tutorial on how to do so, if so?

I want to give these models a run but I have no powerful GPU to run them on so don't know where to start.

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

#205
post #201

TheBloke doesn’t joke around [1]. I’m guessing we’ll have the quantized ones by the end of the day. I’m super excited to use the 34B Python 4 bit quantized one that should just fit on a 3090. [1] https://huggingface.co/TheBloke/CodeLlama-13B-Python-fp16

can it be quantised further so it can run locally on a normal laptop of a developer?

“Normal laptop” is kind of hard to gauge but if you have a M series MacBook with 16GB+ RAM, you will be able to run 7B comfortably and 13B but stretching your RAM (cause of the unified RAM) at 4 bit quantization. These go all the way down to 2 bit but I personally I find the model noticeably deteriorate anything below 4 bit. You can see how much (V)RAM you need here [1].

[1] https://github.com/ggerganov/llama.cpp#quantization

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

#206

TheBloke doesn’t joke around [1]. I’m guessing we’ll have the quantized ones by the end of the day. I’m super excited to use the 34B Python 4 bit quantized one that should just fit on a 3090. [1] https://huggingface.co/TheBloke/CodeLlama-13B-Python-fp16

What kind of cpu/gpu power do you need for quantization or these new gguf formats ?

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

#207
post #11

Even the 7B model of code llama seems to be competitive with Codex, the model behind copilot https://ai.meta.com/blog/code-llama-large-language-model-cod...

I'm not sure copilot is using codex anymore[0]. They've also been talking about a shift towards GPT-4 with "Copilot X" a few times now[1][2].

[0] https://github.blog/2023-07-28-smarter-more-efficient-coding...

[1] https://github.com/features/preview/copilot-x

[2] https://github.blog/2023-07-20-github-copilot-chat-beta-now-...

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

#208
Curious if there are projects to enable working with these things self-hosted, tuned to a git repo as context on the cli, like a Unix filter - or with editors like vim? (I'd love to use this with Helix)

I see both vscode and netbeans have a concept of "inference URL" - are there any efforts like language server (lsp) - but for inference?

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

#209
post #191

Earlier quoted context omitted.

Some form of AI will eventually take over almost all existing jobs. Whether those jobs evolve or not somehow and new jobs replace them, we will see. But it's definitely not just programmers. And it will take time. Society needs to adjust. Stopping progress would not be a solution and is not possible. However, hopefully we can pause before we create digital animals with hyperspeed reasoning and typical animal instinct…

Continuing your aside… Humans don’t become obsolete, we become bored. This tech will make us bored. When humans get too bored and need shit to stir up, we’ll start a war. Take US and China, global prosperity is not enough right? We need to stoke the flames of war over Taiwan. In the next 300 years we’ll wipe out most of each other in some ridiculous war, and then rebuild.

I agree that WWIII is a concern but I don't think it will be brought about by boredom.

"Global prosperity" might be true in a very long-term historical sense, but it's misleading to apply it to the immediate situation.

Taiwan is not just a talking point. Control over Taiwan is critical for maintaining hegemony. When that is no longer assured, there will likely be a bloody battle before China is given the free reign that it desires.

WWIII is likely to fully break out within the next 3-30 years. We don't really have the facilities to imagine what 300 years from now will look like, but it will likely be posthuman.

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

#210
To run Code Llama locally, the 7B parameter quantized version can be downloaded and run with the open-source tool Ollama: https://github.com/jmorganca/ollama

   ollama run codellama "write a python function to add two numbers"
More models coming soon (completion, python and more parameter counts)
Post reply on HN