Latest / AI Fire Daily / #222 Neil: Run AI Models on Your Computer An Easy Guide For Beginners
Transcript
- 0:00Are you paying every month for AI access tied
- 0:04to those big cloud services? And maybe worrying
- 0:07where your private thoughts or your company -sensitive
- 0:10docs are actually going, we kind of assume powerful
- 0:13AI needs, like a $20 ,000 computer. But that
- 0:17whole idea, it's pretty much outdated now. Welcome
- 0:19to the Deep Dive. Our mission today is to take
- 0:21this stack of research we've got here, focusing
- 0:23on tools like Alama and LM Studio, and turn it
- 0:27into something really clear. actionable. We want
- 0:29to make local private AI something you can do
- 0:32right now on a laptop you probably already have.
- 0:35We'll cover the privacy wins, the cost savings,
- 0:38and then the how breaking down things like quantization
- 0:41and picking the right AI model for your machine.
- 0:44Right. This is really all about taking back control
- 0:47over your own compute. These terms like parameters
- 0:50and quantization, they sound complicated. Have
- 0:52you been intimidating? We're going to pull back
- 0:54the curtain on those. We're going to show you
- 0:55exactly how you can get powerful private AI running
- 0:58today using the gear you've already got sitting
- 1:00right there. OK. So let's unpack that first part.
- 1:03The motivation. Why bother downloading software,
- 1:06maybe messing with the terminal, when you can
- 1:08just open a chat window in your browser? It seems
- 1:10easier. The sources we looked at lay out six
- 1:13pretty compelling reasons. Yeah. And the first
- 1:16one hits you right away. Cost. Yeah. Once you
- 1:19download that initial model file, that's it.
- 1:21It costs nothing more to run. forever. No monthly
- 1:24fees, no paying per query, none of that. The
- 1:27only real cost is like a tiny bit of electricity.
- 1:31And tied right into that is getting away from
- 1:33limits, right? Every commercial service puts
- 1:35caps on you, especially if you use it a lot.
- 1:37Exactly. With these local models, you could run
- 1:39a thousand queries in an hour if you wanted.
- 1:42The AI itself never tells you, nope, you've hit
- 1:45your limit for today. But privacy, you mentioned
- 1:47control. That seems like the really big one for
- 1:49a lot of people. Oh, it's huge. Probably the
- 1:52biggest driver. See, when you chat online, your
- 1:55conversation, your prompts, your data, it all
- 1:58goes to someone else's server, who knows where,
- 2:01running it locally. Everything stays right there
- 2:03on your machine, 100%. Your secret company plans,
- 2:06your personal journal ideas, whatever it is,
- 2:09it doesn't leave. that peace of mind. You can't
- 2:11really put a price on it. And then there's just
- 2:13the practical side. You get actual offline capability.
- 2:16I mean, you could be on a plane, no Wi -Fi, or
- 2:18maybe somewhere remote. The AI just works anywhere.
- 2:22Yeah, that's super useful. And you also get version
- 2:24control. This is kind of neat. If you find a
- 2:26model version that just works for you, gets your
- 2:28style, you can keep that exact version indefinitely.
- 2:32You're not forced into updates that might suddenly
- 2:34change how the AI responds, which definitely
- 2:37happens with the big online ones. Right. And
- 2:39the last one is customization. This sounds more
- 2:41advanced, but really powerful. It is. You can
- 2:43actually fine tune these models. Yeah. That means
- 2:46you could say, teach it all the specific jargon
- 2:49for your industry, or even train it to mimic
- 2:51your personal writing style. That kind of deep,
- 2:54personalized training. Just impossible with the
- 2:57closed off commercial models. OK, so that covers
- 2:59the why. But there's always that nagging question.
- 3:02Are these local models actually any good? I remember
- 3:06trying some early ones, and they were. Well.
- 3:08Not great. Yeah, they used to be pretty basic.
- 3:11Kind of dumb, honestly. Is that still the case
- 3:13or is that just a myth now? That myth is completely
- 3:16busted. Seriously, the open source world is moving
- 3:18incredibly fast. We're seeing models released
- 3:21almost daily that often match or even beat older
- 3:23systems like, say, GPT 3 .5. And the crucial
- 3:27part is they run fine on regular laptops, MacBooks,
- 3:30Windows machines. You don't need some monster
- 3:32gaming rig anymore. OK, so if they're powerful
- 3:35now and free and limitless. What's the catch?
- 3:39What's the main trade -off compared to just using
- 3:41a cloud service? The trade -off really comes
- 3:44down to managing your own computer's memory.
- 3:46That's the main constraint. Right. Memory. That
- 3:48brings us perfectly into the next bit. We need
- 3:50to understand what an AI model is file -wise
- 3:53to get why memory matters so much. Okay, yeah.
- 3:56So an AI model, at its core, it's just a file.
- 3:59A really, really big file. Think of it like stacking
- 4:02billions of tiny Lego blocks made of data. This
- 4:06file contains billions, literally billions of
- 4:08numbers. We call them parameters or sometimes
- 4:10weights. These numbers represent everything the
- 4:13AI will learn during its training. All the patterns,
- 4:15the connections. So when you download an eight
- 4:18billion parameter model, you're grabbing a file
- 4:20with eight billion of these numbers. It's chunky.
- 4:22Billions of numbers, okay. And you need something
- 4:24special to actually read and, well, run that
- 4:27giant file. That's where Olama comes in. Exactly.
- 4:30If the model file is like that super -dense complex
- 4:33sheet music, Alama is the specialized music player
- 4:37designed just for AI scores. It does three main
- 4:40jobs really well. First, it's a downloader. It
- 4:42knows how to handle fetching these enormous multi
- 4:45-gigabyte files reliably. Second, it's the engine.
- 4:48It takes those billions of parameters and loads
- 4:50them into your computer's active memory so the
- 4:52AI can actually think. And third, and this is
- 4:55kind of cool for flexibility, it acts as an interface.
- 4:58It quietly starts up a sort of hidden software
- 5:00door on your computer. Technically, it's an API
- 5:03server running on local host. This door lets
- 5:05other applications on your machine talk directly
- 5:07to the AI model that a llama is running. Okay,
- 5:09that interface part sounds important for later,
- 5:11but you mentioned memory. And there's a key difference
- 5:14depending on the type of computer someone has,
- 5:15right? Mac versus Windows. Yes, absolutely critical
- 5:18distinction here. It changes how much memory
- 5:21is actually available for the AI. So if you're
- 5:24on a Mac with an Apple Silicon chip, M1, M2,
- 5:27M3, whatever you have, what's called unified
- 5:28memory, this is great for AI. It means the main
- 5:32processor, CPU, and the graphics processor, GPU,
- 5:35share the same pool of RAM. So if your MacBook
- 5:37has, say, 16 gigabytes of RAM total, pretty much
- 5:40all 16 gigs can potentially be used by the AI
- 5:42model. It's simpler. OK. If you're on a typical
- 5:45Windows PC, especially one with a dedicated Nvidia
- 5:47graphics card, things are different. You usually
- 5:49have your main system RAM, maybe 16 or 32 gigs.
- 5:53And then crucially, the graphics card has its
- 5:55own separate memory called VRAM or VideORAM.
- 5:58For AI tasks, that VRAM on the graphics card
- 6:00is the golden ticket. It's much faster for the
- 6:02parallel processing AI needs. So ideally, the
- 6:05entire AI model needs to fit into that graphics
- 6:07card's VRAM. That's often the limiting factor
- 6:10on PCs. That makes sense. The version control
- 6:12aspect you mentioned earlier really resonates,
- 6:14too. I have to admit, I still wrestle sometimes
- 6:16with prompt drift when you're talking to an AI.
- 6:20And halfway through, it just seems to forget
- 6:21what you asked it to do initially. It's frustrating.
- 6:24So I'm genuinely grateful these local models
- 6:26let you just stop and restart with a clean, predictable
- 6:29version whenever you need that consistency back.
- 6:31So OK, let's make it concrete. Someone wants
- 6:33to try this. What's the simplest way to get started?
- 6:36Easiest path. First, Download Aulama from their
- 6:39website. Install it like any other app. Then
- 6:42you open up your terminal. Yeah, that black command
- 6:44line window. Don't be scared. And you just type
- 6:47one single command. Aulama run Aulama 3 .8b.
- 6:51Hit enter. Aulama run Aulama 3 .8b. And what
- 6:54does that do? That tells Aulama. Go find the
- 6:57model named Aulama 3 with 8 billion parameters.
- 6:59Download it if you don't have it and then run
- 7:01it. you'll start downloading. That specific model,
- 7:04Llama 3 .8b, is a fantastic starting point. Very
- 7:06capable, but the file size is manageable only
- 7:09about 4 .7 gigabytes. Most modern machines can
- 7:12handle that download and have enough memory to
- 7:13run it. OK, 4 .7 gigs is manageable, but these
- 7:17model files are still pretty big. If you start
- 7:19downloading a few, you could eat up, I don't
- 7:21know, tens, maybe hundreds of gigs pretty fast.
- 7:24How do you, like, keep track of what you've installed
- 7:26and clean things up? Good question. Allama has
- 7:28simple commands for that too. You can type AllamaList
- 7:31to see all the models you've downloaded and their
- 7:33sizes. And if you want to remove one to free
- 7:35up space, just use AllamaARM followed by the
- 7:38model name, like AllamaARM Allama3 .8b. Easy
- 7:42to manage. OK, easy enough. AllamaList and AllamaARM
- 7:46got it. But hang on. You said the 8 billion parameter
- 7:48model is 4 .7 gigabytes. If a parameter is a
- 7:52number and there are 8 billion of them, shouldn't
- 7:54the file be much, much bigger? How does it work?
- 7:57That brings us to the real magic trick of running
- 8:00modern AI locally. It's a technique called quantization.
- 8:03This is the absolute key that lets these huge
- 8:05powerful models shrink down enough to fit onto
- 8:08regular computers. Quantization. Okay, what does
- 8:10it do? Basically, it takes all those billions
- 8:13of very precise numbers inside the model. 13
- 8:18.4159265, and it makes them less precise. It
- 8:20might round them down to something simpler. It's
- 8:22just 13 .4. Think of it like image compression.
- 8:25You know how you can take a massive, super detailed
- 8:27raw photo file, maybe 100 megabytes, and save
- 8:30it as a JPEG that's only like five megabytes?
- 8:33Quantization is doing something similar. But
- 8:35for the AI's knowledge, it's a kind of lossy
- 8:38compression, but highly optimized for these neural
- 8:40networks. Lossy compression. Doesn't that mean
- 8:42you're losing information? Is the AI getting
- 8:45dumber when you quantize it? That's the amazing
- 8:47part. You do lose a tiny bit of precision, yes.
- 8:50But the trade -off is incredible. Quantized models
- 8:52can shrink by 50, 60, even 70 % in file size,
- 8:56but they typically only lose maybe 10 to 20 %
- 8:58of their raw performance score on benchmarks,
- 9:00sometimes even less. Wow. It's a fantastic deal.
- 9:02You get a model that's drastically smaller and
- 9:04needs way less memory, but it's still incredibly
- 9:06smart. That's why that 8 billion parameter Lama
- 9:093 model ends up being only 4 .7 gigs instead
- 9:12of like 16 or 30 gigs. Whoa. OK, hold on. If
- 9:16you can shrink models that much with only a small
- 9:18performance hit. You could potentially take something
- 9:21massive, like a 70 billion parameter model, quantize
- 9:26it, and maybe actually run it on a high -end
- 9:28laptop. Exactly. That's happening right now.
- 9:30People are running quantized 70B models on Macs
- 9:33with enough unified memory or PCs with beefy
- 9:36graphics cards. It completely changes the game,
- 9:39democratizing access to really powerful AI. It's
- 9:42not just for giant data centers anymore. Is that
- 9:4410 -20 % performance loss ever really noticeable
- 9:47though? Like if you're asking it to do something
- 9:48really complex or creative? Honestly, for most
- 9:51everyday tasks, writing emails, summarizing articles,
- 9:55brainstorming ideas, even coding, help you likely
- 9:58won't notice the difference between a quantized
- 9:59model and the full precision original. Maybe
- 10:01if you were doing highly specialized scientific
- 10:03modeling or something requiring extreme numerical
- 10:06accuracy, you might stick with a full -size one.
- 10:08But for 95 % of us, the efficiency gained from
- 10:12chronization is absolutely worth that tiny dip
- 10:14in performance. OK, that makes sense. So assuming
- 10:17we're using these standard quantized models that
- 10:19Alama usually downloads by default, can we give
- 10:21people some simple guidelines for picking a model
- 10:24based on their computer's memory? Yeah, definitely.
- 10:26Simple rules of thumb work pretty well here.
- 10:29If your machine has about 8 gigabytes of available
- 10:31RAM or VRAM, if you're on that NVIDIA PC, you
- 10:34should probably stick to the smaller models,
- 10:36like 7 billion or 8 billion parameters. So that
- 10:39Llama 3 .8b we keep mentioning is perfect. Got
- 10:41it. Eight gigs? Stick to 7 or 8b. What about
- 10:44more memory? If you've got 16 gigabytes of RAM
- 10:47or VRAM, you can comfortably run larger models
- 10:49like 13 billion or even up to around 16 billion
- 10:52parameters. For coders, a great one in that range
- 10:54is DeepSeaCoder -V2 .16b. It's specifically trained
- 10:59for programming tasks and it's really impressive.
- 11:02Nice. DeepSeq Coder dashed v2 .16b for 16 gigs.
- 11:07And for the power users, people with 32 gigs
- 11:09or more. Ah, now you're talking. With 32 gigs
- 11:12or more, you can start running the real heavy
- 11:14hitters. You can handle 34 billion parameter
- 11:17models, or even the big 70 billion ones like
- 11:19Lama 3 .70b. And another interesting one to try,
- 11:23maybe in the smaller size like 7b, is Wizard
- 11:26LM 2 .7b. It's known for being less, uh, censored
- 11:30or aligned. than some others. It gives more direct,
- 11:33sometimes unfiltered answers, which can be useful
- 11:36depending on what you're doing. OK. Lots of options.
- 11:39But running commands in the terminal is cool
- 11:40for setup, maybe for scripting, but for just
- 11:43chatting with the AI day to day. Most people
- 11:45probably want something friendlier, a nice interface.
- 11:47How do we get that? Right. You want a proper
- 11:49chat window, history settings, all that. That's
- 11:52where tools like LM Studio come in. or other
- 11:54similar apps, there are a few now. Ellen Studio
- 11:57basically provides that polished graphical user
- 11:59interface, a GUI, that sits on top of your local
- 12:02models. It's a dedicated chat program. It's really
- 12:05good because it often shows you helpful info,
- 12:07like how much CPU or RAM your AI is using while
- 12:09it's thinking, and makes it super easy to just
- 12:11switch between the different models you've downloaded
- 12:13with a click. Okay, Ellen Studio sounds like
- 12:15the answer, but if we already downloaded our
- 12:18models using Olama and Olama is running the engine,
- 12:21We don't want LM Studio to download everything
- 12:24all over again, right? That wastes space. Exactly.
- 12:27You want to avoid doubling up. The smartest way
- 12:29is to install LM Studio, but then configure it
- 12:32to talk to the Elama server that's already running
- 12:34on your machine. Remember that hidden door Elama
- 12:36opens, LM Studio can just connect directly to
- 12:39that. Most of these GUI tools have a setting
- 12:43somewhere to point it in an existing Alama instance.
- 12:46You tell LM Studio, hey, don't download models
- 12:49yourself, just talk to Alama at localhost .11434.
- 12:53Then boom, all the models you got with Alama
- 12:55just appear in LM Studio's chat interface, ready
- 12:57to use. No redundant downloads. Perfect. So connect
- 13:00LM Studio to the running Alama. That's the efficient
- 13:03path. Now, once you're set up with a nice interface,
- 13:05the quality of what you get out still depends
- 13:07heavily on what you put in, right? Good prompting
- 13:09is still key. Oh, absolutely. Garbage in, garbage
- 13:11out still applies, even with powerful local models.
- 13:15The sources we looked at really hammered this
- 13:17point. You need detailed prompts. They suggest
- 13:20focusing on defining five key things for the
- 13:22AI. It's role, the specific task you want done,
- 13:26the overall goal, the reason why, and the desired
- 13:29tone. Role, task, goal, reason, tone. OK. If
- 13:33you just say, write an email, you'll get something
- 13:35generic. But if you structure it like, OK, act
- 13:37as a professional employee, that's the role.
- 13:39Your task is to write an email draft to my manager,
- 13:42whose name is Sarah. The goal is to politely
- 13:44request a two -day extension on the quarterly
- 13:46report. The reason is that the final sales data
- 13:49only arrived this morning. Please maintain a
- 13:51polite but confident tone. Much more specific.
- 13:54Way more specific. And you'll get a much, much
- 13:56better, more tailored result almost every time.
- 13:58That level of detail really guides the AI effectively.
- 14:02OK, good prompting advice. Now, what about troubleshooting?
- 14:05People trying this for the first time might run
- 14:07into things that seem weird. Let's normalize
- 14:10a couple of common experiences. First one, your
- 14:13computer might suddenly sound like a jet engine
- 14:15and feel pretty warm. Yeah, expect that. Running
- 14:18these AI models, especially the bigger ones,
- 14:20is computationally intensive. It uses a lot of
- 14:23processing power, often on the GPU. So your computer's
- 14:27fans are going to spin up fast. You'll hear them.
- 14:30The machine might get noticeably warm. That's
- 14:33just the sign it's doing the heavy lifting required.
- 14:35It's totally normal. Don't panic. OK. Loud fans
- 14:37and heat are normal. Good to know. Second thing,
- 14:40the very first time you ask a newly loaded model
- 14:43a question, it might seem really slow to answer,
- 14:45like maybe 20 or 30 seconds of silence. Mm -hmm.
- 14:48That also happens, and it's expected. That first
- 14:51query involves a llama loading all those billions
- 14:53of parameters from your storage drive into the
- 14:56active RAM or VRAM. That takes time. Think of
- 14:59it as the AI waking up or warming up. Once it's
- 15:01loaded into memory, though, Any subsequent questions
- 15:03you ask in that same session should get much,
- 15:06much faster responses. Usually just a few seconds.
- 15:09Right. So be patient with that first prompt.
- 15:11Exactly. And just a reminder about storage, keep
- 15:13an eye on those file sizes with a Llama list.
- 15:17Clean out models you're not actively using with
- 15:19a Llama ROM. And really, the final piece of advice
- 15:21is just experiment. Try different models. See
- 15:25how Llama 3 feels for general writing. Then switch
- 15:28to DeepSeq for some coding. Maybe try Wizard
- 15:30LN2. if you want less filtered responses. Find
- 15:34the personality and skills that best fit what
- 15:36you need to do. That seems like a great place
- 15:38to land. Yeah. If we just zoom out for a second,
- 15:40think about what we've covered. The core achievement
- 15:43here is pretty profound, actually. You, the listener,
- 15:46now have the practical knowledge to harness really
- 15:49powerful AI tools completely for free, privately,
- 15:53on your own machine, offline, if you need to
- 15:55be, with total control over which version you
- 15:57use and absolutely no usage limits imposed by
- 16:00anyone else. You've essentially bypassed the
- 16:02dependence on those big centralized cloud providers
- 16:04for this capability. It really is a feeling of
- 16:07taking back control, self -sovereignty over your
- 16:10computing in a way. The future of AI isn't just
- 16:13happening out there in the cloud. It's shifting
- 16:15rapidly onto the hardware you own. So don't just
- 16:18listen to us talk about it. Take the advice from
- 16:21the source material. Go download Elama. Open
- 16:24that terminal, type Elama run Elama 3 .8b, and
- 16:28start exploring today. And maybe a final thought
- 16:31to chew on. We talked about quantization, right?
- 16:34How losing a tiny bit of numerical precision
- 16:36gives us these massive gains in efficiency, letting
- 16:38big models run locally. It makes you wonder,
- 16:41what happens next? What will the next generation
- 16:43of clever lossy compression techniques for AI
- 16:46models look like? Could we reach a point where
- 16:48we can not just run, but maybe even train surprisingly
- 16:50large models entirely on consumer -grade hardware?
- 16:54That's something interesting to consider as you
- 16:55start your journey.