文章目录
查看Mac电脑配置
24 GB内存
查询适合的模型
- 在终端里输入命令,回车安装
llmfit:brew install llmfit
安装完成后,直接输入llmfit,回车运行;
会弹出交互界面,搜索你感兴趣的模型(google/gemma4或qwen/qwen3.5),看Fit一栏就好:Perfect、Good都能流畅跑。
bash
==> Auto-updating Homebrew...
Adjust how often this is run with `$HOMEBREW_AUTO_UPDATE_SECS` or disable with
`$HOMEBREW_NO_AUTO_UPDATE=1`. Hide these hints with `$HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
ll==> Downloading https://ghcr.io/v2/homebrew/core/portable-ruby/blobs/sha256:f41c72b891c40623f9d5cd2135f58a1b8a5c014ae04149888289409316276c72
########################################################################################## 100.0%
==> Pouring portable-ruby-4.0.2_1.arm64_big_sur.bottle.tar.gz
==> Homebrew collects anonymous analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics have been recorded yet (nor will be during this `brew` run).
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
apache-arrow-adbc: Cross-language, Arrow-native database access
apache-arrow-adbc-glib: GLib bindings for Apache Arrow ADBC
apfel: Apple Intelligence from the command-line, with OpenAi-compatible API server
cline: AI-powered coding agent for complex work
crip: Tool to extract server certificates
ctx7: Manage AI coding skills and documentation context
cyan: iOS app injector and modifier
dart-sass: Reference implementation of Sass, written in Dart
dartaotruntime: Command-line tool for running AOT-compiled snapshots of Dart code
dispenso: High-performance C++ library for parallel programming
dtop: Terminal dashboard for Docker monitoring across multiple hosts
et: Remote terminal with IP roaming
expert: Official Elixir Language Server Protocol implementation
fvm: Manage Flutter SDK versions per project
ggml: Tensor library for machine learning
git-format-staged: Git command to transform staged files using a formatting command
graalvm: JDK distribution with Graal compiler and Native Image
icestorm: Tools for analyzing and creating Lattice iCE40 FPGA bitstream files
ipapatch: CLI tool to patch iOS IPA files and their plugins
jsongrep: Query tool for JSON, YAML, TOML, and other structured formats
lazycut: Terminal-based video trimming TUI
libheif-plugins: ISO/IEC 23008-12:2017 HEIF file format decoder and encoder
libkiwix: Common code base for all Kiwix ports
libpathrs: C-friendly API to make path resolution safer on Linux
lief: Library to Instrument Executable Formats
merve: C++ lexer for extracting named exports from CommonJS modules
miniaudio: Audio playback and capture library
nbytes: Library of byte handling functions extracted from Node.js core
nextpnr-ice40: Portable FPGA place and route tool for Lattice iCE40
oh-my-agent: Portable multi-agent harness for .agents-based skills and workflows
opentimestamps-client: Create and verify OpenTimestamps proofs
overturemaps: Python tools for interacting with Overture Maps data
pay: HTTP client that automatically handles 402 Payment Required
pipewire-gstreamer: GStreamer Plugin for PipeWire
portless: Replace port numbers with stable, named local URLs for humans and agents
proxelar: Man-in-the-Middle proxy for HTTP/HTTPS traffic
qtcanvaspainter: Accelerated 2D painting solution for Qt Quick and QRhi-based render targets
qttasktree: General purpose library for asynchronous task execution
resticprofile: Configuration profiles manager and scheduler for restic backup
rpiboot: Raspberry Pi USB boot tool for Compute Modules
rustpython: Python Interpreter written in Rust
rvvm: RISC-V Virtual Machine
sarif-fmt: Pretty print SARIF files to easy human readable output
sem-cli: Semantic version control CLI with entity-level diffs and blame
sheets: Terminal based spreadsheet tool
skip: Tool for building Swift apps for Android
summarize: Multi-modal AI tool to extract and summarize content
t2sz: Compress a file into a seekable zstd with per-file seeking for tar archives
tini: Tiny but valid init for containers
tsshd: UDP SSH server for trzsz-ssh (tssh) with roaming support
vapoursynth-bm3d: BM3D denoising filter for VapourSynth
vapoursynth-descale: VapourSynth plugin to undo upscaling
wireplumber: Session / policy manager implementation for PipeWire
wmbusmeters: Read wired or wireless mbus protocol to acquire utility meter readings
xcursorgen: Create an X cursor file from a collection of PNG images
yelp-xsl: Document transformations from Yelp
zsign: Cross-platform codesigning tool for iOS apps
zxc: High-performance asymmetric lossless compression library
zycore-c: Zyan Core Library for C
==> New Casks
altar-ai: AI-powered meeting assistant
appgridmac: AI-assisted Launchpad replacement
backblaze-restore: Computer backup restore client
baoliandeng: VPN proxy powered by Mihomo (Clash Meta)
cadran: Desktop clock rendered behind your icons
cc-switch: Configuration manager for AI coding agents
claude-code@latest: Terminal-based AI coding assistant
clearance: Markdown viewer and editor
copilot-language-server: Language Server Protocol server for GitHub Copilot
craft-agents: AI assistant for connecting and working across data sources
dbeaverteam: Universal database tool and SQL client
dbvr: Lightweight CLI tool for running database operations
fidelity-trader+: Trading platform
font-bj-cree
font-ioskeley-mono
font-saira-stencil
font-selawik
font-strichpunkt-sans
gram: Code editor focused on stability, without AI, subscriptions, or telemetry
happ: Platform for building proxies to bypass network restrictions
hive-app: AI agent orchestrator for parallel coding across projects
idevice-pair: Generate pair records for iOS devices
incident-io: Incident management platform
intiface-central: Frontend application for the Buttplug sex toy control library
jiba: Apple Music metadata localisation tool
nimbalyst: Visual workspace for building with Codex and Claude Code
notchi: Notch companion for Claude Code
nvidia-sync: Utility for launching applications and containers on remote Linux systems
ob-xf: Virtual analog synthesizer
orchard: Native GUI for Apple Containers
paper-design: Design tool for creating interfaces and prototypes
plamo-translate: Translator focused on Japanese
proton-meet: Desktop client for Proton Meet
radial: Gesture-based launcher for apps, text snippets, and scripts
rayon: AI-powered drawing for interior designers and architects
remanager: Desktop app for managing mods on reMarkable tablets
rockxy-community: HTTP proxy
rowboat: Open-source AI coworker, with memory
scribus@devel: Free and open-source page layout program
spectra-app: OpenSpec document management desktop app
supasidebar: Arc-like sidebar to save links, files and folders from any browser
super: Analytics database that fuses structured and semi-structured data
tablen: Native SQL client
tencent-ugit: Tencent Git GUI Client
ulaa: Privacy-centric browser with advanced tracking protection
vibe-island: Dynamic island AI agent utility
vibeproxy: Menu bar app for using AI subscriptions with coding tools
voicemod: Real-time voice changer and soundboard
voiden@beta: API development tool
wallspace: Live wallpaper app
worksheet-crafter: Worksheet and lesson material creator
wowup-cf: World of Warcraft addon manager
x-air-edit: Remote control for the Behringer X AIR series mixers
You have 10 outdated formulae installed.
==> Fetching downloads for: llmfit
✔︎ Bottle Manifest llmfit (0.9.5) Downloaded 7.4KB/ 7.4KB
✔︎ Bottle llmfit (0.9.5) Downloaded 3.1MB/ 3.1MB
==> Pouring llmfit--0.9.5.arm64_sequoia.bottle.tar.gz
🍺 /opt/homebrew/Cellar/llmfit/0.9.5: 7 files, 7.8MB
==> Running `brew cleanup llmfit`...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
==> `brew cleanup` has not been run in the last 30 days, running now...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
-
安装
ollama
Ollama负责模型的下载、加载和运行,还自带本地API,不用手动配置,是目前新手最省事的方案,没有之一。还是打开终端,输入下面这行命令,回车等待安装:
brew install --cask ollama官方地址下载速度很慢,建议使用如下网址下载https://www.gy328.com/app/ollama/。
-
查看ollama版本
bash
ollama --version
ollama version is 0.20.6

使用llmfit寻找模型
直接在终端输入llmfit

- Gemma4(谷歌出品):谷歌DeepMind 2025年新发布的开源模型,最大亮点是原生支持多模态(文字+图片),上下文窗口高达128K~256K,同体量模型里综合表现拉满,适合需要处理长文本、图文结合的需求。
- Qwen3.5(阿里出品):阿里通义团队最新开源版本,支持201种语言,重点是中文理解和代码能力超强,还内置"思考模式",遇到复杂问题会先推理再回答,对中文用户更友好。
bash
ollama run gemma4:26b
pulling manifest
pulling 7121486771cb: 28% ▕████ ▏ 5.0 GB/ 17 GB 6.9