关于ollama 在mac的部署问题

安装

官网链接

直接按需求下载即可

默认模型下载地址

macOS: ~/.ollama/models

Linux: /usr/share/ollama/.ollama/models

Windows: C:\Users<username>.ollama\models

根据需要的平台设置相应的环境变量: OLLAMA_MODELS

如Mac 设置 ~/.zshrc

c 复制代码
export  OLLAMA_MODELS = "/your_path/"

接着运行命令 ollama run qwen2:7b

可以开始本地大模型了

c 复制代码
path_helper: ndk.path.save: Permission denied
(base) chendongming@chendongmingdeMac-mini ~ % ollama run qwen2:7b
pulling manifest 
pulling 43f7a214e532... 100% ▕██████████████████████████████████████████████████████████▏ 4.4 GB                         
pulling 77c91b422cc9... 100% ▕██████████████████████████████████████████████████████████▏ 1.4 KB                         
pulling c156170b718e... 100% ▕██████████████████████████████████████████████████████████▏  11 KB                         
pulling f02dd72bb242... 100% ▕██████████████████████████████████████████████████████████▏   59 B                         
pulling 75357d685f23... 100% ▕██████████████████████████████████████████████████████████▏   28 B                         
pulling 648f809ced2b... 100% ▕██████████████████████████████████████████████████████████▏  485 B                         
verifying sha256 digest 
writing manifest 
success 
>>> hello
Hello! How can I help you today? Is there something specific you would like to know or discuss? I'm here to answer 
any questions you might have, whether they're about general knowledge, specific topics, or just need advice on 
certain issues. Feel free to ask anything you'd like.
相关推荐
AirDroid_cn1 小时前
macOS Sequoia 通知摘要:如何启用AI生成的通知摘要,并排除特定应用?
人工智能·macos
2501_915918412 小时前
iOS性能数据监控:从概念到工具实践,让应用运行更流畅
android·macos·ios·小程序·uni-app·cocoa·iphone
BugShare1 天前
轻量级原生 macOS 智能剪贴板管理器
macos·贴图
Fleshy数模1 天前
从课堂视频到结构化教学数据:基于语音识别与 LLM 的智能处理方案
ide·macos·xcode
洛水如云1 天前
系统还原全攻略:Win11/10/7/macOS详细操作指南
windows·macos·电脑
Andya_net1 天前
MySQL | DBeaver Mac版下载、安装与使用指南
数据库·mysql·macos
2501_916008891 天前
Xcode功能、下载、反馈与版本支持详细解析
ide·vscode·macos·ios·个人开发·xcode·敏捷流程
扬帆破浪2 天前
免费开源AI软件.桌面单机版,可移动的AI知识库,察元 AI桌面版:macOS首次启动报无法验证 开发者签名与公证的现实做法
人工智能·macos·开源·知识图谱
irpywp2 天前
合盖断网打断后台计算,Modafinil:一款防休眠菜单栏工具,让 Mac 闭眼继续跑 Agent
macos·ios·开源·github
一只AI打工虾的自我修养2 天前
DeepSeek V4.1 vs Ollama vs LocalClaw:Mac本地AI工具横评
人工智能·windows·macos