最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Macmini M4 openclaw第一集:使用ollama和omlx架構(gòu)對比分析(保姆級教程)

  發(fā)布時間:2026-04-16 10:39:39   作者:人工智能我來了   我要評論
文章介紹了專為蘋果macOS優(yōu)化的oMLX框架,通過安裝Home本地運行環(huán)境、依賴包和開源客戶端面板,實現(xiàn)在Mac上上跑本地模型,并通過配置模型和啟動gateway達(dá)到加速效果,實測顯示速度提升接近1倍,幾乎實現(xiàn)秒級響應(yīng),感興趣的朋友一起看看吧

介紹專為蘋果 macOS 深度優(yōu)化的 oMLX 框架,讓你的本地模型運行速度直接飆升好幾倍 !全網(wǎng)最保姆級教程,干貨滿滿,千萬別錯過!

1.選擇 Mac mini 跑本地模型?靜音與功耗優(yōu)勢

2.下載并安裝 Ollama 本地運行環(huán)境

https://ollama.com/download

3.16G 內(nèi)存該如何選模型?實測千問 3.5 (9B)

https://ollama.com/library/qwen3.5

?  / cd 
?  ~ pwd
/Users/holyeyes
?  ~ ollama list
NAME    ID    SIZE    MODIFIED 
?  ~ ollama run qwen3.5:9b
pulling manifest 
pulling dec52a44569a: 100% ▕██████████████████▏ 6.6 GB                         
pulling 7339fa418c9a: 100% ▕██████████████████▏  11 KB                         
pulling 9371364b27a5: 100% ▕██████████████████▏   65 B                         
pulling be595b49fe22: 100% ▕██████████████████▏  475 B                         
verifying sha256 digest 
writing manifest 
success 
>>> Sen

4.安裝 macOS 依賴環(huán)境 (Homebrew、Node.js、Git)

?  ~ cd
?  ~ pwd
/Users/holyeyes
?  ~ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

執(zhí)行結(jié)果如下:

==> Checking for `sudo` access (which may request your password)...
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew
/etc/paths.d/homebrew
Press RETURN/ENTER to continue or any other key to abort:
==> /usr/bin/sudo /usr/sbin/chown -R holyeyes:admin /opt/homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 20571, done.
remote: Counting objects: 100% (6436/6436), done.
remote: Compressing objects: 100% (211/211), done.
remote: Total 20571 (delta 6326), reused 6228 (delta 6225), pack-reused 14135 (from 2)
==> /usr/bin/sudo /bin/mkdir -p /etc/paths.d
==> /usr/bin/sudo tee /etc/paths.d/homebrew
/opt/homebrew/bin
==> /usr/bin/sudo /usr/sbin/chown root:wheel /etc/paths.d/homebrew
==> /usr/bin/sudo /bin/chmod a+r /etc/paths.d/homebrew
==> Updating Homebrew...
==> Downloading https://ghcr.io/v2/homebrew/core/portable-ruby/blobs/sha256:cef6f881f516d2cdbd0a5bfc7e20318da8b047cf2674ee27c5d4858d3ecd6430
######################################################################### 100.0%
==> Pouring portable-ruby-4.0.1.arm64_big_sur.bottle.tar.gz
Updated 2 taps (homebrew/core and homebrew/cask).
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
==> Next steps:
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh

5.一鍵安裝開源客戶端面板

?  ~ pwd
/Users/holyeyes
?  ~ curl -fsSL https://openclaw.ai/install.sh | bash
  ?? OpenClaw Installer
  The only crab in your contacts you actually want to hear from. ??
? Detected: macos
Install plan
OS: macos
Install method: npm
Requested version: latest
[1/3] Preparing environment
? Homebrew already installed
· Node.js not found, installing it now
· Installing Node.js via Homebrew
To relink, run:
  brew unlink node@22 && brew link node@22
? Node.js installed
· Active Node.js: v22.22.1 (/opt/homebrew/opt/node@22/bin/node)
· Active npm: 10.9.4 (/opt/homebrew/opt/node@22/bin/npm)
[2/3] Installing OpenClaw
? Git already installed
· Installing OpenClaw v2026.3.13
? OpenClaw npm package installed
? OpenClaw installed
[3/3] Finalizing setup
?? OpenClaw installed successfully (OpenClaw 2026.3.13 (61d171a))!
cracks claws Alright, what are we building?
· Starting setup
?? OpenClaw 2026.3.13 (61d171a)
   I'm the reason your shell history looks like a hacker-movie montage.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██?▄▄▄?██?▄▄?██?▄▄▄██??██?██?▄▄?██?████?▄▄?██?███?██
██?███?██????██?▄▄▄██?█?█?██?█████?████????██?█?█?██
██?????██?█████????██?██▄?██???▄██????█?██?██▄?▄?▄██
????????????????????????????????????????????????????
                  ?? OPENCLAW ??                    
┌  OpenClaw onboarding
│
◇  Security ──────────────────────────────────────────────────────────────╮
│                                                                         │
│  Security warning — please read.                                        │
│                                                                         │
│  OpenClaw is a hobby project and still in beta. Expect sharp edges.     │
│  By default, OpenClaw is a personal agent: one trusted operator         │
│  boundary.                                                              │
│  This bot can read files and run actions if tools are enabled.          │
│  A bad prompt can trick it into doing unsafe things.                    │
│                                                                         │
│  OpenClaw is not a hostile multi-tenant boundary by default.            │
│  If multiple users can message one tool-enabled agent, they share that  │
│  delegated tool authority.                                              │
│                                                                         │
│  If you’re not comfortable with security hardening and access control,  │
│  don’t run OpenClaw.                                                    │
│  Ask someone experienced to help before enabling tools or exposing it   │
│  to the internet.                                                       │
│                                                                         │
│  Recommended baseline:                                                  │
│  - Pairing/allowlists + mention gating.                                 │
│  - Multi-user/shared inbox: split trust boundaries (separate            │
│    gateway/credentials, ideally separate OS users/hosts).               │
│  - Sandbox + least-privilege tools.                                     │
│  - Shared inboxes: isolate DM sessions (`session.dmScope:               │
│    per-channel-peer`) and keep tool access minimal.                     │
│  - Keep secrets out of the agent’s reachable filesystem.                │
│  - Use the strongest available model for any bot with tools or          │
│    untrusted inboxes.                                                   │
│                                                                         │
│  Run regularly:                                                         │
│  openclaw security audit --deep                                         │
│  openclaw security audit --fix                                          │
│                                                                         │
│  Must read: https://docs.openclaw.ai/gateway/security                   │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
│
◇  I understand this is personal-by-default and shared/multi-user use requires 
lock-down. Continue?
│  Yes
│
◇  Onboarding mode
│  QuickStart
│
◇  QuickStart ─────────────────────────╮
│                                      │
│  Gateway port: 18789                 │
│  Gateway bind: Loopback (127.0.0.1)  │
│  Gateway auth: Token (default)       │
│  Tailscale exposure: Off             │
│  Direct to chat channels.            │
│                                      │
├──────────────────────────────────────╯
│
◇  Model/auth provider
│  Skip for now

6.安裝 MLX (OMLX) 平臺,蘋果電腦跑模型提速神器!

6.1 https://omlx.ai/

6.2 我能正常用的是第一個


6.3 下載模型,先設(shè)置鏡像網(wǎng)站,下載速度才快

6.4 下載

6.5 完成下載后可以看到模型

6.6 配置openclaw model參數(shù)的自動腳本

Last login: Sun Mar 22 16:49:59 on ttys000
?  ~ openclaw config
?? OpenClaw 2026.3.13 (61d171a) — Greetings, Professor Falken
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██?▄▄▄?██?▄▄?██?▄▄▄██??██?██?▄▄?██?████?▄▄?██?███?██
██?███?██????██?▄▄▄██?█?█?██?█████?████????██?█?█?██
██?????██?█████????██?██▄?██???▄██????█?██?██▄?▄?▄██
????????????????????????????????????????????????????
                  ?? OPENCLAW ??                    
┌  OpenClaw configure
│
◇  Existing config detected ─────────╮
│                                    │
│  workspace: ~/.openclaw/workspace  │
│  model: omlx/Qwen3.5-9B-MLX-4bit   │
│  gateway.mode: local               │
│  gateway.port: 18789               │
│  gateway.bind: loopback            │
│                                    │
├────────────────────────────────────╯
│
◇  Where will the Gateway run?
│  Local (this machine)
│
◇  Select sections to configure
│  Model
│
◇  Model/auth provider
│  Custom Provider
│
◇  API Base URL
│  http://127.0.0.1:8888/v1
│
◇  How do you want to provide this API key?
│  Paste API key now
│
◇  API Key (leave blank if not required)
│
│
◇  Endpoint compatibility
│  OpenAI-compatible
│
◇  Model ID
│  Qwen3.5-9B-MLX-4bit
│
◇  Verification failed: status 401
│
◇  What would you like to change?
│  Change model
│
◇  Model ID
│  omlx/Qwen3.5-9B-MLX-4bit
│
◇  Verification failed: status 401
│
◇  What would you like to change?
│  Change base URL
│
◇  API Base URL
│  http://127.0.0.1:8888/v1
│
◇  How do you want to provide this API key?
│  Paste API key now
│
◇  API Key (leave blank if not required)
│ xxxxxxxx(與之前設(shè)置的一致)
│
◇  Verification successful.
│
◇  Endpoint ID
│  custom-127-0-0-1-8888
│
◇  Model alias (optional)
│  omlx
Configured custom provider: custom-127-0-0-1-8888/omlx/Qwen3.5-9B-MLX-4bit
Config overwrite: /Users/holyeyes/.openclaw/openclaw.json (sha256 302bbefe5d4891362442457b61c553500dc6bdfc0ed4992aa5e2bf83aec39dff -> 4a26c79e37fc83418b80ef48c4b9263bdefa83af0e0fe34702e86db01f028a03, backup=/Users/holyeyes/.openclaw/openclaw.json.bak)
Updated ~/.openclaw/openclaw.json
│
◇  Select sections to configure
│  Continue
│
◇  Control UI ────────────────────────────────────╮
│                                                 │
│  Web UI: http://127.0.0.1:18789/                │
│  Gateway WS: ws://127.0.0.1:18789               │
│  Gateway: reachable                             │
│  Docs: https://docs.openclaw.ai/web/control-ui  │
│                                                 │
├─────────────────────────────────────────────────╯
│
└  Configure complete.
?  ~ openclaw gateway restart
?? OpenClaw 2026.3.13 (61d171a)
   Somewhere between 'hello world' and 'oh god what have I built.'
Restarted LaunchAgent: gui/501/ai.openclaw.gateway

7 ollma和omlx實測對比

同樣的問題:

2,6,12,20,30,(?)

結(jié)果:

方案 用時
Ollama 原生 1分50秒
OMLX 加速 10~15秒
速度提升接近 10 倍!

幾乎可以做到 秒級響應(yīng)。

到此這篇關(guān)于Macmini M4 openclaw第一集:使用ollama和omlx架構(gòu)對比分析(保姆級教程)的文章就介紹到這了,更多相關(guān)openclaw ollama和omlx架構(gòu)對比內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持腳本之家!

相關(guān)文章

  • Ollama本地部署與遠(yuǎn)程訪問的全流程實戰(zhàn)指南

    本文詳細(xì)介紹了Ollama本地大模型運行框架的安裝配置方法,特別是如何實現(xiàn)遠(yuǎn)程訪問,文章從基礎(chǔ)安裝、配置優(yōu)化、網(wǎng)絡(luò)設(shè)置、遠(yuǎn)程訪問、服務(wù)驗證到常見問題解決,逐層深入,為開發(fā)
    2026-04-12
  • Ollama本地大模型安裝配置的完整流程教學(xué)

    Ollama是一個輕量級、易于使用的大模型管理和部署工具,主要用于簡化大模型的運行和交互,并且為開發(fā)者和用戶提供了快速加載,管理和調(diào)用多種主流大模型的能力,下面我們就
    2026-04-12
  • Python + Ollama 本地跑大模型:零成本搭建你的私有 AI 助手

    文章介紹Ollama本地AI助手的安裝方法,從環(huán)境準(zhǔn)備、快速上手到實戰(zhàn)項目,并探討了其核心優(yōu)勢,包括零成本、零數(shù)據(jù)風(fēng)險、零門檻和零妥協(xié),通過使用Ollama,用戶可以在本地運行大
    2026-04-09
  • 本地快速部署Ollama運行大語言模型詳細(xì)流程(最新推薦)

    本文主要介紹如何在 Windows 系統(tǒng)快速部署 Ollama 開源大語言模型運行工具,并安裝 Open WebUI 結(jié)合 cpolar 內(nèi)網(wǎng)穿透軟件,實現(xiàn)在公網(wǎng)環(huán)境也能訪問你在本地內(nèi)網(wǎng)搭建的 llam
    2026-04-07
  • 三種快速安裝下載OLLAMA的方法小結(jié)(任何版本都適用)

    本文主要介紹了三種快速下載OLLAMA的方法小結(jié),文中通過圖文步驟介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2026-03-31
  • ollama本地部署DeepSeek教程的實現(xiàn)

    本文主要介紹如何使用ollama本地部署deepseek大模型,以及使用WebUI工具界面進(jìn)行交互,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需
    2026-03-31
  • Docker部署Ollama搭建本地AI開發(fā)環(huán)境

    本文介紹如何通過Docker+Ollama搭建本地AI開發(fā)環(huán)境,解決云端API調(diào)用成本高、延遲大的問題,幫助開發(fā)者快速實現(xiàn)本地AI應(yīng)用開發(fā),無需擔(dān)心API調(diào)用限制和費用問題,感興趣的可
    2026-03-30
  • Windows11下Ollama部署Qwen2.5大模型的實戰(zhàn)指南

    本文旨在記錄 如何在Windows 11 本地環(huán)境下,利用 Ollama 部署 Qwen2.5 大模型,并實現(xiàn) API 調(diào)用,無需顯卡也能跑”、能夠確保隱私安全,有需要的小伙伴可以跟隨小編一起了解
    2026-03-18
  • Ollama 模型交互的三種方式介紹

    與 Ollama 模型交互是使用大語言模型(LLM)進(jìn)行對話、生成文本或執(zhí)行任務(wù)的核心功能,Ollama 提供兩種主要交互方式:通過命令行界面(CLI)的交互式終端和通過 REST API 的
    2026-03-09
  • Ollama 模型交互基礎(chǔ)篇

    Ollama 提供了多種方式與模型進(jìn)行交互,其中最常見的就是通過命令行進(jìn)行推理操作
    2026-03-09

最新評論

交口县| 甘德县| 剑河县| 湘阴县| 安化县| 邓州市| 深泽县| 新乡市| 和顺县| 大安市| 浦江县| 平山县| 西峡县| 洛隆县| 上饶县| 奇台县| 京山县| 侯马市| 铁力市| 开化县| 淮安市| 太仓市| 邹平县| 商丘市| 双桥区| 崇阳县| 商城县| 三门县| 武冈市| 榆中县| 定安县| 汨罗市| 汪清县| 手机| 徐水县| 集安市| 饶河县| 咸阳市| 奇台县| 定安县| 乌鲁木齐市|