Local models · PC and Mac本機模型 · PC 與 Mac
The best local model is the largest one that fits and still answers.最好的本機模型,是放得進你的電腦、又仍然答得了的最大那個。
Coding, office agents, research, and creative work do not want the same weights. A browser cannot see your GPU, so the presets below cover the machines people actually own. The form is for the machine you have. The setup is the install, and the file table is what to download.寫程式、辦公室智能代理、研究和創作,適合的模型不一樣。瀏覽器看不到你的顯示卡,所以下面先列人們真正在用的電腦。表單是給你填自己這部電腦。安裝是怎麼裝,檔案表是該下載什麼。
If you do not want to type specs如果不想填規格
01
Each card is a full recommendation from the same rules as the form. "Use this config" copies it into the form so you can change one number.每張卡片用跟下面表單相同的規則,給出完整建議。按「用這組設定」,會把這組數字帶進表單,方便你只改一項。
Install it once先裝好一次
03
Do the small model before the impressive one. A 7B chat model proves the install. A name such as Qwen3.6 on this page is a product line and a size, not a fixed download name. The name on Ollama and Hugging Face changes. If the publisher's page has a newer download of the same size, use that. The commands below use Qwen2.5 7B because that file is a real download today, not a filename we guessed.先跑小的,再試大的。一個 7B 聊天模型就足以確認裝好了。這一頁寫的 Qwen3.6 這類名稱,是系列和大小,不是固定的下載名稱。Ollama 和 Hugging Face 上的名稱會改。官方頁面如果有同一大小的較新版本,用較新的。下面的指令用 Qwen2.5 7B,因為那個檔案現在真的下載得到,不是猜的檔名。
Mac
On Apple Silicon with macOS 15 or later, run an agent in oMLX. It is the menu-bar app, on port 8000, and it keeps the conversation cache in memory and on the SSD, so the next turn of a long chat does not rebuild the whole prompt. Install Ollama when you want the one-line commands below. Ollama now has its own MLX engine too. Use LM Studio if you want a window and no menu bar. Apple Silicon uses unified memory. A 16 GB Mac can run the 7B file. A 24 GB Mac can run a 14B file. The form on this page already subtracts about 8 GB for the system before it picks a line.Apple Silicon,而且是 macOS 15 或更新,智能代理用 oMLX 跑。它在選單列,埠 8000,對話快取留在記憶體和 SSD,長對話的下一輪不用把整段前文重算一次。想用下面的一行指令,就裝 Ollama。Ollama 現在自己也有 MLX 引擎。想要一個視窗、不用選單列,就用 LM Studio。Apple Silicon 用的是統一記憶體。16 GB 的 Mac 跑得動 7B。24 GB 跑得動 14B。上面的表單選系列之前,已經先扣大約 8 GB 給系統。
For pictures, install Draw Things from the Mac App Store, or ComfyUI. Draw Things can download Stable Diffusion XL inside the app.做圖請裝 Mac App Store 裡的 Draw Things,或 ComfyUI。Draw Things 可以在應用裡直接下載 Stable Diffusion XL。
Windows
Install Ollama or LM Studio from the same pages. If you have an NVIDIA card, install the current driver first. The model spends video memory, not only the RAM number. In Task Manager, open Performance, then GPU, and read Dedicated GPU memory. Type that number into the form above. Two cards without a fast link do not add together.同樣從上面的頁面安裝 Ollama 或 LM Studio。有 NVIDIA 顯示卡的話,先裝目前的驅動。模型花的是顯示記憶體,不是只有記憶體那個數字。開啟工作管理員、效能、GPU,讀「專用 GPU 記憶體」,把那個數字填進上面的表單。兩張卡如果中間沒有高速連線,不能把容量相加。
ComfyUI's Windows package is on the releases page. Put image files in the folders named in the table below.ComfyUI 的 Windows 套件在發布頁。圖像檔放到下面表格寫的資料夾。
Linux
The install command is on Ollama's download page. Read it there, then run it. nvidia-smi shows video memory. A shared office GPU box is the case for vLLM. A laptop does not need it.安裝指令在 Ollama 的下載頁。先讀那一頁,再執行。nvidia-smi 會顯示顯示記憶體。一整間辦公室共用一台 GPU 主機時,再看 vLLM。手提電腦不需要它。
The first hour第一個小時
- On an Apple Silicon Mac with macOS 15 or later, install oMLX from its publisher and point the agent at it. Also install Ollama if you want the commands below. On any other computer, install Ollama or LM Studio from the publisher. Do not install a model manager from a random download site.Apple Silicon 的 Mac,而且是 macOS 15 或更新,從官方安裝 oMLX,智能代理指向它。想用下面的指令,再裝 Ollama。其他電腦就從官方安裝 Ollama 或 LM Studio。不要從來路不明的下載站裝模型管理器。
- In a terminal, or PowerShell on Windows, pull one small model and talk to it:在終端機,或 Windows 的 PowerShell,先拉一個小模型並跟它說話:
ollama pull qwen2.5:7b
ollama run qwen2.5:7b
ollama list
- Leave that chat with
/bye. Other apps talk to http://127.0.0.1:11434/v1. Any non-empty API key satisfies them. Check that the server is up:輸入 /bye 離開對話。其他應用程式連到 http://127.0.0.1:11434/v1。API key 只要不是空白就行。確認伺服器有開着:
curl http://127.0.0.1:11434/api/tags
- On Apple Silicon, point the agent at oMLX,
http://127.0.0.1:8000/v1. If you are on Ollama instead, point Continue, Cline, or Aider at http://127.0.0.1:11434/v1. The model name for the command above is qwen2.5:7b. LM Studio's own server uses another port, shown in the app. Do not assume the three are the same port.Apple Silicon 上,智能代理指向 oMLX,http://127.0.0.1:8000/v1。如果你用的是 Ollama,就把 Continue、Cline 或 Aider 指向 http://127.0.0.1:11434/v1。上面那行指令的模型名稱是 qwen2.5:7b。LM Studio 自己的伺服器用另一個埠,以應用程式裡顯示的為準。三個不要當成同一個埠。
- Only then download a larger file from the table. Leave a couple of gigabytes free beyond the file size. The context cache is what fills the rest.這時才從表格下載更大的檔案。檔案本身之外,再留兩三 GB。剩下的空間會被對話快取用掉。
Weights are a supply chain. Prefer ollama pull from the official app, or a GGUF from the publisher's Hugging Face repo. Compare the checksum on that page. Read the license before you use the output at work. Llama files are gated: you accept Meta's license on Hugging Face. FLUX.1-dev is non-commercial. FLUX.1-schnell is Apache 2.0. SDXL is OpenRAIL++. Qwen2.5 Instruct is Apache 2.0. The card overrides this sentence if they differ.權重檔案要看來源。優先用官方應用程式的 ollama pull,或官方 Hugging Face 頁面裡的 GGUF。對一下該頁的核對碼。拿到工作裡用之前,先讀授權。Llama 的檔案要先在 Hugging Face 接受 Meta 的授權。FLUX.1-dev 不可商用。FLUX.1-schnell 是 Apache 2.0。SDXL 是 OpenRAIL++。Qwen2.5 Instruct 是 Apache 2.0。如果模型的說明頁寫得不一樣,以說明頁為準。
Files worth downloading值得下載的檔案
04
Sizes are Q4 chat files, or the file size the publisher prints for images. "About" means the file page wins if your download screen disagrees. Before you write an install script, search Ollama's library and Qwen's Hugging Face page for a newer download of the same size.聊天模型的大小是 Q4 檔案,圖像則照官方標的檔案大小。「大約」的意思是:下載畫面如果不同,以檔案那一頁為準。寫安裝指令之前,先到 Ollama 的模型庫和 Qwen 的 Hugging Face,找同一大小裡較新的名稱。
| Job工作 |
File檔案 |
Rough size大約大小 |
Machine機器 |
Download下載 |
| Everyday chat, notes, short drafts日常聊天、筆記、短稿 |
Qwen2.5 7B Instruct, Q4 |
about 5 GB約 5 GB |
16 GB RAM16 GB 記憶體 |
Ollama · GGUF |
| Better chat and light office work更好的聊天與輕量文書 |
Qwen2.5 14B Instruct, Q4 |
about 9 GB約 9 GB |
24 GB RAM, or 12 GB VRAM24 GB 記憶體,或 12 GB 顯示記憶體 |
Ollama · GGUF |
| Coding on the machine在這台機器上寫程式 |
Qwen2.5-Coder 14B, or 32B Q4 |
about 9 GB, or about 20 GB約 9 GB,或約 20 GB |
14B at 24 GB RAM. 32B wants 32 GB RAM or a 24 GB GPU14B 用 24 GB 記憶體。32B 要 32 GB 記憶體或 24 GB 顯示卡 |
Ollama · 14B · 32B |
| Longer writing and research較長的寫作與研究 |
Llama 3.3 70B, or Qwen2.5 72B, Q4 |
about 40 GB約 40 GB |
64 GB unified memory, or 48 GB VRAM64 GB 統一記憶體,或 48 GB 顯示記憶體 |
Llama on Ollama · Llama card · Qwen 72B |
| Search inside your own files搜尋你自己的檔案 |
nomic-embed-text, or bge-m3nomic-embed-text 或 bge-m3 |
under 1 GB, or about 1 GB不到 1 GB,或約 1 GB |
Any machine that already runs chat已經跑得動聊天的機器 |
nomic · bge-m3 |
| Local stills, first file本機圖片,第一個檔案 |
SDXL base 1.0 |
about 6.9 GB約 6.9 GB |
Comfortable around 12 GB of VRAM. 8 GB can draft a smaller picture. A 16 GB Mac can try it.大約 12 GB 顯示記憶體比較舒服。8 GB 可以畫小一點的草稿。16 GB 的 Mac 可以試。 |
base · refiner · turbo |
| Local stills, larger GPU本機圖片,較大的顯示卡 |
FLUX.1-schnell, or FLUX.1-dev fp8FLUX.1-schnell 或 FLUX.1-dev fp8 |
read the file page; fp8 is the smaller one大小以檔案頁為準;fp8 是較小的那個 |
about 24 GB VRAM, or a 32 GB Mac大約 24 GB 顯示記憶體,或 32 GB 的 Mac |
schnell · dev · fp8 |
| Short video drafts短片草稿 |
Wan2.1 T2V 1.3B, or LTX-Video |
see the model card見模型卡 |
24 GB for a draft. Finished spots stay in the cloud24 GB 只夠做草稿。要交出去的版本仍用雲端 |
Wan 1.3B · Wan-AI · LTX-Video |
Where the image files go圖像檔要放哪
Stable Diffusion XL is one file. Put sd_xl_base_1.0.safetensors in ComfyUI/models/checkpoints/. The refiner is optional and goes in the same folder.Stable Diffusion XL 是單檔。把 sd_xl_base_1.0.safetensors 放到 ComfyUI/models/checkpoints/。Refiner 可有可無,放同一個資料夾。
FLUX can be one fp8 checkpoint in models/checkpoints/, which is the easier start. The split layout is flux1-dev.safetensors in models/unet/, t5xxl and clip_l in models/clip/, and ae.safetensors in models/vae/. The picture of that graph is the ComfyUI FLUX example. Text encoders are here.FLUX 可以是 models/checkpoints/ 裡的一個 fp8 檢查點,這樣最好入手。拆開的放法是:flux1-dev.safetensors 放 models/unet/,t5xxl 與 clip_l 放 models/clip/,ae.safetensors 放 models/vae/。那個節點圖見 ComfyUI 的 FLUX 例子。文字編碼器在這裡。
Pull commands for the chat files, after Ollama is running:Ollama 跑起來之後,聊天檔可以這樣拉:
ollama pull qwen2.5:7b
ollama pull qwen2.5:14b
ollama pull qwen2.5-coder:14b
ollama pull qwen2.5-coder:32b
ollama pull llama3.3
Deployment methods安裝方式
05
| Method方式 |
PC | Mac |
Use it for適合 |
Skip it when不用的時候 |
| Ollama | Yes是 | Yes是 |
The one-command start, on port 11434. On Apple Silicon, a long agent chat belongs on oMLX.一行指令就能開始,API 在埠 11434。Apple Silicon 上的長對話智能代理,改用 oMLX。 |
You need many simultaneous users. Use vLLM on a Linux GPU server instead.很多人要同時用的話,改在 Linux 的 GPU 伺服器上用 vLLM。 |
| LM Studio | Yes是 | Yes是 |
A window, a model browser, and a local server, with no terminal required.一個視窗、模型瀏覽器與本機伺服器,不必開終端機。 |
The machine is a headless server.機器是沒有畫面的伺服器。 |
| llama.cpp | Yes是 | Yes是 |
Maximum control of quants, GPU layers, and CPU offload.想自己決定量化、多少層放顯示卡、多少層放處理器時用。 |
You wanted a button. Start in LM Studio, which uses the same family of code.你只想按一個按鈕就開始的話,先用 LM Studio。它用的是同一套程式。 |
| MLX | No否 | Yes是 |
The highest tokens per second on Apple Silicon, once you are past the first afternoon.過了頭一個下午之後,這是 Apple Silicon 上每秒 token 最高的做法。 |
You are on Windows or NVIDIA. MLX will not help.你用 Windows 或 NVIDIA 的話,MLX 用不上。 |
| oMLX | No否 | Yes是 |
The Apple Silicon choice for an agent or a long chat. Menu-bar app, port 8000. The cache stays in memory and on the SSD, so the next turn does not rebuild the prompt. The card.Apple Silicon 上跑智能代理或長對話,用這個。選單列上的應用程式,埠 8000。快取留在記憶體和 SSD,下一輪不用重算前文。說明。 |
Not an Apple Silicon Mac on macOS 15 or later. The one command used on the rest of this page is still Ollama.不是裝了 macOS 15 或更新的 Apple Silicon Mac。這一頁其餘步驟用的那一行指令,仍然是 Ollama。 |
| vLLM or SGLang | Linux + NVIDIA | No否 |
Serving an office or a lab from one GPU box.用一台 GPU 主機服務一間辦公室或實驗室。 |
You have a laptop. The overhead is not worth it.你只有手提電腦的話,不值得多搞一套。 |
| Open WebUI | Yes是 | Yes是 |
A shared chat window and a document folder on top of Ollama.疊在 Ollama 上的共用聊天視窗與文件資料夾。 |
You think it is the model. It is the interface.它不是模型本身,只是聊天介面。 |
| ComfyUI | Yes是 | Yes是 |
Local images and draft video. SDXL on an 8–12 GB GPU, FLUX around 24 GB, LTX or Wan for short clips. Files.本機圖像與影片草稿。8 到 12 GB 用 SDXL,大約 24 GB 用 FLUX,短片用 LTX 或 Wan。檔案。 |
You only need chat. It is a graph editor, not a writing app.你只需要聊天的話,不用它。它是節點編輯器,不是寫作軟件。 |
| Draw Things | No否 | Yes是 |
Local images on a Mac without building a node graph.在 Mac 上做本機圖像,不必建節點圖。 |
You are on Windows. Use ComfyUI there.你用 Windows 的話,用 ComfyUI。 |
Patterns that hold on both platformsMac 和 PC 都適用
06
Coding程式
Q4 is the default quant. Leave a gigabyte or two free for the conversation cache. A 24 GB NVIDIA card or a 48 GB Mac is where local coding starts to feel like a tool rather than a demo. Point Continue, Cline, or Aider at http://localhost:11434/v1.預設用 Q4。留一兩個 GB 給對話快取。24 GB 的 NVIDIA 卡,或 48 GB 的 Mac,本機寫程式才開始像日常工具,而不像示範。把 Continue、Cline 或 Aider 指向 http://localhost:11434/v1。
Office agents辦公室智能代理
Prefer a Qwen model when it has to call tools. Run Hermes if a procedure should be saved as a skill. Run OpenClaw if it has to sit inside chat apps. Give it one folder, and only let this computer reach it. A local model does not make an unrestricted shell safe.需要模型自己去呼叫工具時,優先用 Qwen 系列。一套步驟要存成技能,就用 Hermes。它要接在聊天軟件裡,就用 OpenClaw。只給一個資料夾,並且只讓這部電腦連得到。模型在自己電腦上,不代表可以讓它任意執行指令。
Research研究
Do not paste a book into the prompt. Run a small embedding model (bge or nomic class, a couple of gigabytes) and retrieve passages into Open WebUI or AnythingLLM. Spend the big model on the answer. Cap local context around 8K–32K even if the card says 1M. The cache is what runs you out of memory.不要把一本書貼進提示。跑一個小的嵌入模型(bge 或 nomic 那一檔,幾個 GB),把相關段落抽進 Open WebUI 或 AnythingLLM。大模型只負責回答。就算說明寫支援 1M,本機的上下文也限制在大約 8K 到 32K。吃掉記憶體的,通常是這份快取。
Images and video圖像與影片
Stills start with Stable Diffusion XL around 8–12 GB, and get comfortable at 24 GB with FLUX in ComfyUI. Video stays a cloud job (Kling, Seedance, Veo, Hailuo). A 24 GB machine can try a short draft; 48 GB is where local drafts stop feeling like a stunt. Files are in the table above. Cloud names are on the media page.圖片從大約 8 到 12 GB 的 Stable Diffusion XL 開始。到了 24 GB,用 ComfyUI 跑 FLUX 才比較寬裕。影片仍以雲端為主(Kling、Seedance、Veo、Hailuo)。24 GB 可以試很短的草稿,到 48 GB 才不像在硬撐。檔案在上面的表。雲端模型的名字在圖像與影片頁。
The names on this page are product lines, not download names that stay fixed in Ollama. Before you write an install script, search Ollama's library for the name that is current. A small update to a line you already use is a safer pick than a new name you saw on a chart. The table above lists the files you can download for this edition.這一頁寫的名稱是產品系列,不是 Ollama 裡固定不變的下載名稱。寫安裝指令之前,先到 Ollama 的模型庫搜尋現在的名稱。你已經在用的系列出了小更新,通常比排行榜上新看到的名字可靠。上面的檔案表,就是這一版可以直接下載的檔。