Lurker News
ChatLLaMA is an experimental chatbot interface for interacting with variants of Facebook's LLaMA. Currently, we support the 7 billion parameter variant that was fine-tuned on the Alpaca dataset. This early versions isn't as conversational as we'd like, but over the next week or so, we're planning on adding support for the 30 billion parameter variant, another variant fine-tuned on LAION's OpenAssistant dataset and more as we explore what this model is capable of.

If you want deploy your own instance is the model powering the chatbot and build something similar we've open sourced the Truss here: https://github.com/basetenlabs/alpaca-7b-truss
We'd love to hear any feedback you have. You can reach me on Twitter @aaronrelph or Abu (the engineer behind this) @aqaderb.
Disclaimer: We both work at Baseten. This was a weekend project. Not trying to shill anything; just want to build and share cool stuff.

Comments (215) 59 threads

Earlier comments
sixhobbits3 replies#
anyone know where to get the latest information on progress on training Alpaca on the 65B llama model? I've seen a few reports on Twitter etc of people running the llama CPP script with the 65B model on an M1 macbook, but would be good to see more detailed instructions on how to do it and a writeup of how well it works compared to the smaller models etc.

I'm happy to help out if anyone is working on this, either with running/testing or the write up - I have a 64GB m1 macbook, but not a lot of time or patience to figure out how to do the correct conversions/splitting etc.

gorbypark3 replies#
I’d keep an eye out on huggingface. I’ve yet to see alpaca 65B, but there are copies of 30B (and 7/13B) floating around already. I’m sure someone will eventually pony up for the compute time to do 65B. I’ve found watching these models, https://huggingface.co/decapoda-research and then looking at the “spaces using …” section is a good way to find what’s being worked on (for example, check the comments for ipfs/torrents links). Also just doing a search for “alpaca” could work.

You won’t be able to do the finetuning on your MacBook, but should be able to run inference on a 4 bit quantized model.

nico2 replies#
> I’m sure someone will eventually pony up for the compute time to do 65B.

How much would it cost? Can you give a breakdown of hardware/paas requirements and the costs?

nullstyle1 reply#
I was able to finetune the pretrained 13B model (using the same alpaca dataset, just running on my dime) in about 14 hours on an A6000. I think it will work out to between $50 and $60 when the bill hits me.

Be warned everyone is slapping code together so fast that, if your experience is like mine, you'll spend most of your time working around assumptions made by prior authors or hand merging patches between forks to get your setup running well.

Continue this thread — 1 reply

gorbypark3 replies#
Another datapoint, first hand report from a random internet person that 7B took 2.5-3hrs on a 8xA100 80Gb setup. If it ends up being a straight up linear thing, that means about ~27 hours for the 65B model. Depending on the host and if it's a preemptable instance or not, that could be about $12-30 per hour.

Continue this thread — 3 replies

reasonabl_human1 reply#
I’ve been sidetracked with work but planning on tuning llama 65B to produce alpaca 65B, will distribute via huggingface or torrent..

FWIW running the 30B alpaca-lora model quantized to 4-bit via llama.cpp has given me great results, and while I don’t expect much of an improvement from 65B at FP16, 65B will probably perform better than 30B when quantized
The interesting next steps in my head are more focused around curating a better instruction-tuning dataset using GPT-4, then fine-tuning again, and integrating the LangChain project with the resulting agent

gorbypark#
Sounds great! It would be great if you could release your intermediate steps, so Alpaca-65B and then Alpaca-65B-LangChain, etc. I'd like to compare the model sizes directly when fine-tuned using the same method / dataset!

I also just realized that I don't believe there's an "alpaca-native" 30B floating around, just the alpaca-lora one, so 30B would be pretty cool too (and the biggest I can run w/ llama.cpp on my MacBook).

Jonny_Cosmo#
Is the coding itself pretty trivial, cos I've got a decent pc and fancy giving it a go. Got threadripper 3960x with 128GB RAM and 2x quadro 8000s on nvlink. It's not an AI powerhouse by any means but should be better than a Macbook
johnthuss#
I got the llama 65B model working on my M1 MacBook Pro, although not alpaca on top of it yet. The models are VERY slow unless you have enough RAM to fit them in. The 65B one is basically unusable with my 16GB of RAM (it produced about 8 words in 45 minutes). However, the 13B one works at a reasonable speed and the 7B is fast.

Note that the 65B model requires around 300GB of free disk space to prepare.
I followed the instructions here: https://github.com/simonw/til/blob/main/llms/llama-7b-m2.md

sixhobbits#
I found what I was looking for here [0]. Looking forward to seeing Alpaca on top of it - so far it seems pretty underwhelming compared to GPT, and often just regurgitates 4chan-looking stuff (with timestamps and usernames) like earlier generative models did.

[0] https://lawrencecchen.com/llama-65b-m1-max

patates#
- what does 42 mean?

42 is the answer to the ultimate question of life, the universe, and everything.
- what else could also be the answer to the ultimate question of life, the universe, and everything?
42.
- what ELSE?
LLaMa didn’t return anything, please try another prompt. It responds best to questions.
- How much wood would a woodchuck chuck as a woodchuck would if a woodchuck could chuck wood?
42.

Al-Khwarizmi1 reply#
The UI looks great, but I only get "Something went wrong, please try again." after a while waiting for the response :(
elaus1 reply#
Probably immediately hugged to death by the HN crowd...
anaganisk2 replies#
Hug of death for 137 upvotes post, Posted early in EST?
Calcite#
Meanwhile Europe is having morning tea and APAC evening news catch up...
airstrike#
Lots of lurkers don't upvote submissions
Reason0774 replies#
Coming soon: HN_LLaMA. Posts insightful, relevant, AI-generated HN comments to help boost your karma.
DeathArrow2 replies#
Why people desire karma beside ego boosting? For ego boosting it's easier to post a cat video on TikTok.
tough2 replies#
karma has it's own perks.

But it's mainly fake internet points as you say.
Humans are weird.
Make numba go up

DeathArrow1 reply#
> karma has it's own perks.

Maybe websites can use karma as currency and exchange points to USD?

Continue this thread — 1 reply

nathants#
ai is also weird. make numba go down.
mejutoco1 reply#
You cannot downvote until you have a bit of it is a non-ego reason.
DeathArrow1 reply#
I see, hate is a good motivation.

Continue this thread — 1 reply

marginalia_nu1 reply#
I'm eagerly waiting for the bot that automates the process of being "that guy" who copy-pastes the premise of every single article into chat-gpt and reporting what it says back.
IIAOPSW1 reply#
"As an AI language model, I'm able to process and analyze a wide range of text-based inputs, including article premises. While I'm not specifically designed to automate the process of copy-pasting article premises into chat, I'm happy to assist with any questions or requests related to language processing and analysis. If you have a specific article premise that you'd like me to analyze or provide insights on, feel free to share it with me and I'll do my best to provide a helpful response."

-chatGPT

Reason077#
"While the comments generated by HN_LLaMA may not have the same level of personalization and nuance as those written by humans, they can still provide valuable information and insights that might not have been considered otherwise. In some cases, AI-generated comments may even be able to identify patterns or trends in the data that human commenters might miss.

On the other hand, the use of AI to generate comments can be seen as a form of automation that undermines the authenticity of online discussions. Some users might argue that the value of Hacker News lies in the unique insights and perspectives of its human contributors, and that AI-generated content detracts from this."
-chatGPT

Avicebron1 reply#
"Show HN: HN_LLaMA, why we chose a Rust LLM"
int_19h1 reply#
Jokes aside, has anyone tried fine tuning a model on forum conversations?

By which I mean, for chatbots, the data for fine-tuning basically presents it with examples of dialogs. But if you take any given comment on HN and walk its parents, you basically end up with something like that, except there's more than two people involved (usually). So what if you fed that to LLaMA, and then used the same format for the actual chat?

Faint1 reply#
In that vein, how about stackoverflow? That should give at least straightforward ask-and-answer format, and there's plenty on material to work with.
dchest1 reply#
LlaMa was trained on 78 GB of StackExchange (I assume StackOverflow was included in that).

Continue this thread — 1 reply

Load more comments