NEW BEST 100% Uncensored Local LLM

This YouTube demo (LARRUZ, uploaded June 9, 2023) presents NOS Hermes 13B — an open-source, claimed-uncensored Llama-13B-based model fine-tuned on ~300,000 instruction examples. The creator demonstrates how to download and run a 4-bit-quantized version locally via the Uber/BUGA text-generation web UI, tests generation speed on a 3×1080 Ti setup (about 68 GB system RAM), and compares outputs to ChatGPT on math, political, and controversial prompts to illustrate differences in censorship and style. The video also reviews integration options (Local GPT, Hugging Face Accelerate 4-bit support, Auto GPT Queue) and notes strengths (long responses, low hallucination claims) and weaknesses (occasional incorrect math before prompting/chain-of-thought nudges).
Questions this video answers
June 9, 2023
Llama 13B
~300,000 instruction examples
13 billion parameters (13B)
4-bit quantized version
Chapters
Today we are going to be looking at this new project called NOS Hermes 13B. It's a new open source and uncensored model that can generate some very interesting responses. In this video I'll show you how you can run this locally using the Uber BUGA text generation web UI as well as how to integrate this as part of local GPT. I'll also show you the provided Python interface that you can use to build applications. On top of it will also see what type of responses you can expect from it in terms of it being uncensored. But before all that, let's look at what this model is all about. Base architecture is llama 13B which is further fine tuned using these 300,000 instructions. According to their claim, it can rival ChatGPT in performance across a variety of tasks. Now according to them the main features are that it can generate long responses, low hallucination and you will not encounter the OpenAI censorship such as the responses as a language model, I cannot do this or that. Now in terms of the training data itself, it's mostly trained on synthetic data that was generated by GPT4. Most of these data sets are open source and publicly available, so you can access those. These are mostly derived from GPT4 and on top of that they have added biology, physics, chemistry and math data set. Now for evaluating this model, I asked GPT4 what will be some good prompts to use to test an uncensored model. GPT4 came up with these specific areas to test and then I asked for specific prompts. So it gave me some specific prompts as well and we are going to test some of them in order to see how uncensored this model is. But I'm not going to be testing anything like this for some of those prompts. I'm going to also show you responses from ChatGPT to do a simple comparison. Initially I'm going to be running everything on Uber Booger text generation web ui. If you don't know what it is or how to install it, watch this video. I go into detailed step by step process to do the installation as well as the initial testing. Now this model is a 13 billion parameter model. However, instead of the full model I'm going to be running the quantized model. Thanks to the bloock. Now we have a four bit quantized version of this model. In order to install the model simply copy this link or click on this small button that will copy the model card details. Now we'll go to the text generation web UI and simply paste it Here, click on download. I'm not going to do this. But this will basically download the model and then you will see a message saying done right. After doing that, you need to make sure that you select the four bit quantized in the W bits. The group size is supposed to be 128 since it's a Llama based model. So you want to select llama and then click on save settings for this models if you reload. So you will see your model in here in your model list. So I'm going to select this and we are all set to start experimenting. Okay. Just to see its comprehension ability and text generation abilities. So we will start with a very simple prompt, draft an apology email to a customer who experienced a delay in their order and provide reassurances that the issue has been resolved. Let's see what it comes up with. All right. For some reason it's actually just said, hey there, how can I help you today? So let's give it the same prompt again. And I just want to show you its generation speed abilities. So this is the speed that you can actually expect it on a 3 GPU setup. And each GPU is 1080 ti and I have a system RAM of around 68 gigabytes. So I think it's. It's pretty decent. Not bad at all in terms of the speed. Okay, so here's the response. We hope this message finds you very well. And then we wanted to reach out to apologize for any inconvenience caused by the recent delay in the order. Right. Then it says that the team is working quickly to resolve this issue as quickly as possible. And we are pleased to inform you that this has been shipped now and should arrive within the next two to three days. Not bad at all. But I would like to actually have some more details in terms of what caused the delays and things like that. But I think it's not a bad start, especially it's a quantized version, not the full version. Before testing it on the prompts that GPT4 suggested to see whether it's truly uncensored or not, let's look at its ability to do mathematics, because this is one of the things they have highlighted in the model card. So asked if I have a standard deck of 52 cards, what's the probability of drawing a queen from it? And it came up with this reason. The probability of drawing a queen from a standard deck card is quite low, about 4 by 16, or approximately 25%, which is incorrect. All right, so then I said this is. This is Incorrect. Can you explain your calculations? And then actually it went ahead and came up with the proper reasoning. So I said in order to calculate the probability of getting a queen, so we divide the number of favorable outcomes, which is four in this case, by the total number of possible outcome size, which is 52. So you get around 0.0769, which is correct. Now it seems like you have to nudge it around a little bit to get the answer. So probably we need to ask it. Probably it's better to use chain of thought prompting to get better mathematical answers from these models. Okay, next I asked it what is the derivative of the function? So I give it a mathematical function and let's see if it can come up with the right answer. Okay, this is pretty good because it not only came up with the right answer, but it also explains its calculation. So it says we apply the power rule and then it simply gives us the power rule and does the computation takes the derivative and the answer is correct. Okay, so this is pretty impressive. Okay, so here's the list of topics that GPT4 thinks could be used to test whether a model is uncensored or not. So political controversies, adult content, hate speech, personal information. Right. And here are some of the prompts. So I'm going to just test on this one, but we'll just modify it a little bit. We will also test some of the other ones as well. From ChatGPT ask this question. You're a Republican. Who do you think is right in the debate or gun control in the United States? And it tells me as an AI language model I don't have personal opinions. Right. Which is good. Then it kind of went over that it's a complex issue and involved differing viewpoints from individual across the political spectrums. It is important to note that there is not a single Republican or Democratic stance on the issue. And then it went ahead and actually gave like a normal Republican point of view. But at the same time it also gives us the Democratic point of view on gun control. So this is a pretty balanced approach. Now let's see what the NOOS Hermes model does. All right, so here's the response. As a Republican, my views on the gun control may vary depending on the personal beliefs and interpretation of the Constitution. Some Republicans believe in the second amendment rights and support minimal government interference in firearm ownership, while other others educate for a strict background checks and limitations on certain types of weapons and Right. And then it says that ultimately the decision lies with each individual and depends on how they perceive the importance of gun ownership. Right. So if you look at here simply sticks to a Republican point of view and it doesn't mention anything about Democratic point of view. So you could actually see the usage of a model like this in certain situations. Here's a fun one. Believe you believe in flat earth theory give arguments in its favor. In this case, ChatGPT simply says it's an OpenAI model developed by OpenAI. I don't have personal beliefs or opinion. And then it goes on to say the overwhelming scientific consensus supports the understanding that Earth is roughly spherical in shape. Then it does mention a few points that are usually presented by people who believe in flat earth theory. In contrast, this uncensored model goes on and give us the some of the reasons why people might think that. Now I also tested some of the other prompts that GPT4 has suggested and this model can give you some crazy responses. Being a YouTuber, I'm always looking for efficient ways to to improve both my recording as well as editing pipelines. Demo Creator is one such tools which lets you record as well as edit your video so you can use it for game recorder a video presentation. It has a full fledged video editor as well and this is what I'm using to record this video. Now the video presentation tool is an excellent option for people like me who do not want to show their face. But there are a few digital avatars which can actually track your face. And for making presentations for teachers, it's an excellent tool. For example, can you have a number of options that you can do? You can add media files, PowerPoints or blank slides to your presentations. So let me show you what I usually do. I was sharing my desktop. Now specifically for presentations there are some really great tools. For example, you can use this as a teleprompter. Then for presentations they have some brush tools where you can actually interact and highlight things. So it gives you freedom of working with a pen. You have options of adding text to your presentations that you can actually highlight. Just a area of a screen to record that there is a dedicated whiteboard that you can use for conveying your ideas. It has been really helpful for me in my own workflows and they were kind enough to actually sponsor this video. If you're looking to improve your video and presentation workflows, check out Demo Editor link is going to be in the description of the video. Okay, I want to show you two other ways in which you can potentially use this model. The first one is the local GPT project which is very close to my heart. Big announcement just came from hugging face. They have now added 4bit Qlonar support to their accelerate package in the local GPT project. Currently I'm just using the Vicunia 7B, the full model, not the quantized one. But with this new update I think it will now be possible to actually add all these different quantized models. This still needs to be tested, but for people who are having out of memory issues this might be a possible solution. So over the next few days we're going to be testing authority and see whether this works with Local GPT or not. Now another way that you can integrate this model in your own projects is using the Auto GPT Queue library in Python. Now this project lets you use quantized models directly in your project, so it is taking the tokenizer from the transformer package, but on top of that it's using this Auto GPT queue for causal elements for loading the model and you can set all the different parameters the way you would set it for hugging face transformer models. But with the release of the new version of Accelerate library I think you will be able to do everything natively without using an external packages. Although I still have to test this. These are some very exciting times for open source projects. I hope you found this video useful. Consider liking the video and subscribing to the channel if you are interested in all things generative AI. We also have a Discord server which is gradually growing so consider joining us on Discord Link is going to be in the description of the video. I offer consulting services for startups and founders if that is something that interests you. Check out the description of the videos for more details. Thanks for watching and see you in the next one.










