All right, so this is Stable Diffusion. This is an AI? Yeah, this is Stable Diffusion. This is the AI? This is one of the AIs. And what's this one do? This is actually ControlNet bolted on top of Stable Diffusion. So you have, in this case, the Nike Swish. It's going to control the Stable Diffusion to generate a edge map right here. So you can get... this is how you get the images with certain patterns built into them. So have you seen the TikTok filters with people like... Dancing like a... they look like a... I totally do those videos. Yeah, this is how it's built. Okay, so it does the edging around it and then it can do things around it. So this one does edging, but then you can do it with a normal map, you can do it with a pose map. There's all sorts of different ways of doing it. Do you always have to feed an image in or can you also do text in? This is a text image. So this is a human baby lobster, but we can do it with this image or this... various other images. Okay. If you don't feed it an image, are you able to just generate something? It's going to see what happens with human baby lobster without an image fed into it. This one's still got the Nike Switch. I haven't swapped it over. That is remarkably creepy for some of these. Yeah, this one has improved drastically since we did this last year. We had Latent Diffusion and if you asked it to generate an image like this, it would generate like outer nightmare fuel. I think I have some nightmare fuel on this computer, but it was like the most disgusting tentacle monster we've ever seen. Oh my gosh. Some of these are still like, they're really good. I like the ribs. Kind of nuts at the same time. So as a curiosity, the other item on the scav hunt list is crashing AI. Yeah, we can... How do you crash an AI? This particular one I crash usually by going too big. So this model was trained to do 512x512. So you're making the image way too big for it to process and it will crash. Oh, well this won't crash, but I want to turn off the control net stuff. And you're expecting this one to crash? No, this won't crash, but the model is going to start generating some really weird stuff. But what happened is I pushed it up. Now it's consuming nearly 36 gigs, 36 gigabytes of VRAM. I have an A6000, so I have nearly 50 gigs of VRAM. But normally this would crash just out of memory. Okay. And if I pushed these numbers up a little bit higher, I would have crashed it without a memory. But what happens now is it's going to take 10 minutes to generate. But usually when you push it this high, you get a result. So it doesn't crash crash, but because I've pushed the image range so high, it doesn't generate a sensible image anymore. So if you want a horse with eight legs, and you want to guarantee a horse with eight legs, you push the image resolution too high. And then it will generate horses with eight legs and all sorts of fun things that you don't get when you generate normal images on Hugging Face or Dali 2. Because they want you to get good images that are usable, and I'm trying to currently push an image that's through this thing that is just going to break the system. And what causes it? Okay, maybe it's not a crash, but what causes it to go goofy? It's that it runs out of memory, so in an attempt to save memory, it's like offloading, and what's happening? The model was trained to generate 512x512. So in this case, the model was trained to generate 256x256 images, and then upscale that to 512x512. And the upscaling is literally like CSI Enhanced. That's what it is, just CSI Enhanced. I feel like every time I use CSI Enhanced, I do have to, in a deep voice, go, Enhanced. Yeah, this parameter right here is saying, oh, we're going to do Enhanced 30 times. But it does the upscaling. But what it was trained to do is have that field of view, and so suddenly you have given it this field of view. And so it's going to make the same, it just tiles that process over and over again. So it's going to try to generate a horse here, and then it's going to go over here and try to generate a horse. And they overlap, so you get a horse, so the horses meld together. Is this one of the reasons why some of the early things with stable diffusion made people look so weird, or is that a separate problem? I don't actually know myself, but one of the creators is around, I don't think she's here right now, but like that particular thing, I think was a, basically that story of like, I'm going to generate one set of finger, it knows how to generate a finger, and then generates another finger, and then it just keeps going. And it just accidentally makes six fingers, because it knows how to generate small patches. But it's got the same thing. I think you're right, but I'm not sure. Because I do ML security with malware models, and spam, and all sorts of other weird things. So let's answer the question for Scav Hunt, which is, how do you crash AI? Well, in this case, if you want to crash stable diffusion, you can allocate way too much RAM. Most of the time I crash AI, it's out of memory. With a large language model, the number of tokens, the number of tokens, the amount of memory you need scales with the square of the number of tokens, and that is bad. So is that what happens when you get too many tokens, it loses the original con? It does one of two things. Either A, it loses the original context, and this is one of the ways a lot of jailbreaks work, right? Where it fills up the context, it forgets about its original security parameters, and now it's doing things it's really not supposed to do. Like the invention of a lot of the jailbreaks, where you can now, all of a sudden, recipes for drinking bleach and things like that, where it's saying things you're definitely not supposed to do as recipes. You either have the option of losing context, or... You start running out of memory. You run out of memory, and it officially crashes the process. Yeah, but they control the number of tokens. That's why Anthropic was so excited about beginning to 10,000 tokens. They came up with a new way of doing it to drastically expand the amount of tokens without messing with the memory too much. Okay. So with this then, first, thank you for teaching me how to crash AI. I have that now, that feather in my cap. Thank you so much for your time. I really, really appreciate it. Thank you for watching. And as always, hack on. That is super hot right now. And if it doesn't crash, it might catch fire.