关于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.
相关推荐
piaoxue82016 分钟前
Mac上安装运行SynthTIGER
macos·语言模型
小山菌2 小时前
mac中加载C++动态库文件
开发语言·c++·macos
THMAIL3 小时前
mac M芯片运行docker-desktop异常问题
macos·docker·容器
laocooon5238578869 小时前
一台入网的电脑有6要素, 机器名,mac,ip,俺码,网关,dns,分别有什么作用
网络协议·tcp/ip·macos
德亦周18 小时前
如何在Mac电脑上的VScode去配置C/C++环境
c++·vscode·macos
tonngw1 天前
【Mac 从 0 到 1 保姆级配置教程 12】- 安装配置万能的编辑器 VSCode 以及常用插件
git·vscode·后端·macos·开源·编辑器·github
亚林瓜子1 天前
虚拟Python 环境构建器virtualenv安装(macOS版)
python·macos·virtualenv·pipx
瓜子三百克1 天前
采用sherpa-onnx 实现 ios语音唤起的调研
macos·ios·cocoa
北漂强1 天前
Mac---安装Navicat 16
macos
ElenaYu1 天前
mac安装cast
python·macos·cast