News for hackers. Stuff that matters.
Re:Code Llama, an AI tool for coding by Draiken on Thursday August 24, 2023 @12:22PM (#37250772)
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.

Re:Code Llama, an AI tool for coding by dangelov on Thursday August 24, 2023 @12:26PM (#37250840)
I've used Ollama to run Llama 2 (all variants) on my 2020 Intel MacBook Pro - it's incredibly easy. You just install the app and run a couple of shell commands. I'm guessing soon-ish this model will be available too and then you'd be able to use it with the Continue VS Code extension.

Edited to add: Though somewhat slow, swap seems to have been a good enough replacement for not having the loads of RAM required. Ollama says "32 GB to run the 13B models", but I'm running the llama2:13b model on a 16 GB MBP.

Re:Code Llama, an AI tool for coding by j45 on Thursday August 24, 2023 @01:04PM (#37251498)
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.

Re:Code Llama, an AI tool for coding by BoorishBears on Thursday August 24, 2023 @04:20PM (#37254037)
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.

Re:Code Llama, an AI tool for coding by jkeisling on Thursday August 24, 2023 @06:03PM (#37255151)
How does open source compete with the Claude API? Easy: actually let you use the model. From the signup page:

> Anthropic is rolling out Claude slowly and incrementally, as we work to ensure the safety and scalability of it, in alignment with our company values.

> We're working with select partners to roll out Claude in their products. If you're interested in becoming one of those partners, we are accepting applications. Keep in mind that, due to the overwhelming interest we've received so far, we may take a while to reply.

No thanks, I'd much rather not wait months to see if my app deserves their oh-so-limited attention, or "aligns with the values" of a company taking $400m from Sam Bankman-Fried.

To be more charitable to your underlying point, Claude 2 is free to chat with via Anthropic's website, Poe, or Slack, and the GPT-4 API is open to use. If you're building a prototype or just need a chatbot, these do have better results and dev experience, at least for now. But I don't think picking on your Claude API example is unfair. These companies could randomly refuse your prompts via some opaque "moderation API" (that all GPT fine-tuning data goes through!), train on your company's proprietary data, spy on your most intimate questions, or just not find you worth the trouble and cut you off, at any time. THAT is why open source beats proprietary hands down: My device, my data, my weights, my own business.

Re:Code Llama, an AI tool for coding by BoorishBears on Thursday August 24, 2023 @10:22PM (#37257168)
Perfect example of why I said academic interest.

Awkward tie-ins between SBF and value systems (?) have no effect on practical usage.

A theoretical concern they might train on my API data after saying they won't doesn't either. Amazon might be training on everything not bolted down in S3, not worth wasting brain power on that.

The moderation API isn't some magic gotcha, it's documented. They don't want to deal with people fine tuning for porn. Maybe you have some ideological disagreement on that but it's not of practical relevance when trying to write code.

At the end of the day you're not alone in these opinions. But some of us prefer pragmatism over hype. Until someone catches OpenAI or Anthropic trying to kill their golden goose by breaking their GDPR, HIPPA, and SOC2 certifications, I'm going to take delivered value of theoretical harm.

Re:Code Llama, an AI tool for coding by kordlessagain on Thursday August 24, 2023 @10:51PM (#37257417)
In my opinion the risk is coupling accelerated intelligence to competitive business models.
Re:Code Llama, an AI tool for coding by BoorishBears on Friday August 25, 2023 @12:27AM (#37258073)
The accelerated intelligence wouldn't exist without competitive business models.
Re:Code Llama, an AI tool for coding by j45 on Saturday August 26, 2023 @09:41PM (#37278636)
Thanks for the insight.

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

Re:Code Llama, an AI tool for coding by liuliu on Thursday August 24, 2023 @12:26PM (#37250839)
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).
Re:Code Llama, an AI tool for coding by epolanski on Thursday August 24, 2023 @12:57PM (#37251394)
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, an AI tool for coding by redox99 on Thursday August 24, 2023 @01:07PM (#37251559)
On runpod there is a TheBloke template with everything set up for you. An A6000 is good enough to run 70b 4bit.
Re:Code Llama, an AI tool for coding by kordlessagain on Thursday August 24, 2023 @10:58PM (#37257466)
I started something here about this: https://news.ycombinator.com/item?id=37121384
Re:Code Llama, an AI tool for coding by RossBencina on Friday August 25, 2023 @05:42AM (#37259806)
runpod, togethercomputer, replicate.

Matthew Berman has a tutorial on YT showing how to use TheBloke's docker containers on runpod. Sam Witteveen has done videos on together and replicate, they both offer cloud-hosted LLM inference as a service.

Re:Code Llama, an AI tool for coding by redox99 on Thursday August 24, 2023 @12:30PM (#37250906)
If you want to run them fast, a 12GB GPU (e.g 3060) for the 13B and a 24GB GPU for the 34B (e.g 3090). Otherwise llama.cpp CPU inference would work on most machines.