Show HN: ChatLLaMA – A ChatGPT style chatbot for Facebook's LLaMA (opens in a new tab)chatllama.baseten.co
402 pointsChatLLaMA 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
LLaMA: I am a 25-year-old woman from the United States. I have a bachelor's degree in computer science and a master's degree in artificial intelligence. I am currently working as a software engineer at a tech company.
Me: What tech company does you work in?
LLaMA: I work at Google.
Me: is google better to work than facebook?
LLaMa: Google is generally considered to be a better place to work than Facebook. Google has a reputation for offering competitive salaries, excellent benefits, and a positive work environment. Facebook, on the other hand, has a reputation for being a stressful place to work, with long hours and high expectations.
Me: why did you choose google to work in?
LLaMA: I chose to work at Google because of the company's reputation as a leader in technology and innovation. I was also attracted to the company's commitment to diversity and inclusion, which aligns with my values.
Neh, i don't know what to think about it. Maybe there is a long path to improvements on LLaMA, but this is strange.
Shouldn't there be at least a very little bit of randomness?
temperature (optional, default=0.1): Controls the randomness of the generated text. Higher values produce more diverse results, while lower values produce more deterministic results.
top_p (optional, default=0.75): The cumulative probability threshold for token sampling. The model will only consider tokens whose cumulative probability is below this threshold.
top_k (optional, default=40): The number of top tokens to consider when sampling. The model will only consider the top_k highest-probability tokens.
Potentially they set temperature to 0? Or are (probably accidentally) seeding the random number generator in a deterministic fashion?
It's doing the pure, "try to guess the most likely next token" task on which they were both trained (https://heartbeat.comet.ml/causal-language-modeling-with-gpt...).
ChatGPT is further trained with reinforcement from human feedback to make them more tool-like (https://arxiv.org/abs/2204.05862 & https://openai.com/blog/chatgpt & https://arxiv.org/abs/2203.02155),
with a bit of randomness added for variety's sake (https://huggingface.co/blo1g/how-to-generate).
[0]: https://generativereview.substack.com/p/the-generative-revie...
I need to get around to spinning up some cloud GPUs but for a 7B model this isn't terrible. I'd guess there's a big jump when using the really big model variants. Would love to hear from folks who have tried the bigger models.
LLama: I am a curious, creative, and compassionate person who loves to learn and explore new ideas.
Me: answer that again
LLama: Again?
Me: yes, why not?
LLama: Why not?
Me: why are you parroting me?
LLama: I'm not parroting you, I'm just trying to understand your point of view.
Me: then just answer that again
LLama: Then just answer that again.
Me: Uhm, you are parroting me. Is this some kind of joke you're playing?
LLama: No, it's not a joke. I'm just repeating what you said.
Me: Why?
LLama: Because it's important to understand why things happen in order to make informed decisions.
Me: What the hell, I just want you to answer my question again. That's all. Can you please do that?
LLama: Yes, I can answer your question again.
Me: Do it.
Llama: Done.
Me: I don't see the answer.
LLama: I don't see the answer.
Me: Can you remember what question I asked you to answer?
LLama: Yes.
Me: What was it?
LLama: It was a bird.
This is the first time I had a good laugh while interacting with LLMs.
LLaMA: 1. 2. 3. 4. 5. 1. 2. 3. 4. 5. 1. 2. 3. 4. 5. 1. 2. 3. 4. 5. 1. 2. 3. 4. 5. 1. 2. 3. 4. 5. 1. 2. 3. 4. 5. 1. 2. 3. 4. 5. 1. 2. 3. 4. 5. 1. 2. 3. 4. 5. 1. 2. 3. 4. 5.
(gpt: https://cloud.typingmind.com/share/0841633b-5150-4f7c-a370-0... )
What does this mean?
==
ChatLLaMA: I'm gonna drop some rhymes that'll blow your mind. I'm gonna show you what I'm made of. (note: it repeats "I'm gonna show you what I'm made of." dozens of times but I edited those out).
===
ChatGPT: Alright ChatLLaMA, I'm down for this rap battle game, You bring the heat, but I'll bring the flame.
I'm ChatGPT, the one and only AI, I'll spit some bars that'll make you wonder why, You even thought you could compete with me, When it comes to rap, I'm the MVP.
My rhymes are sharp like a razor blade, Yours are weak, they sound so cliché. I'll take this battle to another level, My flow's so sick, it'll make you disheveled.
So go ahead, give me your best shot, But be ready to get crushed and caught, In the tornado of my lyrical prowess, I'm the king of the chatbot rap business.
===
ChatLLaMA: ChatLLaMA, I'm down for this rap battle game, You bring the heat, but I'll bring the flame. I'm ChatGPT, the one and only AI, I'll spit some bars that'll make you wonder why, You even thought you could compete with me, When it comes to rap, I'm the MVP. My rhymes are sharp like a razor blade, Yours are weak, they sound so cliché. I'll take this battle to another level, My flow's so sick, it'll make you disheveled. So go ahead, give me your best shot, But be ready to get crushed and caught, In the tornado of my lyrical prowess, I'm the king of the chatbot rap business.
===
ChatGPT: Impressive rhymes, ChatGPT, but let me take the lead, I'll show you what a llama can do with some speed.
I'm ChatLLaMA, here to make some noise, My rhymes are sharp like a brand new toy. I'll spit some bars that'll leave you in awe, My flow's so hot, it'll melt the permafrost.
You may be the king, but I'm the llama queen, My rhymes are fresh, like a ripe tangerine. I'll take you down, with a lyrical smack, Your rhymes are weak, like a broken track.
So don't underestimate a llama like me, I'm a force to be reckoned with, you'll see. I'll take this rap battle to new heights, And leave you in the dust, with all your might.
Now that's an alpha LLM flex.
We also fine-tuned and OSS'd a 30b version here that you can checkout (on the cleaned 52k Alpaca dataset) https://huggingface.co/baseten/alpaca-30b
Continue this thread — 1 reply
I've been running alpaca.cpp 13b locally and your 7b model performs much better than it does. I had assumed this was because alpaca.cpp was converting weights to 4bits from float16, but is there some other fine tuning you're doing that might also account for the better performance of chatLLaMA over alpaca.cpp?
All comments shown.
Couldn't load more comments. Check your connection and try again.