4ビット以下でAI通になる――ホリデーパーティーで語れる量子化入門

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

Practical AI54分
4ビット以下でAI通になる――ホリデーパーティーで語れる量子化入門

4ビット以下でAI通になる――ホリデーパーティーで語れる量子化入門

Practical AI

0:0054:51

要約

共同ホストのChris Bensonが一人で登場し、ローカルLLMを自前のハードウェアで動かす際の基本を解説した回。パラメータ数とバイト数から必要メモリを見積もる計算、量子化による精度とのトレードオフ、128GBのDGX Sparkで120B級のNemotronを動かす例を紹介する。さらにスマートホーム制御と書籍執筆の支援という2つの実用例と、フロンティアモデルとの使い分けも語られる。

この回のポイント

  • ●非圧縮モデルは1パラメータ約2バイトなので、8Bモデルは約16GBが必要となり、VRAM 12GBのノートPCには収まらない。
  • ●量子化は重みを少ないビットで表す圧縮で、定規の目盛りを粗くして最も近い値に丸めるように精度を犠牲にする。
  • ●NVIDIAのNemotron 3.5 Super VLはBF16版が249GBだが、混合精度のNV FP4版は75.1GBで、128GBのDGX Sparkで動かせると述べている。
  • ●Sparkではメモリが統一プールでRAMとVRAMの区別がなく、OSやアプリ、モデルが同じ領域を共有する。
  • ●自宅ではHome AssistantとFrigateにNemotronを組み合わせ、映像解析や音声での家電操作、家族の識別を行っている。
  • ●書籍の執筆では、本文は自分で書き、ローカルモデルとRAGで過去のメモを呼び出し、新規の調査はフロンティアモデルに任せる使い分けをしている。

章立て

  1. 導入とエピソードの狙い

    前回の回への反響に触れ、今回はホリデーパーティーで話せるセルフホスト入門に絞ると説明する。

  2. 重みとビット・バイトの基礎

    パラメータ数、チェックポイント、ビットとバイトの関係を整理し、必要メモリの計算方法を示す。

  3. 量子化とそのトレードオフ

    非圧縮の2バイトから8ビット、4ビットへ減らす仕組みと、精度が粗くなることを定規の例えで説明する。

  4. Nemotronと各種メモリの違い

    249GBのBF16版と75.1GBのNV FP4版を例に、RAM、VRAM、ストレージ、Sparkの統一メモリの違いを解説する。

  5. スマートホームでの活用

    Home Assistant、Frigateと組み合わせ、音声対話、人物識別、映像の文脈理解、遅延や優先度の調整を紹介する。

  6. ノートPCでの執筆支援

    VRAM 12GBの制約下で、モデル選びやllama.cppの利用、RAGによるメモ検索と予測の整理を語る。

  7. 使い分けとまとめ

    フロンティアモデルとローカルモデルの併用、新サイトの告知、ホリデーパーティーでの会話術で締めくくる。

解説記事

Practical AIの共同ホストChris Bensonが、共同ホストのDanielの育児休暇中に一人で担当した回である。テーマは、自前のマシンでAIモデルを動かす「セルフホスト」の基本だ。ホリデーパーティーで「量子化モデル」の話が出ても慌てないための入門、という趣向で進む。

「何がGPUに載るか」は単純な算数

Bensonは、フロンティアモデルをチャットで使うだけなら不要な知識として、モデルのサイズ計算を挙げる。モデルのパラメータ(重み)は学習で得られた数値で、8Bモデルなら80億個の数値を持つ。非圧縮の場合、1つの重みは通常2バイト(16ビット)を使う。

したがって8Bモデルは約16GBが必要になる。彼のSystem76製ノートPCはRTX 5070でVRAMが12GBなので、そのままでは載らない。VRAMはAI処理用のGPUメモリ、ストレージのハードディスクとは別物だ、とも整理している。

量子化とは「目盛りを粗くする」こと

解決策が量子化である。重みを16ビットから8ビット、4ビットへ減らせば、4ビットなら1バイトに2つの重みを詰め込める。代償は精度だ。Bensonは、1cm刻みの定規を10cm刻みにする例えを使う。73という値は70に、76は80に丸められる。個々の値は近似になるが、数十億の重みがあるので、モデル全体としては十分に有用なままだ、という説明である。

また、形式は1つに統一する必要がなく、モデルの部位ごとに混ぜて使えると述べている。重みの分布が広いか狭いかで向く形式が違うためだ。モデル作者は非圧縮版と複数の量子化版を公開するので、利用者は自分の環境と用途に合うものを選ぶ。圧縮が進めば、同じハードで複数モデルを載せる余地も生まれる。

120B級のNemotronを128GBのSparkで動かす

具体例が、NVIDIAのNemotron 3.5 Super VLである。視覚と言語を扱う約1200億重みのMixture of Experts(MoE)モデルで、通常の推論で使われるのは約120億の重みだという。BF16版は249GBでSparkの128GBには収まらないが、混合精度のNV FP4版は75.1GBで、OSや他のソフトを動かす余裕も残る。

なおDGX Sparkは、RAMとVRAMが一つの統一プールになっている点がノートPCと違う。Bensonは、この違いが混乱の元になりやすいとして注意を促している。

実用例1:家そのものがAIになる

Bensonの自宅では、オープンソースのHome Assistantで機器を制御し、Frigateでカメラ映像を扱う。Nemotronが映像を解釈し、照明や温度調整を音声で操作できる。モデルには人格を与え、「家」そのものと話す形にしている。

Bluetooth、声紋、映像などで家族を識別し、部屋の状況も把握する。見知らぬ人物が来れば通知でき、庭を横切るシカと人を文脈から区別できるとも語る。小型モデルでも物体検出はできるが、場面の文脈理解には大きなモデルが効くという見方だ。音声対話では応答の遅延が重要で、「少々お待ちを」と返して重い処理を後回しにするなど、優先度の調整も必要になる。

実用例2:ノートPCで書籍執筆を支援

日常用のノートPC(RAM 32GB、VRAM 12GB)では、より小さなモデルを使う。Bensonは2冊の本を執筆中で、本文は人間が書くと明言したうえで、研究の補助にAIを使う。2年以上のメモに対するRAGで、関連する過去の記述を執筆中にリアルタイムで提示させ、作業の流れを止めない点を利点に挙げた。予測の因果連鎖の整理もローカルモデルで行う。

モデルを選ぶ際は、Hugging Faceなどのモデルカードで量子化の種類やサイズを事前に確認する。llama.cppのようなランタイムなら、GPUとCPUの併用や、小型モデルのCPUのみでの実行も可能だ。GPUの乏しい古いノートPCでも試せるかもしれない、と述べている。

まとめ

本回の価値は、「パラメータ数×1重みあたりのバイト数」でメモリ必要量を見積もるという基本を、平易に押さえている点にある。量子化版を選ぶ際は、サイズだけでなく精度低下が用途に許容できるかを確かめる必要がある。

Bensonはローカルを万能とは見ておらず、設計やまったく新しい調査にはフロンティアモデル、日常の補助や常時稼働にはローカル、と使い分けている。サブスクリプションの消費を抑える効果にも触れていた。手元のハードで何ができるかを見直すきっかけとして、次のPC選びの判断材料にもなりそうだ。

文字起こし(英語・自動生成)

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. Welcome to another episode of the Practical AI Podcast. I'm Chris Benson, your co-host. And Daniel was still off at the time on paternity leave with his wife, Brittany, and their beautiful baby daughter, Dot, wishing them well. And so I'm going to go solo here today.

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 Post-Human World. And it was a little bit of an experiment, a little bit different from your regular show. And so it ended up being where I shared some of the concerns that I'd had. 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 been 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 so I welcome you to if you haven't listened to it I hope you'll go back to if you did I hope that it kind of spun up a lot of thinking

about what if and the world that we live in and maybe started creating some causal chains of thought in your head that allowed you to kind of go, well, if this, then that, and if that, then that. So anyway, thank you for all the amazing feedback I've gotten from that. This week, we're going to kind of spin things back around and get down to some really practical AI, always trying to make AI practical, productive, and accessible to everyone. 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 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.

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. So, you know, all of us are using the different frontier, you know, chat bots and different tools that we can to write software and such with frontier models. And I think that's probably where, you know, 99 percent of most folks are getting their AI interactions from. You know, they don't have to host any systems. 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. 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. 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? You know, I have, let's say, you know, a laptop with a certain amount of VRAM and, 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?

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 going to have to dive into a lot of the simple mathematics it takes to figure out what will work and where. We're going to cover a bit about that today. I'm going to share some of my own experiences along that. 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 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. I wanted to talk. We'll dive into that in just a moment. But I wanted to talk about, like, you know, people say, well, how do you know what will fit in?

Like, you want to use a good model. But, you know, I keep hearing about people using models like, you know, a 240 gigabit model in terms of the weights of the model. And, you know, how does that fit on to your Spark? Because, you know, you said, 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 and share some of that knowledge with your friends and stuff? And so for me, I have the DGX that I just talked about. I also have a new System76 serval laptop. It 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.

It's not my work laptop, but my personal laptop that I use. And so I 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, I 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 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. So you can think of the weights as the models learn numbers. And so a model is a neural network. We don't tend to use that phrase as often these days because we're using everything as an AI model.

But these AI models are neural networks. They have a bunch of inputs, an architecture of how the data flows through, the training data will flow through, and then ultimately the inference date after it's trained. And an 8 billion model has 8 billion weights that are trained into it, and they become learned numbers. 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. 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? And, like, how do you know if I have, you know, an 8 billion parameter model, since we're kind of talking a 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? 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 in getting into being an AI practitioner without kind of the deep computer science background, bits are basically binary units. You could think of it if I'm holding up my hand 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 basically have two states. If I have two bits, then I actually have four. Every bit I add doubles the amount. So three bits becomes eight, four bits becomes 16, and so on. And so if you get up to eight bits, that is called a byte. That's where bits and bytes are different. A byte is simply eight bits. And if 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 about, billions of bytes. Giga means billion. And so as we're talking about an 8 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 those two relate. So to know that, you kind of have to know what kind of format is used.

If I'm going to be a creator of a model and I'm going to 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? 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 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. 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, one byte equals 8 bits, if I'm going to have a model that's uncompressed, meaning it's not 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 going to come back to that in a minute to clarify any confusion around RAM versus VRAM versus full RAM, 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 2 bytes. then I can kind of 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 So right off the bat that 8 billion parameter model

uncompressed isn't going to 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. So at that point, I do, though, have an option that I can potentially look for a quantized model that has reduced the, it's compressed the model down through a method we're going to talk in just a moment. And it gives us the ability to take 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. And that is still incredibly powerful despite some of the trade-offs that we're going to have to make. But we're going to talk a little bit about that. So if we're going to take an uncompressed model that I mentioned before, 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.

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 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. 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 four bits. 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.

But I want to get that 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. If you want to go down to four bits and you're looking for 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. 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. 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? And I mentioned it was precision. So you can 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've reduced it from having 1, 2, 3, 4, 5.

And let's say, by way of example, I'm only letting you have a mark every 10. So you only get 10, 20, 30, 40, 50 centimeters. There's no 73. 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 going to work because we've taken away some of the bits. So it's closer to 70 than 80. And so you've got to 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. 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.

And 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. 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 so that you can use those on different platforms. 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, 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. 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? 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. 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.

So, you know, to kind of dive into what that might mean, if I was going here, 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 just for reference, it's called a mixture of experts model, and it uses like 12 billion active weights, typically for 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.

But when you're looking at a model like that and you're saying, well, I have 120 billion and then it's going to be, you know, two bytes for every one of that. That's 240 gigabytes right there that I would need. And that's that Nemetron is from the get go larger than my Spark is able to support. So significantly larger. 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. And 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, different parts of the model, but it brings the whole model, it compresses it down to where I can run that Nemetron on my Spark and it works. 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 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. 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 want to point out before we let this confuse everyone on the Spark, there's a unified pool. So the VRAM and the RAM are all the same thing. There's no difference in the two. It does have different hard drive that it's pulling from, but 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 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 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. Explore NordLayer AI Scout at nordlayer.com slash AI dash scout slash practical AI. That's nordlayer.com slash AI dash scout slash practical AI. So in this segment, I wanted to talk a few minutes about how I use the Spark in particular.

And so for those of you who've 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. And so I wanted to talk a little bit about our setup and just 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. So one of the things that I really wanted to do was 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. And so you may have used Frontier Model chats you know OpenAI and other competitors Gemini you know whatever you using And you may have put it into the speaking mode that it has where you 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. 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 mini security cameras that we have around our house, both inside and outside. 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, 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 CASAs 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 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 Nemetron, 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. And so I'll point out up front that Nemetron 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 OpenAIs out there are putting out. 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 want it to address, I can kind of tune it toward those and get it. So I've actually given the model a personality and talking and able to have conversations with it, just like you would if you were talking to the frontier models. 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 or 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. 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. Like it can notify me, Chris, there is a strange man walking up your driveway who is holding a gun. I thought you'd want to know that that was happening. And we can take measures against that from a security perspective. 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. But that's a pretty cool use case from my standpoint where I'm able to try to do that. 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. 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'd 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.

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. so um 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 uh 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 when you're doing voice activation, it has to, all the things that happen in real life where 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. So 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 going to get into today, that allows harder processing to be deferred. Little 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. 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, what gets preference and why and what's a lot of the nuance. 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 works. 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 quantized and safety concerns are addressed above and beyond all other things. You know, human conversation is fairly high in the priority list to make it natural. Whereas, you know, just like if I asked 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. 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'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. Remember, it's my family. It has to recognize dogs because I have dogs 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 antlers and stuff and not necessarily a human with 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.

I think that's really added quite an amazing dimension by using a model like Nemetron, which is large enough for context, because we could have done object identification with much smaller models. There are models that don't even need a GPU. You can do them on a CPU. And they have a library of objects that they can identify. And you can say, I see a person 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 makes a big difference in terms of the quality of AI kind of integrating in with what you're doing. 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, much of which is clock-based. You know, when that's spoken, you know, when I talked about that process of speaking and, you know, 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. 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 plug-ins that Home Assistant has. So all of those things really make quite a robust experience. And so with that, I will stop boring you 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 System76 ServalWS. It has 32 gigs of 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. So we're down to assessing models by that 12 terabyte limit, though with some big considerations to 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 will work. And most of the model might be running in VRAM, and then there could be a part, but there are performance characteristics on that.

And so because it's a very different, I'm 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 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. 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, just as an aside, starting to turn toward some of the non models for coding as these models are getting better for some of the coding needs that aren way out there So if I looking for incredible design and really novel architecture or something

where I'm using Cloud 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. 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 it seems like I'm forever saying I'm writing and not have written, have published or whatever. Very close on one. 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 Post-Human World where the book goes into much more detail about what I discussed in last week's episode which I mentioned at the top of the show but having said that

as an author so I have to write my own words 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 not hard to do that. So that has to happen. 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. But your notes and connections between different things. And for me, 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 an AI model for while saving the actual writing of the manuscript itself for you, the human.

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. And so I 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. 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. And so 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 going to fit onto my platform, some of which aren't, some of which are. And of the ones that fit, do they make sense? 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. And you can also make decisions on things like runtimes 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. So for those of you who think an AI model, maybe you have an older laptop that doesn't have a GPU or 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 with llama.cpp. I may have said CPU before. If I did, I apologize. I'm going too fast. On your laptop so that that gives you a bunch of capabilities. But you can look at the different options on 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. 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 I got some of those at a very high level at least and the book goes into a lot more detail and so one of the things 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 predictions, the predictions that I'm making in the books, because there's a lot, and there's a lot of causal chains of predictions in there that if that happens, then this is likely to happen, then if that, then that can happen. And so I spread that. Some of the stuff I'll do off in a service, subscription that I'm using. But more and more, I'm doing that on, especially as I hone it down. So I may kind of arrive at what I think is going to happen and provide the supports and

justification. 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 to kind of break is to to 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 a narrative before I ever get to the manuscript writing, manuscript writing itself. 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 neither book itself is actually related to my day job. This is my nights and weekends stuff, 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. So the way that I use each one, you know, is really Frontier versus the local on my laptop is really quite different. And so, but I do still, you know,

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. 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 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. 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, 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. 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. You'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 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. 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 maybe it changes what laptop you buy next in terms of what you could do

because there may be something that this is fun. 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 Practical AI 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 that there are different platforms different folks are listening to this on or watching on 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. All right, 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.

番組の概要欄(原文)

<p>When Chris Benson wants to know what’s moving in his driveway, he can ask the house. It can tell him when deer are crossing the yard, recognize family members as they move from room to room, and turn down the heat when he asks. Frigate supplies the camera footage, Home Assistant connects the devices, and Chris gave the local AI a personality of its own. Nemotron <em>is</em> the house.</p><p><br>How does a model with a 249 GB full-size release fit on his 128 GB DGX Spark? Chris walks through the math behind the 75.1 GB quantized version of NVIDIA’s Nemotron 3.5 Super VL. You’ll learn what you trade in precision when you store model weights in fewer bits, and how to tell what will fit in your own GPU’s memory before you hit download.</p><p><br>On his everyday laptop, a smaller model sifts through two years of research for the books he's writing: <a href="https://chrisbenson.com/books"><em>The Art of Swarming</em></a> and <a href="https://chrisbenson.com/books"><em>Humans in a Post-Human World</em></a>. It can bring up an old note just as Chris starts following a related idea. He writes the books himself and turns to frontier models when he wants to explore a whole new line of research. Got an older laptop and a folder of notes you keep meaning to revisit? With llama.cpp, that laptop’s CPU may be all you need to try this yourself.</p><p><br></p><p>Featuring: </p><ul><li>Chris Benson – <a href="https://chrisbenson.com/">Website</a>, <a href="https://www.linkedin.com/in/chrisbenson">LinkedIn</a>, <a href="https://bsky.app/profile/chrisbenson.bsky.social">Bluesky</a>, <a href="https://github.com/chrisbenson">GitHub</a>, <a href="https://x.com/chrisbenson">X</a></li></ul><p>Sponsors:</p><ul><li><a href="https://nordlayer.com/ai-scout/">NordLayer AI Scout</a>- provides visibility into AI activity, helps detect sensitive data exposure, and gives organizations control over the MCP servers their AI agents access. Learn more at <a href="https://nordlayer.com/ai-scout/">https://nordlayer.com/ai-scout/practicalai/</a></li><li>Granola: 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.  You can try it totally free—head to <a href="https://www.granola.ai/?via=practicalai&amp;dub_id=tjZ9lvUGbenMyr6k">granola.ai/PRACTICALAI</a>. </li><li>ARCA: Got hundreds of Claude Code, Codex or Cursor sessions sitting on your computer? Arca pays you for the ones you choose to share. Try it: <a href="https://arca.market/?utm_source=practicalai&amp;utm_medium=podcast&amp;utm_campaign=relaunch">https://arca.market/?utm_source=practicalai&amp;utm_medium=podcast&amp;utm_campaign=relaunch</a></li></ul><p>Resources and Events:</p><ul><li>Register for <a href="https://practicalai.fm/webinars">upcoming webinars here</a>!</li><li>Prior <a href="https://www.youtube.com/playlist?list=PLRpRdFmBfdF6boDgAD3nNaLm8Yx4KN2Vt">Webinars from our partner Prediction Guard</a></li></ul><p>Chris’s new book <strong><em>The Art of Swarming</em></strong> will be published soon, written to be the seminal foundational book for the fledgling swarming industry, defining the principles and architecture that enable autonomous agentic UxS swarms with emergent distributed embodied intelligence.  You can find out more at his <a href="https://chrisbenson.com/">website</a>:  <a href="https://chrisbenson.com/">https://chrisbenson.com</a> </p><p><br></p>

出典・この記事について

番組
Practical AI(Daniel Whitenack and Chris Benson)
元の回
AI Street Cred in 4 Bits or Less — How to Talk Quantization at a Holiday Party
配信日
要約作成日
公式サイト
practicalai.show

この要約・解説記事は、元の音声を文字起こしした内容をもとに AI(Claude)が日本語で作成したものです。 固有名詞や数値に誤りを含む場合があるため、正確な内容は元の音声でご確認ください。制作方法について

X でシェアSpotify で聴くApple Podcasts で聴く

関連エピソード