A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。
We have AI at home! Set up your own free personal ChatGPT on your PC with Unsloth and Inkling or Qwen. It’s private, and the whole house can use it.
我们可以在家里使用人工智能了!通过 Unsloth 和 Inkling 或 Qwen,你可以在自己的电脑上搭建免费的个人版 ChatGPT。它不仅私密,而且全家人都能使用。
By Jerry James · Nov 22, 2026
作者:Jerry James · 2026年11月22日
With the launch of open-weight models like Qwen, cloud-based LLM providers seem like they’re more of infrastructure or appliance businesses when it comes to most routine tasks that an AI model can handle.
随着 Qwen 等开放权重模型的发布,对于大多数人工智能模型可以处理的日常任务而言,基于云的大型语言模型(LLM)提供商看起来更像是基础设施或家电企业。
OpenAI and Anthropic have displayed a pattern of dropping model quality in the ‘latest’ version and controlling exactly what you’re allowed to run on their models. Add to this ballooning costs and privacy concerns, and we get a pretty good case for moving away from this ‘convenient’ cloud experience.
OpenAI 和 Anthropic 表现出了一种在“最新”版本中降低模型质量,并严格控制你在其模型上运行内容的模式。再加上不断膨胀的成本和隐私担忧,我们有充分的理由放弃这种“便捷”的云端体验。
That’s basically where I was too. I wanted to offload certain token-heavy research, data collection, or coding tasks to an AI model without staring at usage limits all day. So, as any reasonable human being would do, I decided to set up my own local AI: a Claude and ChatGPT replacement that runs at home on my own hardware.
我基本上也处于同样的情况。我希望将某些消耗大量 Token 的研究、数据收集或编码任务卸载给人工智能模型,而不必整天盯着使用限制。因此,正如任何理智的人会做的那样,我决定搭建自己的本地人工智能:一个可以在家里通过我自己的硬件运行的 Claude 和 ChatGPT 替代品。
Since this was my first attempt, my primary focus was keeping it simple and hosting it on Windows. If you’re a beginner, you can follow along to get one going on your home network too.
由于这是我的第一次尝试,我的主要目标是保持简单,并将其托管在 Windows 上。如果你是初学者,也可以按照步骤在你的家庭网络中搭建一个。
Once you have the hardware sorted, it takes about 10-15 minutes (excluding download times).
一旦你准备好了硬件,大约需要 10 到 15 分钟(不包括下载时间)即可完成。
Install Unsloth Desktop, download a quantized AI model that fits your GPU’s VRAM, set your context size, and turn on LAN access so everyone at home can use it.
安装 Unsloth Desktop,下载一个适合你显卡显存(VRAM)的量化人工智能模型,设置上下文大小,并开启局域网访问,这样家里所有人都可以使用它。
Not much (other than the hardware). Here’s a short list:
除了硬件之外,不需要太多东西。以下是一个简短的清单:
That’s it. No terminal commands, Python environments, or subscriptions required.
就是这样。不需要终端命令、Python 环境或订阅。
It depends on how much VRAM your graphics card has. As a rough guide, 8-12GB of VRAM handles smaller 9B-12B models, while 32GB comfortably runs 27B-35B models with plenty of room for long conversations.
这取决于你的显卡有多少显存。作为一个粗略的指南,8-12GB 的显存可以处理较小的 9B-12B 模型,而 32GB 则可以轻松运行 27B-35B 模型,并为长对话留出充足的空间。
On consumer-grade hardware, we’ll need smaller models. The full-size Qwen model sits at around 56GB and won’t really fit on a consumer graphics card unless you’re running a Mac with unified memory. That’s where quantization comes in.
在消费级硬件上,我们需要更小的模型。完整尺寸的 Qwen 模型大约为 56GB,除非你使用的是配备统一内存的 Mac,否则它无法在消费级显卡上运行。这就是量化发挥作用的地方。
Quantization shrinks a model by compressing weights and moving to a lower precision. You basically trade some accuracy for a model that actually fits on your GPU and runs faster.
量化通过压缩权重并降低精度来缩小模型。你基本上是用一定的准确性换取了一个能够真正放入显卡并运行得更快的模型。
The same photo stored at 8, 4 and 2 bits per pixel. A model’s weights lose detail the same way going from Q8 to Q4 to Q2.
同一张照片以每像素 8、4 和 2 位存储。模型权重从 Q8 到 Q4 再到 Q2 的过程,就像照片失去细节一样。
If you’re wondering whether this tradeoff is worth it, well, it depends. You’ll find that certain types of workloads don’t really care and give similar outputs, while others may be nearly unusable.
如果你想知道这种权衡是否值得,嗯,这取决于具体情况。你会发现某些类型的工作负载并不在意这些,并能给出相似的输出,而其他一些工作负载则可能几乎无法使用。
For this guide, we’ll be going with Qwen3.8-27B with 4-bit quantization on my system with an RTX 5090. Going up a tier is an option thanks to its 32GB of VRAM, but I wanted to allow for a larger context window (how much of the conversation the model can keep in mind at once) rather than cramming in the largest model that fits.
在本指南中,我将在配备 RTX 5090 的系统上使用 4 位量化的 Qwen3.8-27B。得益于 32GB 的显存,升级到更高一级是可行的,但我希望留出更大的上下文窗口(模型一次能记住多少对话内容),而不是硬塞进能容纳的最大模型。
Qwen3.8-27B at each precision with a 128K context, from our VRAM calculator. At 4-bit, the model and the context fit a 32 GB card with room to spare.
根据我们的显存计算器,Qwen3.8-27B 在不同精度下配合 128K 上下文的情况。在 4 位量化下,模型和上下文可以放入 32GB 的显卡中,并留有余地。
If you want to run a model of this caliber with excellent performance, a hilariously overpriced RTX 5090 (remember when $1,999 felt too high?) is unfortunately still not a terrible ‘deal’ these days. The other option is way more expensive enterprise-grade GPUs.
如果你想以出色的性能运行这种级别的模型,价格高得离谱的 RTX 5090(还记得 1999 美元曾被认为太贵的时候吗?)不幸的是,在今天看来仍然不算是一个糟糕的“交易”。另一个选择是价格昂贵得多的企业级显卡。
If you’re on a GPU with less VRAM, you can still get something very usable going right away. The table below gives you a rough idea of where you can start.
如果你的显卡显存较小,你仍然可以立即获得非常可用的方案。下表为你提供了一个大致的入门参考。
Models marked MoE (mixture of experts) only run a few billion of their parameters for each token. They keep a decent speed on a smaller card with the rest held in system RAM, which is why a 35B model sits in the 16 GB row. On an RTX 5060 Ti 16GB, our calculator puts Qwen3.6-35B at about 47 tokens per second this way.
标记为 MoE(混合专家模型)的模型在处理每个 Token 时仅运行其数十亿参数中的一部分。它们在较小的显卡上保持了不错的速度,其余部分保存在系统内存中,这就是为什么 35B 模型会出现在 16GB 的行中。在 RTX 5060 Ti 16GB 上,我们的计算器显示 Qwen3.6-35B 以这种方式运行速度约为每秒 47 个 Token。
Feel free to experiment with several models until you find one that fits your needs. You can also use GPUPartner’s VRAM Calculator to get an estimate.
请随意尝试多种模型,直到找到适合你需求的那一个。你也可以使用 GPUPartner 的显存计算器来获取估算值。
Inkling 2 Mini, yes. Inkling 2 Small, no.
Inkling 2 Mini 可以,Inkling 2 Small 不行。
Inkling 2 Mini is the newest model in this size class. Thinking Machines Lab released it on November 17, 2026: 26.4B parameters, Apache 2.0, vision support and a 1M-token context. Unsloth’s recommended file, UD-Q4_K_XL, is 17.6 GB. That is within 0.1 GB of the Qwen3.8-27B file in this guide, so it sits on a 32GB card the same way and leaves about 14GB for context.
Inkling 2 Mini 是该尺寸级别中最新的模型。Thinking Machines Lab 于 2026 年 11 月 17 日发布了它:拥有 264 亿参数,采用 Apache 2.0 协议,支持视觉功能,并具备 100 万 Token 的上下文。Unsloth 推荐的文件 UD-Q4_K_XL 大小为 17.6 GB。这与本指南中的 Qwen3.8-27B 文件大小相差不到 0.1 GB,因此它在 32GB 显卡上的运行方式相同,并留出约 14GB 的空间用于上下文。
Nothing else in this guide changes. Update Unsloth Desktop first, because Inkling 2 needs a recent build, then search for Inkling 2 Mini in the same drop-down in Step 2.
本指南中的其他内容均无变化。请先更新 Unsloth Desktop,因为 Inkling 2 需要较新的版本,然后在第 2 步的同一个下拉菜单中搜索 Inkling 2 Mini。
Those figures are Unsloth’s. They count RAM and VRAM together and cover the model alone, so a long context needs more. Inkling 2 Mini is a mixture-of-experts model with 5.4B parameters active, so the 4-bit file also runs on a 16 GB card with the remainder in system RAM, a little slower.
这些数据来自 Unsloth。它们将内存和显存加在一起计算,且仅涵盖模型本身,因此长上下文需要更多空间。Inkling 2 Mini 是一个混合专家模型,激活参数为 54 亿,因此 4 位文件也可以在 16GB 显卡上运行,其余部分保存在系统内存中,速度会稍慢一些。
Inkling 2 Small is small in name only. It is a 594B model, and the smallest file Unsloth publishes is 171.7 GB. That is unified-memory territory: a 256GB Mac Studio or a DGX Station, not a graphics card.
Inkling 2 Small 只是名字里带“小”。它是一个 5940 亿参数的模型,Unsloth 发布的最小文件也有 171.7 GB。这是统一内存的领域:需要 256GB 的 Mac Studio 或 DGX 工作站,而不是普通显卡。
Yes. You’ll find good alternatives in Apple’s Mac lineup thanks to its unified memory. Macs are pretty good at running larger models, even if they don’t offer t
是的。得益于统一内存,你会在苹果的 Mac 产品线中找到很好的替代方案。Mac 在运行大型模型方面表现相当不错,即使它们不提供 t