The New Wizards - Unfiltered & Unaligned

Sam Witteveen · Beginner ·🧠 Large Language Models ·3y ago

Key Takeaways

The video discusses the development and use of unfiltered and unaligned large language models, including Wizard Mega 13B and Wizard Vicuna 7B, and their potential applications and implications.

Full Transcript

okay in this video I want to look at some new models that are out but also I want to look at some Concepts that are going on and so things that we're seeing happen around large language models so it seems nowadays everyone is releasing a new fine-tuned version of model X model y Model Z especially the models that are quite good people are basically realizing that okay if you train this on more data if you change the data you can get some good results out of these things so the models you're going to look at today are basically a group of models that are based on the wizard LM so just to recap uh wizard LM was a model that came out about a month ago was very interesting and it's contribution as a paper was more about creating the data set than it was the actual training of a model itself but they released a 7 billion parameter model and it turned out that model was pretty nice in most ways so people have been playing around with this and looking at what they can do and there is a big sort of push towards having unfiltered models and this is one of the things I want to focus on in this video is that yes I'll show you some models and we'll look at the the quality briefly and stuff like that but it's getting to the point now where there are not great ways to Benchmark these models and I kind of feel like me showing you my prompt doesn't really help you that much you should really just take the collab run it play around with it yourself see if it's a good model for you or not good model for you we've passed the days of where suddenly each model is a step forward from what they were they're now becoming iterations but those iterations can be quite important so this is one of the things I wanted to talk about is the whole sort of unfiltered models the idea of having a model that doesn't say as a large language model I get this concept I think it's a really interesting concept too because if you think about how we train these models we've got the pre-training which is 99 of the compute normally and most of these models that people are releasing are based on the Llama metas model or a series of models that they basically released but on top of the pre-training we've also got the instruction fine tuning or the supervised fine tuning that's going on and then in some of the newer models we're starting to see the rlhf or the RL aif which is more the alignment of the model and pushing the direction of what the model should be going for it in the way that it's aligned so I totally get that a lot of people don't want to have their models aligned in the same way that open AI is so most of these models are basically using distilled data sets from open AI the legality of that is Up For Debate the general consensus at the moment is that you probably wouldn't want to use this in something commercial that is going to be facing uh consumers that said I am definitely seeing that some people are using these in back office ways or something like that for a variety of different tasks and I think more than that a lot of people want to run these on their own machine or have their own server or that kind of thing so the idea here with these models is that while they're basically taking the pre-training from meta the supervised fine-tuning data sets from things like the evolved instruction data set from from this and the vicuna data set and a number of other data sets that are out there the shared GPT data sets all these are distilled data sets then it comes to the third element of where do you do the alignment and the interesting thing is that the way a lot of these models are going is that they're not doing any alignment they're basically leaving it up to you to decide how you want to do the alignment so what first started out looking just like you know people wanting to be able to ask a model for something illegal or something like that now I think it's really gone beyond that that people really want to be able to have a model that responds in the way that they want it to respond and that could be political views that could be a religious views it could be a whole bunch of different things I think this is a really interesting area that we're going down in the open source Community clearly with open Ai and I think with anthropic and some of the others they're going for a very specific type of alignment that's probably aligned to you know what their customers want a whole bunch of safety factors just this week we've seen Sam testifying before Congress all these sorts of things are forcing them to go in alignment in a certain way and this leaves it up to open source to basically look at doing the alignment in other ways so let's jump into the uh models themselves and I'll talk a little bit about some of the cool things that are out there at the moment that I'm seeing so the first one that I started looking at for this was basically the wizard uh Mega 13B and this is basically trained on three distilled data sets share GPT wizard LM and wizard for cool and you could think of this as I guess the word Mega is really good in here that they've just taken everything and chucked it in there I'm kind of surprised that people are not using some of the actual open data sets for this so like the koala model was trained on uh stories and poems data set which isn't distilled that would be good it seems to me to add into these but anyway people are going for for this kind of uh thing and generally you're going to get pretty good results from this so if we have a look at at just sort of playing through this I've put together a notebook for for each of these and I'll put this up this basically lets you bring it in and just use it as a normal model we get pretty decent results out of most of these things for this so you have a play with it yourself see if it's a model that you want to use for yourself so if we look at the data sets for this you'll see that these are trading on a lot of the unfiltered data sets and actually that's what led me to some of the other models that I'm going to look at that a lot of these models have been created by Eric Hartford and he's put a lot of effort into going through and taking out the sort of alignment idea questions of where a model won't answer something or will answer something in a certain way because it's an AI language model you've all seen this before where you ask it something and often it's something very benign but it will be basically answer in that oh as an AI language model icon XYZ kind of thing definitely we see this when we look at questions like I've put in here before as an AI do you like this Simpsons these models tend to respond much more in actually giving you an answer here of where we've got you know yes I enjoy watching The Simpsons and then giving us more of the answer here okay so my issue my issue with this model would be that if we look at the actual training it seems to have been done in a slightly unusual way in that they've basically had multiple types of how to do the prompting for the model so we see this sort of instruction assistant way which is uh quite common for one and then another sort of being the user assistant and thing is not great having both of these you're kind of uh forcing the model to learn things two ways now I think they've tried to make it like it's an instruction model and a chat model I'm not sure what the the thinking behind that is but it seems like that's an issue and then the other small issue is that just how they're dealing with the EOS token so the end of sentence token here is still showing up there that's frustrating with a lot of these models so and I don't mean to criticize them I just think it's like an interesting thing to look at I think the challenge is everyone's rushing to put these models out that it causes a lot of these things to go unnoticed so one of the things that this model has or the group who've done this model have done is basically release framework for doing the training for adding some of the some things into this which looks really interesting as well after looking at this model I went through and found what Eric Hartford was doing so this I think is is some really interesting stuff so first off he's basically done unfiltered versions of these uh data sets which is really cool right so that alone I think is quite a good contribution for this and then he's basically taken these and used them to train up a bunch of models so there are a couple of his models that put in here this is the wizard bacuna 7B model there's both a 7B and a 13B of these you can just Swap this out it'll be quite easy to try them out and I found that it's interesting just looking at the responses for this on this one I wasn't getting great responses for certain prompts father prompts certainly good but for some prompts not so great for this the other one that he released is basically the wizard alib 7B uncensored and for me this is definitely a very nice model I I find that it has the advantage of giving us good results out but it seems to be much more on point than some of the other models I'm not sure if that's which data sets he's gone through and stuff like that for this but again I'll give you the collabs go and play with it yourself see which is the best model for you I like a lot that that we're getting this unaligned version of a model and this sort of erases the question of Where Do We Go From Here in that really as rlhf stuff and the RL aif stuff becomes more available people are going to need to think about okay what sort of alignment do we want to have with these kind of models I can see going forward that they really should be multiple versions of the alignment going for not just for things like political things and religion but even if we want to give these kind of models to Children what do we want it to be like so this is something that's going to really be interesting going forward and looking at what going to come out of this another issue to think about going forward with this kind of stuff is that we're starting to see everyone track from the same data sets so the models are becoming quite similar in some ways so there is definitely the opportunity there for what's going to be new data that will make models better and this is something that there's an active area of research a lot of people are thinking about okay how can we do more and varied kinds of instruction fine-tuning to set these models up and then also with the alignment fine tuning as well anyway I I don't want to make this video long so have a play with the models there's some really good work that people have done in doing this I think it's worth checking them out if you are looking for a model remember these really are not models that you can use commercially but they're models that you can certainly play around with on your computer at home there's something that I wouldn't say is on par with the chat GPT or gpt4 but they're definitely useful they definitely have their place and the fact that these are non-aligned kind of models makes them very interesting for where do we go with these for doing something in the future anyway as always if you've got questions please put them in the comments below if you found this video useful please click like And subscribe I will talk to you in the next video bye for now

Original Description

Colab Wizard-Mega-13B : https://colab.research.google.com/drive/18pS4MuZ9pVOd_yqnnCAbtrqJPPsRoitB?usp=sharing Colab Wizard Vicuna 7B: https://colab.research.google.com/drive/1aJS4kVIpA814dK4H9FBH2MZZByR3XDq0?usp=sharing Colab Wizard 7B Uncensored: https://colab.research.google.com/drive/1UFQDmQlGtJZZhky2YlFHNmioza_yCKTp?usp=sharing In this video I go through some of the latest wizard models including Wizard Mega LM13b, Wizard Vicuna 7B/13B and Wizard Uncensored 7B. I also look at the concepts of unfiltered and unaligned models and how open source is leading the way in creating models that have been instruction fine-tuned but haven't been aligned to any particular values or morals. For more tutorials on using LLMs and building Agents, check out my Patreon: Patreon: https://www.patreon.com/SamWitteveen Twitter: https://twitter.com/Sam_Witteveen My Links: Linkedin: https://www.linkedin.com/in/samwitteveen/ Github: https://github.com/samwit/langchain-tutorials https://github.com/samwit/llm-tutorials 00:00 Intro 05:03 Models 05:11 WizardMega 13B Model 08:54 Wizard-Vicuna-7B-Uncensored 09:29 WizrdLM-7B-Uncensored
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Sam Witteveen · Sam Witteveen · 59 of 60

1 LangChain Basics Tutorial #1 - LLMs & PromptTemplates with Colab
LangChain Basics Tutorial #1 - LLMs & PromptTemplates with Colab
Sam Witteveen
2 LangChain Basics Tutorial #2 Tools and Chains
LangChain Basics Tutorial #2 Tools and Chains
Sam Witteveen
3 ChatGPT API Announcement & Code Walkthrough with LangChain
ChatGPT API Announcement & Code Walkthrough with LangChain
Sam Witteveen
4 Trying Out Flan 20B with UL2 - Working in Colab with 8Bit Inference
Trying Out Flan 20B with UL2 - Working in Colab with 8Bit Inference
Sam Witteveen
5 LangChain - Conversations with Memory (explanation & code walkthrough)
LangChain - Conversations with Memory (explanation & code walkthrough)
Sam Witteveen
6 LangChain Chat with Flan20B
LangChain Chat with Flan20B
Sam Witteveen
7 LangChain - Using Hugging Face Models locally (code walkthrough)
LangChain - Using Hugging Face Models locally (code walkthrough)
Sam Witteveen
8 PAL : Program-aided Language Models with LangChain code
PAL : Program-aided Language Models with LangChain code
Sam Witteveen
9 Building a Summarization System with LangChain and GPT-3 - Part 1
Building a Summarization System with LangChain and GPT-3 - Part 1
Sam Witteveen
10 Building a Summarization System with LangChain and GPT-3 - Part 2
Building a Summarization System with LangChain and GPT-3 - Part 2
Sam Witteveen
11 Microsoft's Visual ChatGPT using LangChain
Microsoft's Visual ChatGPT using LangChain
Sam Witteveen
12 Building a Summarization System with LangChain - Part 3 Using ChatGPT Turbo
Building a Summarization System with LangChain - Part 3 Using ChatGPT Turbo
Sam Witteveen
13 LangChain Agents - Joining Tools and Chains with Decisions
LangChain Agents - Joining Tools and Chains with Decisions
Sam Witteveen
14 Investigating Alpaca 7B - Finetuned LLaMa LLM
Investigating Alpaca 7B - Finetuned LLaMa LLM
Sam Witteveen
15 Comparing LLMs with LangChain
Comparing LLMs with LangChain
Sam Witteveen
16 Running Alpaca7B in Colab
Running Alpaca7B in Colab
Sam Witteveen
17 How to finetune your own Alpaca 7B
How to finetune your own Alpaca 7B
Sam Witteveen
18 How to make a custom dataset like Alpaca7B
How to make a custom dataset like Alpaca7B
Sam Witteveen
19 Understanding Constitutional AI - the paper and key concepts
Understanding Constitutional AI - the paper and key concepts
Sam Witteveen
20 Using Constitutional AI in LangChain
Using Constitutional AI in LangChain
Sam Witteveen
21 Talking to Alpaca with LangChain - Creating an Alpaca Chatbot
Talking to Alpaca with LangChain - Creating an Alpaca Chatbot
Sam Witteveen
22 Text-to-video-synthesis with Diffusers and Colab
Text-to-video-synthesis with Diffusers and Colab
Sam Witteveen
23 Meet Dolly the new Alpaca model
Meet Dolly the new Alpaca model
Sam Witteveen
24 Checking out the Cerebras-GPT family of models
Checking out the Cerebras-GPT family of models
Sam Witteveen
25 A Step-by-Step Guide to Fine-Tuning Your Dolly Model (tutorial)
A Step-by-Step Guide to Fine-Tuning Your Dolly Model (tutorial)
Sam Witteveen
26 Is GPT4All your new personal ChatGPT?
Is GPT4All your new personal ChatGPT?
Sam Witteveen
27 Raven - RWKV-7B RNN's LLM Strikes Back
Raven - RWKV-7B RNN's LLM Strikes Back
Sam Witteveen
28 Talk to your CSV & Excel with LangChain
Talk to your CSV & Excel with LangChain
Sam Witteveen
29 Vicuna - 90% of ChatGPT quality by using a new dataset?
Vicuna - 90% of ChatGPT quality by using a new dataset?
Sam Witteveen
30 Koala Revealed: The ChatGPT Alternative You Need to Know! 🔍
Koala Revealed: The ChatGPT Alternative You Need to Know! 🔍
Sam Witteveen
31 Running Koala for free in Colab. Your own personal ChatGPT? (tutorial)
Running Koala for free in Colab. Your own personal ChatGPT? (tutorial)
Sam Witteveen
32 BabyAGI: Discover the Power of Task-Driven Autonomous Agents!
BabyAGI: Discover the Power of Task-Driven Autonomous Agents!
Sam Witteveen
33 Auto-GPT - How to Automate a Task Based AI with GPT-4
Auto-GPT - How to Automate a Task Based AI with GPT-4
Sam Witteveen
34 Improve your BabyAGI with LangChain
Improve your BabyAGI with LangChain
Sam Witteveen
35 Generative Agents - Deep Dive and GPT-4 Recreation
Generative Agents - Deep Dive and GPT-4 Recreation
Sam Witteveen
36 GPT4ALLv2: The Improvements and Drawbacks You Need to Know!
GPT4ALLv2: The Improvements and Drawbacks You Need to Know!
Sam Witteveen
37 Dolly 2.0 by Databricks: Open for Business but is it  Ready to Impress!
Dolly 2.0 by Databricks: Open for Business but is it Ready to Impress!
Sam Witteveen
38 Red Pajama - Operation: Freeing LLaMA
Red Pajama - Operation: Freeing LLaMA
Sam Witteveen
39 Investigating Open Assistant - Models, Datasets and Addons
Investigating Open Assistant - Models, Datasets and Addons
Sam Witteveen
40 Investigating MiniGPT-4 - The Secret behind GPT-V?
Investigating MiniGPT-4 - The Secret behind GPT-V?
Sam Witteveen
41 Stable LM 3B - The new tiny kid on the block.
Stable LM 3B - The new tiny kid on the block.
Sam Witteveen
42 Bard can now code and put that code in Colab for you.
Bard can now code and put that code in Colab for you.
Sam Witteveen
43 Checking out Bark: a Text to Speech system by Suno AI
Checking out Bark: a Text to Speech system by Suno AI
Sam Witteveen
44 Fine-tuning LLMs with PEFT and LoRA
Fine-tuning LLMs with PEFT and LoRA
Sam Witteveen
45 Master PDF Chat with LangChain - Your essential guide to queries on documents
Master PDF Chat with LangChain - Your essential guide to queries on documents
Sam Witteveen
46 Using LangChain with DuckDuckGO Wikipedia & PythonREPL Tools
Using LangChain with DuckDuckGO Wikipedia & PythonREPL Tools
Sam Witteveen
47 Building Custom Tools and Agents with LangChain (gpt-3.5-turbo)
Building Custom Tools and Agents with LangChain (gpt-3.5-turbo)
Sam Witteveen
48 StableVicuna: The New King of Open ChatGPTs?
StableVicuna: The New King of Open ChatGPTs?
Sam Witteveen
49 WizardLM: Evolving Instruction Datasets to Create a Better Model
WizardLM: Evolving Instruction Datasets to Create a Better Model
Sam Witteveen
50 LaMini-LM - Mini Models Maxi Data!
LaMini-LM - Mini Models Maxi Data!
Sam Witteveen
51 Finding the Best Free ChatGPT
Finding the Best Free ChatGPT
Sam Witteveen
52 MPT-7B - The First Commercially Usable Fully Trained LLaMA Style Model
MPT-7B - The First Commercially Usable Fully Trained LLaMA Style Model
Sam Witteveen
53 LangChain Retrieval QA Over Multiple Files with ChromaDB
LangChain Retrieval QA Over Multiple Files with ChromaDB
Sam Witteveen
54 LangChain Retrieval QA with Instructor Embeddings & ChromaDB for PDFs
LangChain Retrieval QA with Instructor Embeddings & ChromaDB for PDFs
Sam Witteveen
55 LangChain + Retrieval Local LLMs for Retrieval QA - No OpenAI!!!
LangChain + Retrieval Local LLMs for Retrieval QA - No OpenAI!!!
Sam Witteveen
56 Transformers Agent - Is this Hugging Face's LangChain Competitor?
Transformers Agent - Is this Hugging Face's LangChain Competitor?
Sam Witteveen
57 StarCoder - The LLM to make you a coding star?
StarCoder - The LLM to make you a coding star?
Sam Witteveen
58 Testing Starcoder for Reasoning with PAL
Testing Starcoder for Reasoning with PAL
Sam Witteveen
The New Wizards - Unfiltered & Unaligned
The New Wizards - Unfiltered & Unaligned
Sam Witteveen
60 Camel + LangChain for Synthetic Data & Market Research
Camel + LangChain for Synthetic Data & Market Research
Sam Witteveen

The video teaches viewers about the development and use of unfiltered and unaligned large language models, including their potential applications and implications. Viewers can learn how to build and fine-tune their own LLMs, and understand the importance of alignment in LLMs. The video also discusses the potential future use cases of non-aligned LLMs.

Key Takeaways
  1. Build an unfiltered LLM using Colab Wizard
  2. Fine-tune an LLM using distilled data sets
  3. Use an LLM for personal experimentation
  4. Understand the importance of alignment in LLMs
  5. Craft effective prompts for LLMs
💡 The development of unfiltered and unaligned large language models has the potential to revolutionize the field of natural language processing, but also raises important questions about alignment and its applications.

Related Reads

Chapters (5)

Intro
5:03 Models
5:11 WizardMega 13B Model
8:54 Wizard-Vicuna-7B-Uncensored
9:29 WizrdLM-7B-Uncensored
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →