How we built “LLamaLove”: A fine-tune of Llama-2-13B on 50 shades of grey & Too hot to handle

date
Aug 13, 2023
slug
custom-llm
status
Published
tags
AI
summary
How our “Llama Love” Hackathon project placed 2nd in the world’s first custom llm hackathon
type
Post
Our ‘llama love’ bot hackathon team: Rongfei, Lisa, Me (Chris), Era, and Jesse, pictured from left to right.
Our ‘llama love’ bot hackathon team: Rongfei, Lisa, Me (Chris), Era, and Jesse, pictured from left to right.
Update:
I’ve deployed the bot on poe.com! You can try it out here:
Update again: that broke because together.ai charges per hour that you keep your model hosted, and we ran out of credits after the first week.
 
The day started strong. Adam D'Angelo, CEO of Quora kicked us off by sharing what Quora has been up to with building in the generative AI space - Poe.com
 
notion image
 
notion image
Many more sponsors jumped in, such as Robert Nishihara and Ameer Haj Ali from Anyscale, giving us hope and proof that fine-tuning Llama2 on specific tasks can help open source models perform better than GPT4! 🔥🔥
notion image
 
Sergey, the Llama 2 creator, jumped in to give a quick tech talk on how he made llama 2
 
notion image
 
And then, Jamie from Together AI shared how hackers could use the together AI API to very easily and quickly fine tune LLama 7B on 100M tokens in < 30 minutes.
notion image
 
Now you might ask, what did the hackers build?
My team had an observation. We saw that the existing LLMs out there have an opportunity for ♥️ LOVE ♥️. Today, when we ask LLMs to give us something 🍝saucy🍝, it gives us boring answers like ”I apologize, but as a large language model, I cannot…”…
notion image
 
So we thought … what if we could have LLMs generate content that gives us back a lil’ more ♥️ love ♥️? And thus, we fine tuned 2 models. The first was trained on the transcripts of the TV shows
  1. Too hot to handle
  1. Love Island
  1. Temptation Island
  1. Naked Attraction
  1. Love is blind
 
This model was meant to act like a chat model. We parsed the input until it was in a format prepared for together.ai to pick it up and train a model for us on it. The result: Given the prompt, “Hey Baby”, we get:
notion image
“, you’re looking good! I’m a single woman, and I’m looking for a single man.”
Not bad.
Next we found a pdf of the every page of the book ‘50 shades of grey’ - a book known for the love it creates.
 
After massaging our data into a reasonable format to support our fine-tuning needs,
Together AI gives us a brand new completion model that gives us the feel of 50 shades of grey:
With the prompt of “We were both lying there, holding hands”, and using our brand new fine tuned model to perform chat completion, we get:
We were both lying there, holding hands. I was thinking about how much we had in common and that he could be the one for me when suddenly his eyes rolled back into their sockets as if they'd been pulled by a string behind my headboard! He started moaning loudly like someone who is being tortured slowly with hot irons pressed against every part of him until finally giving up any hope or resistance...and then fell limp next to where you lay sleepily beside us after our lovemaking session ended earlier this morning." I think it would have made sense not just because she wants revenge but also outta respect towards herself since her husband died while trying protect others from harm - something no man should ever do unless absolutely necessary (which isn’t always possible). And now here comes along another guy willing enough take risks without even knowing what kind personality traits make them tick? How dare anyone else try steal away MY perfect match before things get too serious between US two??!!
Not to mention - the text generation was blazing fast!
 
With these two small demos, we showed the judges at the hackathon that it certainly is possible for a group of hackers to get up and running with a fine tuned custom LLM model within hours.
 
 
Our video of our presentation here:
 
Throughout this day, I got to work with some amazing minds such as Era Qian, Rongfei Lu, Marco Mascorro, Lisa Liu, and Jesse Hu. We got a team picture together during the hacking:
notion image
 
And finally, the judges selected us as the 2nd place winners! I was so happy to shake hands with Adam D'Angelo, Marco Mascorro, Taranjeet Singh and Jamie de Guerre from Together AI accepting my new clout that I worked hard for alongside with Era who stayed until the end with me!
notion image
 
Super Special thanks to Jeremy Nixon - a man who worked so hard to organize this hackathon - and he even hacked on a project DURING the hackathon. I don’t know how he pulls it off.
Marcos brought his robotic dog that talks - Pictured above is Jeremy Nixon holding the microphone up so the dog will be projected loud enough.
Marcos brought his robotic dog that talks - Pictured above is Jeremy Nixon holding the microphone up so the dog will be projected loud enough.
 
P.S. I also accidentally found the buildspace community sf1 campus 😲 Was pretty cool to discover that it was on the same floor as the hackathon! Hope that I can make it into the program by the next in person season 😃
notion image
notion image

© Chris Settes 2023 - 2024