Skip to content

Latest episodeE38354:51

AI Street Cred in 4 Bits or Less — How to Talk Quantization at a Holiday Party

VideoAudioTranscript

Episode 383 video poster: AI Street Cred in 4 Bits or Less — How to Talk Quantization at a Holiday Party
Video
0:0054:51Watch on YouTube
Audio
20:17 / 54:51

Show notes and transcript

Every line carries its speaker and the moment it was said. Select a timecode to play from there; the current line follows playback.

0:01
Narrator

Welcome to the Practical AI podcast, where we break down the real-world applications of artificial intelligence and how it's shaping the way we live, work, and create. Our goal is to help make AI technology practical, productive, and accessible to everyone. Whether you're a developer, business leader, or just curious about the tech behind the buzz, you're in the right place. Be sure to connect with us on LinkedIn, X or Blue Sky to stay up to date with episode drops, behind the scenes content, and AI insights. You can learn more at practicalai.fm. Now, on to the show.

0:41
Chris

Welcome to another episode of the Practical AI podcast. I'm Chris Benson, your co-host, and Daniel is still off at the time on paternity leave with his wife, Brittany. and their beautiful baby daughter Dot and wishing them well. And so I'm gonna go solo here today.

1:00
Chris

Wanted to start off by doing a little bit of housekeeping and say thank you for all the feedback we got from last week's episode. We released the most recent episode before this one on Thursday, November 26, 2026. that was Thanksgiving in the United States for reference and that was called Humans in a Posthuman World and it was a little bit of an experiment a little bit different from your regular show and so ended up being where I shared some of the concerns that I had.

1:36
Chris

I'll leave you to go look at that if you haven't already seen it. But from my standpoint out of the many years I've been podcasting and guests on other podcasts and given dozens of talks, keynotes and otherwise. I felt like that was probably the most important talk I ever gave.

1:54
Chris

So I welcome you to, if you haven't listened to it, I hope you'll go back too. If you did, I hope that it s kind of spun up a lot of thinking about what if and the world that we live in and maybe you started creating some causal chains of thought in your head that allowed you to kinda go, well, if this, then that, and if that, then that.

2:19
Chris

So anyway, thank you for all the amazing feedback I've gotten from that. This week we're gonna kinda spin things back around and get down to some really practical AI, always trying to make AI practical, productive and accessible to everyone.

2:38
Chris

And with that in mind, and the holiday season being upon us it's December and a variety of holiday parties going and I don't know about you but I have I have holiday parties I go to that are more of the traditional version and then I have lots of AI friends and colleagues and I will invariably find myself talking AI in a group in the corner and having a great time doing that.

3:07
Chris

And I thought I would share some of the things that have been coming up in conversation with me lately that maybe you can use in those holiday party conversations or just to level up a little bit in terms of some of your practical AI skills. Some of those are around feedback I've gotten. I've shared a good bit lately about hosting models locally on hardware.

3:33
Chris

So, you know, all of us are using us the different frontier, you know, chatbots and different tools that we can to write software and such with frontier models. And I think that's probably where, you know, 99% of most folks are getting their AI interactions from.

3:54
Chris

and you know they don't have to host any systems that there's no cost associated with it other than the subscription which can be hefty to acknowledge that but there's the other world of AI that a lot of practitioners are involved in and that is self-hosting and there's a number of there's a whole set of buzzwords around that and a whole set of kind of thoughts and principles and processes on how to set one up.

4:21
Chris

And I thought it would be a good thing to dive into, which definitely, in my experience, makes for good holiday party conversation when you can talk about what you're doing on your own laptop or on your own desktop.

4:37
Chris

And that's a little bit different, sharing things with folks that they may not have done. So With that said, one of the very first things that comes up when we get into this topic is, you know, how do you manage to understand like what will fit on a given machine?

4:54
Chris

You know, I have, let's say, you know, a laptop with a certain amount of VRAM and a, you know, you know, or you know, maybe a larger system that's designed for AI stuff and you know, how do I know what model will fit what and what can I do and that kind of thing.

5:10
Chris

And there's a whole lot of things that if you're only dealing with frontier models in an existing chatbot or something that you're not really, you know, you're kind of picking the level which model you want, what version and the level of effort. And that's kind of the extent of what you're doing. Whereas if you're hosting it yourself, you're gonna have to dive into a lot of the simple mathematics it takes to figure out what'll work and where. We're gonna cover a bit about that today. I'm gonna share some of my own experiences along that.

5:41
Chris

And so that will kind of dive into it. So I've shared before on the show that of the machines that I have one of them is a it's a 128 gigabyte of pooled RAM on an NVIDIA DGX Spark. I love this machine. I haven't had it very long, but I've been using it in a context. Wanted to talk, we'll dive into that in just a moment, but wanted to talk about like, you know, people say, well, how do you know it'll fit in?

6:11
Chris

Like you want to use a good model, but you know, I keep hearing about people using models like a, you know, a 240 gigabit model in terms of the weights of the model. And you know, how does that fit onto your Spark? Because, you know, you said your Chris, you said your Spark was 128 gigabit. That doesn't make sense to me. And so, you know, and so I part of this is kind of talking about like how does that even work? How can you do things like that?

6:39
Chris

And share some of that knowledge with your friends and stuff. And so for me, I have the DGX that I just talked about, also have a new System76 serval laptop comes with a Nvidia RTX 5070 that has 12 gigabytes of VRAM in it, and that's a different platform with a different set of limitations associated with it. That's my day-to-day laptop that's not my work laptop, but my personal laptop that I use.

7:17
Chris

And so wanted to kind of talk a little bit about where those come in, but before we can really dive into how to use each one, wanted to talk a little bit about that kind of terminology and set up the process about, you know, what does it mean to have a model of, you know, we see these like eight billion parameters, for instance, which is a common, it's kind of one of those common ranges that people are at. What does it mean?

7:46
Chris

to be able to run that on a certain number of gigabytes of VRAM. What is VRAM versus RAM? How does all that relate? Does that have anything to do with hard drive? Or how does that, you know, that kind of thing? We want to hit all those things really quick.

8:01
Chris

So you could think of the weights as the model's learn number and so learn numbers. And so a model is a neural network. We don't tend to use that phrase as often these days because we use ever everything as an AI model. But these AI models are neural networks.

8:20
Chris

They have a bunch of inputs, a an architecture of how of how the data flows through, the training data will flow through, and then ultimately the inference data after it's trained. And an 8 billion model has 8 billion weights that are trained into it and they become learned numbers.

8:41
Chris

So the training phase is adjusting those numbers with practice through a bunch of iterations and eventually training will arrive at the notion of a checkpoint, which is a saved set of weights that have been derived through training. And if you think of it this way, like Any one of those weights really doesn't tell us anything by itself.

9:04
Chris

But if you have a whole collection of weights relative to a type of data that it's taking in, those weights optimize on being able to process the data through that so that you can turn the data going in into a model that knows how to handle that data and is able to ultimately, when it's done, do very accurate inferences based on the type of model that it is. And so with that said, we want to talk a little bit about like how do you get there?

9:36
Chris

And like how do you know if I have, you know, an 8 billion 8 billion parameter model, since we're kind of talking 8 billion at this point, you know, does that fit on, like how do I know if that would fit onto a machine I'm using? And how does that do?

9:52
Chris

So let's talk a little bit about what that means. So as baseline, just going back to some really basic computer science for a second, the notion of bits and bytes. And if you've been, if you are a technical person, you probably already know that. If you're not super technical and getting into to being an AI practitioner without kind of the deep computer science background, bits are basically binary units.

10:20
Chris

You could think of it if I'm holding up my hand and I and I say, well, each hand is a bit and a finger is either up or down it's either on or off and that's all it can do and so if I have one bit I can I can basically have two states. If I have two bits then I actually have four. Every bit I add doubles the amount.

10:41
Chris

So three bits becomes eight, four bits becomes 16 and so on. And so if you get up to eight bits that it be that is called a byte. That's where bits and bytes are different.

10:51
Chris

a byte is simply eight bits and if you put you put a byte out there and that is kind of the basic unit of computing and so when we talk about gigabytes that's what we're talking we're talking about billions of bytes giga means billion and so as we're talking about an eight billion parameter model we have to talk about well How many bytes does that take up? Because I have a machine with a certain availability of bytes in terms of the memory it's going to use and how do those two relate.

11:27
Chris

So to know that you kind of have to know how what kind of format is used when you if I'm gonna be a creator of a model and I'm gonna put a model out there, then I need to know like How am I going to codify that model? What kind of format am I going to use?

11:45
Chris

And there's a whole bunch of different formats that get used. And we don't need to dive into the specifics of each one. But what we do need to know is that when we, you may have heard the phrase quantization regarding models like, oh, it's a quanticized model at a four-bit rate, blah, blah, blah, blah, blah. And you're you probably, if you've heard people talking like that or read stuff online, you're probably going, what does all that mean? if you've not been exposed to it. And that's what we're about to hit right here.

12:12
Chris

So what we're talking about first is that we need to know what kind of format, like how many bytes is going to be used by a given weight in a model. So if I have 8 billion weights, well on a per byte basis and more specifically on a bit basis, which is remember, a byte's, one byte equals eight bits.

12:35
Chris

if i'm going to have a model that's uncompressed meaning it's not quanticized as all quantized at all it's going to typically use two bytes it's uncompressed and so every one of those weights is two bytes so if i'm using a model that has 8 billion weights to it then each of those is going to take two bytes and so if i'm looking at the VRAM that I'm using And I'm gonna come back to that in a minute to clarify any confusion around RAM versus VRAM versus bold RAM.

13:09
Chris

But just let's say the VRAM for the moment. And I'm saying, well, it comes down to the fact that if I have, for instance, only for an 8 billion, I have a machine like my System 76 that I mentioned, which comes with 12 gigabytes of VRAM. and I take an 8 billion parameter, each one of those parameters is using two bytes, then I can kinda say 8 times 2 is 16 gigabytes, but I only have a machine that has 12 gigabytes of VRAM, which is what I need to hold the model.

13:48
Chris

So right off the bat, that 8 billion parameter model uncompressed isn't gonna fit into the VRAM on my machine. So like we've, you know, I have 12 gigabytes of VRAM for a model that uncompressed is going to require 16 gigabytes. That's a no-go.

14:07
Chris

So at that point, I do though have an option that I can potentially look for a quantized model that has reduced the is by is compressed the model down through a method we're gonna talk in just a moment. And it gives us the ability to take the kind of the general benefit of that model and use some compression on it. There are trade-offs to be made and still run it on the machine that I have.

14:38
Chris

And that is still incredibly powerful despite some of the trade-offs that we're gonna have to make, but we're gonna talk a little bit about that. So if we're going to take an uncompressed model, then I mentioned before that there are a bunch of different model types and the I'm sorry, not model types, the different formats that are used to quantize these models.

15:00
Chris

And so I have to start choosing what formats do I want to do to reduce the number of bits that the weight can fill. So instead of filling that two bytes, which is 16 bits, if you recall, then maybe I want to reduce that in half, and I instead of two bytes, I'm using one byte, which is eight bits. Or I want to reduce it farther, which is down to four bits, which is only half of a byte.

15:25
Chris

And in that case, it's kind of instead of going to the uncompressed where I have a weight that is requiring two full bytes to measure that one weight, if I go all the way down to four bits, and I can actually put two weights into a single byte. It's been reduced it, I've reduced it from 16 bits to 4 bits.

15:46
Chris

And in doing that, I've reduced some of the precision that's available on that. And we'll talk a little bit about what that means in a couple of minutes, as I keep saying, pushing different topics down the road here.

15:59
Chris

But I want to get that it you by through compression, you're able to use certain types of formats to compress that model down so it will fit onto the machine that you have available to run that. And that's really important and the different types of formats are important. We won't dive too far into it, but I will note that if you're a model creator out there choosing different formats, some formats serve different purposes.

16:26
Chris

If you There are, if you want to go down to four bits and you're looking for you know, a set of weights that are kind of spread out across a range, then there are some formats that handle that spread better and are able to codify that into a smaller number of bits. And there are some formats that might say, well, the distribution is really quite tight between these things, so I'm going to pick a format that handles that really well and is able to do that.

16:56
Chris

So What I'm getting at here is that if you're a model creator, there's a number of choices that you have to make on formats. And you can mix and match to some degree the formats. It's not just one format to rule them all. You can actually have different parts of your model that use different formats within the model to kind of optimize the different areas there.

17:16
Chris

So there's a lot of pretty cool techniques that are used in this process of compressing a model down. to make it as efficient as possible so that you can try to reduce it down to get that space. Now, coming back for a moment and let's talk about those trade-offs again, there's this notion of kind of like what am I giving up?

17:38
Chris

And I mentioned it was precision. So you could kind of think of it as maybe like a ruler and the ruler has let's say centimeters on it and it's measuring a bunch of centimeters in a row and then by quantitizing it I I've reduced it from having one, two, three, four, five. And let's say, by way of example, I'm only letting you have a mark every 10.

18:06
Chris

So you only get 10, 20, 30, 40, 50 centimeters. There's no 73. There's that doesn't exist. So if your uncompressed model, you know, might have been in our abstract kind of analogy here at a 73 mark on the centimeter, well, that's not gonna work because we've taken away some of the bits.

18:27
Chris

So it's closer to 70 than 80, and so you gotta move that 73 down to a 70. And if you had a 74 that was also there that would also have to be moved to a 70. A 76 might have been moved to an 80. And so you're kind of getting less precision on what those weights are going to be.

18:49
Chris

But in the large you have 8 billion weights as we talked about and you're still getting 8 billion parameters. They're just kind of a little bit approximate there in terms of what they're doing. But in reality, you can still get tremendous benefit out of the model, even though that you have compressed it.

19:06
Chris

And that's quant that is what quantization is all about, is being able to kind of round to the new allowed value, round that 73 to an allowed 70 or up to 80 to get that. And that is what model creators do. And so they'll not only put out maybe an uncompressed model, but they'll put out some different versions of the same model with different quantizations and so that you can use those on different platforms.

19:35
Chris

And so the more it's quanticized, the more it's compressed down, you know, you have to establish whether or not it's still good for your use case, but it also allows you more flexibility in terms of using models or maybe m you know models that are more quanticized. You could have multiple models within the same hardware instead of just one. So there's a whole bunch of different options that that's essentially buying you along the way.

20:02
Sponsor

Each week after our Practical AI production team call, I want to know what I need to prepare. Which ad is coming up? Do we have a guest? Am I researching an interview or planning a fully connected episode with my co host Daniel?

20:17
Sponsor

I want to get on with making the show, and granola is the tool I choose to help turn that conversation into a plan. Granola is an AI-powered notepad that makes your meeting notes useful. It captures what happens in your meetings and turns it into clean structured notes with decisions and action items pulled out and made easy to find.

20:37
Sponsor

I can use it to keep my next steps clear while I stay focused on the discussion. Once you try it on a first meeting, you'll find it's pretty hard to go without. You can try it totally free. Head to granola.ai slash practicalai. That's granola.ai slash practicalai to get your time back. Go to granola.ai slash practicalai and try it on your next call.

21:06
Chris

So, you know, to kind of dive into what that might mean, if I was going, you know, we've talked about the laptop case on my Spark. I currently and I'll dive into my use case in a moment but I currently use Anematron 3.5 Super VL which is a model from Nvidia that is a vision and language model and it has 120 billion weights in that model which is quite large and 120 billion And so, you know, of those, and it's called and just for reference, it's called a mixture of experts model.

21:50
Chris

And it uses like 12 billion active weights, typically for a, you know, a typical inference that it's doing. And so it's able to kind of reduce the number. We'll get into some of that maybe later in terms of the specifics of what that means.

22:07
Chris

But when you're looking at a model like that and you're saying, well, I have 120 billion and then it's gonna be, you know, two bytes for every one of that. That's 240 gigabytes right there that I would need. And that's that nematron is from the get-go larger than my Spark is able to support. So significantly larger.

22:35
Chris

But one of the nice things about it is in addition to NVIDIA publishing that what's called a BF16 release of that model, which is one of the formats that I was kind of referring to earlier, which actually the actual number comes to 249 gigabytes, which is way too big for my Spark, they also publish a compressed one that's been quantized down to 75.1 gigabytes.

23:06
Chris

And that is the for that one's called the NV FP4 release. And so it has mixed precision. It uses a bunch of different formats in it to have mixed precision in different parts of the model but it brings the whole model it compresses it down to where I can run that Nematron on my Spark and it works it and it's able to not only run there but at the 75.1 gigabytes that it's actually using to run, then it has room to run the operating system and it has room to run other software that's on it, some of which I'll talk about in a few minutes.

23:52
Chris

And I want to finish up this segment by pointing out that when I talk about video RAM. We talked about that on the laptop because traditional laptops come with hard drive, which is storage. It's not RAM. If you think of RAM, that's the part that you're actually working with. It's random access memory. It's the work you can do right now and you can pull things out of storage and use it in your RAM and get work done.

24:20
Chris

And if it is running AI or video workloads, then we do that in VRAM. Which is what we were talking about. So there's RAM, there's VRAM, video RAM, and then there's the hard drive, all of which are separate things. Now, I wanna point out before we before we let this confuse everyone on the Spark, there's a unified pool.

24:41
Chris

So the VRAM and the RAM are all the same thing. There is no difference in the two. And it does have different hard drive that it's pulling from, but in from a RAM and VRAM standpoint, it's all one pool. The operating system is running in the same space as any applications as well as the model that you're running. So just to avoid any confusion, I wanted to call that out. And with that, we'll talk about how I use that in the next segment.

25:10
Sponsor

I have AI helping control my smart home on a DGX Spark. When I give an agent a job, I want a record of what it accessed. Which files did it read, which servers did it contact? For a team using AI at work, that's what draws me to Nordlayer AI Scout, the visibility layer for Enterprise AI.

25:30
Sponsor

It captures AI activity across web and desktop tools and keeps a searchable audit trail, who used which tool, what they shared, and when. It helps detect sensitive data exposure and lets teams see agents' MCP connections and block specific ones. I'd use that visibility to investigate unexpected activity and decide where controls belong. The first step to AI governance is visibility. Explored Nordlayer AI Scout at Nordlayer.com slash AI-scout slash practicalai. That's Nordlayer.com slash AI dash scout slash practicalai.

26:14
Chris

So in this segment, I wanted to talk a few minutes about like how I use the Spark in particular. And so for those of you who've turned in to tuned in to multiple episodes, you've probably heard me at different times talking about home automation. It's a bit of a hobby of mine and the integration of AI into that.

26:35
Chris

And so wanted to talk a little bit about our setup and just, you know, maybe give you some ideas on how you can take your newfound knowledge in AI and if you want to do some self-hosting, maybe you're already doing home automation without AI and kind of talk about that use case. And if not, I hope it's just a fun topic that you enjoy.

26:56
Chris

So one of the things that I really wanted to do was to egg to use AI to have an in-home personality for my house so that it wasn't just an automated house in a bunch of different ways. but that the house itself took on a persona that I'm talking to.

27:16
Chris

And so you may have used Frontier model chats, you know, OpenAI and other competitors, Gemini, you know, who whatever you're using, and you may have put it into the speaking mode that it has where you're just talking verbally and it's talking back at you. And if you were to think about taking that, and hosting it locally instead of hosting it remotely and then giving it access to all of the resources and let it literally manage the resources that constitute your house, then that's the kind of thing that I was interested in doing.

27:51
Chris

So in addition to the Spark and the Nematron model that I was talking about, my home setup includes Home Assistant, which is a really popular open source smart home control software. It also includes Frigate, which is software that we use to handle video streams of the many security cameras that we have around our house, both inside and outside.

28:17
Chris

We have Nematron is able to interpret the video that it's able to get from Frigate and analyze that. In addition, Nematron is able to do things like control you know lights and control the you know the thermostat and a number of electronics in the house that we have different appliances that are connected into the smart home, things like CAS that maybe some of you are familiar with and historically we've been able to use apps and turn all those things on and off but I wanted to be able to speak to the house and be able to say it with through a voice path and be able to speak out loud in the house or do it on my phone, either through chat or through speaking to the phone and have the model of the house, which is currently Nematron, that's yeah, that's subject to change, be able to speak back to me just the way you would if you're talking to one of the Frontier model chat apps.

29:19
Chris

And so I'll point out up front that Numotron is not as capable as a Frontier model. It's an incredibly capable model, but it's not as capable as the latest Frontier model that the Frontier labs, you know, the Anthropics and the Googles and the Open AIs out there are putting out.

29:40
Chris

But it's still quite amazing what it can do. It can do contextual analysis of the video. And since I have it on a limited set of use cases in terms of what I wanted to address, I can kind of tune it toward those and get it. So I've actually given the model a personality and it and talking and able to have conversations with it just like you would if you were talking to the frontier models.

30:10
Chris

But it like the personality and the house and you know, the resources within the house are all conceptually the same thing in the setup and the model understands it to be all the same thing. And then I have voice speakers with mics in places around the house so that as someone is moving around the house, well, they are recognized through different types of identification, be it Bluetooth, recognizing devices that they're carrying, be it voice print, be it recognition in terms of video identification.

30:52
Chris

So the family members or people that are commonly here at the house are actually known and can be addressed specifically and the model knows what room they're in. and understands a certain amount of context about what's going on in those. It can also, if they're going back to the idea of security cameras, if it detects somebody that's unknown coming up, it can identify what's happening contextually.

31:17
Chris

Like it can notify me, Chris, there is a strange man walking up your driveway who is holding a gun. you might I thought you'd want to know that was happening and we can take we can take you know measures against that from a security perspective.

31:32
Chris

So we have a whole bunch of different capabilities around the smart home that are built around the model and so like enjoying tinkering I like to be able to the model may change over time and I've got a whole bunch of things to set up new models pretty quickly on that and see what they can do.

31:52
Chris

But that's a pretty cool use case from my standpoint where I'm able to try to do that.

32:00
Sponsor

Ever had to talk a coding agent out of a bad idea? Our sponsor, ARCA, pays you for sharing conversations you've had with AI coding tools. Those sessions help ARCA build better training exercises for AI. A few days ago, I built the new Practical AI website with Claude Code. More than once, Claude suggested a plan with one small catch.

32:23
Sponsor

I couldn't log into the system it wanted me to use, so I explained what I could access and asked it to find another way. That's the kind of conversation I share with ARCA that I love a coding agent that asks what I have access to before it makes a plan. ARCA's free desktop app finds coding sessions saved on your computer.

32:43
Sponsor

You pick one, that you're comfortable sharing and you submit it for a quote. If ARCA approves the session, you get paid. Use the link in the show notes to go straight to ARCA, download it for free, and start getting paid for the AI work you already do.

33:02
Chris

So you know, one of the things that I think is really important is that like doing a lot of these things are using resources in the Nematron model that I'm currently using or whatever I might be using at the point where you're listening to this podcast episode. And so I wanted to point out that like everything you're doing has a cost. There's a performance criteria associated with it.

33:27
Chris

When you're doing voice activation, it has to all the things that happen in real life were like I speak, I stop speaking, The system has to recognize I've stopped speaking, it has to take what it's heard, it has to process that and convert it into tokens and through the computing process, you know, give me, it evaluates that, gives me speech back and process.

33:54
Chris

So all and all these things then have to sound something that works well for a human conversation. So there's a whole bunch of fine-tuning, which I'm not gonna get into today, that allows harder processing to be deferred, little things that the things like, you know, where I may have the model say, one moment, Chris, while I address something, if it needs more time to process, depending on the activity.

34:17
Chris

And then there's all sorts of priorities around what's more important and how do we handle something and if we need compute from happening or inference happening from different sources at the same time.

34:30
Chris

what gets preference and why and how what's a lot of the nuance but there's a whole bunch of different kind of configuration that happens in that so you know going through that and i know i mentioned the word token a moment ago if you're not familiar with that it means kind of a piece of text because remember even if i'm talking with voice my voice is transcribed into tokens which are able to be processed and that represents a little piece of text along the way, just to give a quick definition of how that's how that works.

35:07
Chris

So there is a cost to each of these activities and performance criteria around those. And so you have to hone the system to be able to accommodate all those things so that each one of the required functions that I'm asking the house to do can be addressed and they're all quanticized and safety concerns are addressed above and beyond all other things.

35:37
Chris

You know, human conversation is fairly high in the priority list to make it natural, whereas if, you know, just like if I ask a really hard question on a Frontier chatbot, It might take a little while as, you know, you'll sit there and wait. And I have it to where, you know, there might be a quick response of let me work on that, like I mentioned, and then it goes off and does that.

35:59
Chris

And that's actually a lower priority, even though it might be a really important technical job I have it doing, because the expectation is that could take quite a long time to go address. So as we integrate this in, it it's able to really be effective at the human interfacing that we're doing in terms of how the model is able to serve not only me, but remember, it's my family.

36:25
Chris

It reca it has to recognize dogs, because I have dogs and we and we have wild animals outside the house. The cameras have to be able to understand that that's actually a group of deer going across and, you know, with the you know with the antlers and stuff and not necessarily a human with a you know a weapon or something like that so that kind of contextual nuance matters when you place these models into these real situations and are tuning them for the specific use case that you're looking at.

36:58
Chris

I think the that's really added quite an amazing dimension by using a model like Nematron, which is large enough for context, because we could have done object identification with much smaller models. There are things and they that you can actually, there are models that don't even need a GPU.

37:20
Chris

You can do them on a CPU and with they have a library of objects that they can identify and, you know, you can say, I see a person with a with a thing and stuff like that, but it doesn't give you the context. Whereas when you have the larger model that's actually able to understand the scene that things are occurring within, it really, it really makes a big difference in terms of the quality of AI kind of integrating in with, with what you're, you know, what you're doing.

37:52
Chris

And the fact that it's able to do that in the voice mechanism where it understands the performance criteria and the priorities that have to happen.

38:03
Chris

you know and you know you know much of which is clock based you know where you're when that spoken you know when I talked about that process of speaking and you know you can you kind of start the clock as you finish speaking the model's taking the request in the model is trying to decode the words and the remaining tokens are coming out all of these things in the context of something happening on my driveway or in my yard or something.

38:33
Chris

And we live on several acres, so there's quite a lot to be assessed by the security cameras. And all that's tied in as well with frigate and with Home Assistant and some other systems. I have some custom systems that I've written in Rust that offer some custom functionality in addition to the different plugins that Home Assistant has.

38:53
Chris

So all of those things really make quite a robust experience. And so with that I will stop boring you with my with my intelligent home automation setup and we will turn to another use case in the next segment. So let's return to I talked earlier about that just my day-to-day laptop is a system 76 serval WS as 32 gigs RAM, 2 terabyte smart drive, it has 12 gigabytes of VRAM, so it's very different from the Spark that has that open pool. And that really limits what I can do.

39:39
Chris

So we're down to assessing models by that 12 terabyte limit, though with some big with some big considerations take into account, I can use the RAM by moving things into RAM, not VRAM if it's a model that's larger than it'll work and some and most of the model might be running in VRAM and then there could be a part, but there are performance characteristics on that.

40:09
Chris

And so because it's a very different much more constrained than my Spark environment, I really focus on different types of models that are very different from the home automation use case. that I can run on the laptop in a productive way. And so, you know, kind of turning toward that, I can, I, I am really looking at things that will work productively for me in that 12 gigabyte VRAM constraint and that are on my day-to-day laptop.

40:43
Chris

And keep in mind, I still have subscriptions to Frontier models that I use regularly. You know, I use Cloud Code. literally every day, for writing code and it's brilliant at that, though I am more and more, I just as an aside, starting to turn toward sort some of the non-frontier models for coding as these models are getting better for some of the coding needs that aren't way out there.

41:12
Chris

So if I'm looking for incredible design and really novel architecture or something where I'm using Claud code, maybe fable, for that and backing it down to opus for some of that implementation. But now I'm also starting to include some of the things that I can run either on my laptop or turning to Nematron to do some of the stuff, depending on what it is.

41:35
Chris

And so that also keeps me from using up my subscriptions to those Frontier models too early and potentially saves me a little bit of money there over time. And so I wanted to talk a little bit about the kind of thing. So as I've mentioned before, I'm writing a couple of books. I know I it seems like I'm forever saying I'm writing and not have written, have published or whatever, very close on one.

41:58
Chris

The two books are The Art of Swarming and one is the same as the episode title from last week, which is Humans in a Posthuman World, where the book goes into much more detail. about what I discussed in last w last week's episode, which I mentioned at the top of the show. So, but having said that, as an author, so I have to write my own words.

42:22
Chris

So the actual words that go in the book have to be human generated and there's tons of AI text detectors out there and it's very it's not hard to do that. So that has to happen.

42:34
Chris

But I'm able to use AI in all sorts of ways as a research assistant to accelerate my understanding of the topic and how I perceive my own topics that I'm writing into these books and to get materials for me and to consolidate them into so anyone who's written a book, you tend to use software to write a book and you'll kind of have the manuscript, but you'll have a whole bunch of kind of research folders around it and different software handles it different ways.

43:06
Chris

But your notes and connections between different things and for me with especially with two books they're very different books but there are connections between them and I'm also connecting material. And so all of these ancillary activities are great things to use to use an AI model for. while saving the actual writing of the manuscript itself for you, the human.

43:32
Chris

But it makes a huge difference on your productivity to be able to do that, to be able to get a lot of those connections with the models. And that leaves you as an author to get things faster, understand how to put it together, run some experiments on what how you want to put it together to make it better, and then be able to focus on getting the words out.

43:50
Chris

And so wanted to talk a little bit about kind of what's involved in that and some of the things that I've done. And in that capacity, I've used I've used various models. I've been trying out different models with different formats and stuff, but wanted to walk through a little bit about, you know, kind of what that means.

44:13
Chris

And so when I'm looking at a model, one of the things I didn't talk about in the last section, which I probably should about, is like before I even, you know, download a model, I'll look at the file name and the card, like it's on Hugging Face or something, and learn about the model ahead of time.

44:31
Chris

And so there you can learn about kind of the different quantization options that are available which download do you want what are the sizes you know how much room do you have you can start thinking about well I can find the ones that are gonna fit onto my platform, some of which aren't, some of which are. And of the ones that fit, do they make sense?

44:54
Chris

Can I reasonably run other things that need the VRAM on my laptop in addition to that? I can probably use most of the VRAM in most cases, but there's a lot of decisions and you can decide that ahead of time in terms of, you know, what you're trying to do.

45:09
Chris

And you can also make decisions on things like run times where you can you know, I mentioned earlier about the notion of like splitting a model between GPU and CPU if you want to do that. And there are common inference engines or runtimes and those two terms mean the same thing for all practical purposes. One that's well known is called llama.cpp and llama.cpp is a runtime that can use both CPU and GPU and so there's a lot of models and in some cases you can just use that to run very small models just on CPUs.

45:48
Chris

So for those of you who think an AI model, maybe you have an older laptop that doesn't have a GPU or not a m not much of a GPU on it and you're thinking I can't really do that. Well you may be able to by running models on la with llama.cpu I'm sorry llama.cpp. I may have said CPU before if I did I apologize.

46:06
Chris

I'm going too fast on your laptop so that gives you a bunch of capabilities but you can look at the different options on the, you know, you know, what how the weights are formatted and kind of pick. So as you're doing that, you know, I wanted to talk a little bit about like how some of this really plays in to my workflow and how I actually use it. I talked a little bit about kind of like the notes and grouping notes and stuff like that.

46:41
Chris

And for me, another thing in addition to managing notes and organizing the work that I talked about, particularly in humans in a post-human world, which is a book that makes lots of predictions. And those of you who listened last week got some of those, i at a very high level, at least at a and the book goes into a lot more detail.

47:05
Chris

And so One of the thing I like to use the models for is organizing predictions. I may make some predictions and then I'll go to frontier models also to help with some of my prediction the predictions that I'm making in the books, the because there's a lot and there's a lot of causal chains of predictions in there that, you know, if that happens, then this is likely to happen, then if that, then that can happen.

47:32
Chris

And so I spread that, some of the stuff I'll do off in a service, in a subscription that I'm using, but more and more I'm doing that on, especially as I hone it down. So I may kinda arrive at what I think is going to happen and provide the supports and justification.

47:50
Chris

And then I'm able to fine-tune some of those predictions using the local models, which is a lot more convenient to just have it there. It breaks my workflow up a lot less. And I think that's something to note about why I wouldn't just go to a frontier model is the ability to kind of break is to get the work done without breaking my workflow where the model can be doing concurrently what I'm working on and making suggestions at the same time almost collaboratively and I can decide which way I want to go with the narrative before I ever get to the manuscript writing manuscript writing itself.

48:34
Chris

And so that can really help. Plus, with that, I have a fairly extensive set of notes because I've been working on these books between the two of them for more than two years in my own time. They're not re neither book itself is actually related to my day job. This is my nights and weekends stuff.

48:57
Chris

And I have a bunch of documents on the laptop. that I use retrieval augmented generation rag which we've talked about on previous episodes to go in and look at some of the stuff that I've either written in the past or notes I've put together that may not be part of the book but they have a broader implication over a couple of years and it'll say hey you were addressing this a while back you may want to bring that in that might have an appropriate place And so I can use a local model to do that kind of in real time as I'm working on the process instead of stopping, going to a frontier model, letting it go off, letting it come back.

49:37
Chris

It so I the way that I use each one, you know, is really the what frontier versus the local on my laptop is really quite different. And so But I do still be, you know, before I do still go to those frontier chats that if I have like something that's beyond the local model, like a whole new area of research within swarming and swarming being my area of technical expertise, as many people know, I bring it up on the podcast very regularly.

50:12
Chris

And so if it is a truly like I go, what about this whole thing? I want to go explore, I want to ask questions, I want to talk about the technologies. then that's bigger than my than the smaller model on the laptop can do. And so I'll run out and do that. And so that's part of that workflow.

50:29
Chris

And so I guess in general, I really just wanted to kind of describe what the utility, like how one makes judgments about what models to use. how they fit into your different environments and like how one's workflow can take into account the fact that you have models on different platforms with different capabilities and have yet a cohesive workflow that lets you move through those things and integrates frontier models wherever that makes sense because I still do use frontier models for lots of stuff.

51:09
Chris

despite the fact that I've been focusing on the local ones in this particular show. So, you know, going back, I hope that if you end up in, you know, going back full circle, you end up in that holiday party scenario where you are having a discussion with your friends and you're talking about what you're doing on your laptop or whatever hardware you have available for models.

51:36
Chris

And or maybe somebody brings up a quantized model and you're like and in your head you're able to go, I know exactly what that is. They're talking about compression and you can turn back and ask about what formats are in use, what kind of models, whether they're doing mixed formats on it and how they made the choices on what models to use and what, you know, like if they're looking at different options, how are they making their choices and how do those choices relate to their use cases?

52:06
Chris

And all of this makes a whole lot more sense in terms of being a productive AI practitioner, whether you're a professional or an amateur, that is able to productively use models to get the work done, whatever your passion is. And, you know, I've covered the book writing and I've covered the home automation scenarios that I spend a lot of my time on and hopefully you have some ideas on really what you might be able to do with these.

52:38
Chris

But I would be delighted if you are simply walking away with the notion of maybe your future isn't just frontier model software with a subscription anymore, but maybe you're going to take advantage of hardware you already have or you maybe you're it maybe it changes what laptop you buy next. in terms of what you could do because there may be something that this is spawned.

53:00
Chris

So I hope that you will let us know that we have a brand on Thanksgiving. I did not I don't think I previously announced this but on Thanksgiving we launched the new practicalai website at practicalai.show. Again that's practicalai.show it has both the video it has the audio you can choose how you want to listen to us it has the ability to link to all of our different social channels as well as all of our different podcasting channels because there are different platforms different folks are listening to this on or watching on.

53:36
Chris

And so it also has some other features that I'll let you discover on your own on that. But I hope that you go there, maybe link into some of our social channels, share what Your ideas for how you're using different open weights models that are locally hosted. Can't wait to hear some of those. And we're looking forward to having you back on another episode here to talk about some more stuff next week. Until then, this is Chris Benson, your co-host. I am signing off. And take care.

54:15
Narrator

Alright, that's our show for this week. If you haven't checked out our website, head to practicalai.fm and be sure to connect with us on LinkedIn, X, or Blue Sky. You'll see us posting insights related to the latest AI developments, and we would love for you to join the conversation. Thanks to our partner Prediction Guard for providing operational support for the show. Check them out at predictionguard.com. Also, thanks to Breakmaster Cylinder for the beats and to you for listening. That's all for now. But you'll hear from us again next week.

Keep going

More episodes