macOS + Ollama + Enchanted,本地部署最新 Llama3

4月19日,Meta开源了大模型Llama3,并在多项指标上超越了现有最先进的大模型(详见:关于Llama 3 AI大模型的几点总结 )。Ollama社区也同步新增 Llama3 的支持。接下来,我们将在MacBook Pro上部署Llama3,让大家在本地体验最强开源大模型。

硬件设置,MacBook Pro (2019款),Intel CPU,8 Core,16GB内存。

具体步骤:

  • 安装Ollama
  • 下载Llama3
  • 安装Enchanted

安装Ollama

Ollama大家都比较熟悉了,安装非常方便,有macOS独立安装包。下载,解压,安装。

下载链接:https://ollama.com/download

安装完成后,会提示命令行:ollama run llama2,可以拷贝一下。但是注意要下载llama3,而不是llama2.

下载Llama3

进入 Terminal,执行(把llama2改为llama3):ollama run llama3。下载需要等待一段时间,具体取决于网络速度。

Terminal 复制代码
$ ollama run llama3
pulling manifest 
pulling 00e1317cbf74... 100% ▕██████████████████████████████████████████████████████████████████████████████████████▏ 4.7 GB                         
pulling 4fa551d4f938... 100% ▕██████████████████████████████████████████████████████████████████████████████████████▏  12 KB                         
pulling 8ab4849b038c... 100% ▕██████████████████████████████████████████████████████████████████████████████████████▏  254 B                         
pulling c0aac7c7f00d... 100% ▕██████████████████████████████████████████████████████████████████████████████████████▏  128 B                         
pulling db46ef36ef0b... 100% ▕██████████████████████████████████████████████████████████████████████████████████████▏  483 B                         
verifying sha256 digest 
writing manifest 
removing any unused layers 
success 
>>>

下载完成后,直接进入llama3状态,提示本文:Send a message (/? for help)。可以自行提问并获得回复。

Terminal 复制代码
>>> who are you
I am LLaMA, an AI assistant developed by Meta AI that can understand and respond to human input in a conversational manner. I'm not a human, but a computer program designed to simulate conversation and answer questions to the best of my ability based on my training data. 

I was trained using a massive dataset of text from various sources, including books, articles, and websites. This training enables me to understand and respond to natural language input, such as your question about who I am!

In simple terms, I'm like a very smart chatbot that can have a conversation with you!

>>> 

macOS 状态栏上有图标提示llama3在后台运行。

安装Enchanted

Enchanted 是开源并兼容 Ollama 的应用程序,允许您在iOS生态系统(macOS、iOS、Watch、Vision Pro)中的所有设备上获得未经过滤、安全、私密和多模态的体验。

下载链接:https://github.com/AugustDev/enchanted

页面点击:Download on the App Store 图标,进入macOS的 App Store 下载安装。

安装完成后,启动界面非常简洁大气:

之前llama3已经在后台运行了,所以可以直接在Enchanted里提问并获得回答。

讨论

这个解决方案可以让我们在个人笔记本电脑上完美体验llama3,无需科学上网即可轻松使用最强的开源大模型。而且,在其他平台(Windows和Linux)上也应该可以轻松部署,具体的步骤可以参考各应用的官方网站,或者查找其他的介绍文章。

相关推荐
AlbertZein5 天前
Step-5-Preview 上手实测:3D 游戏、金融分析、网页设计一次跑完
人工智能·aigc
AIGCmagic社区5 天前
文档智能专题:小模型后训练怎么选样本?PaddleOCR-VL-1.6按三类弱点挖掘
人工智能·aigc·文档智能
AIGCmagic社区6 天前
文档智能专题:HunyuanOCR-1.5用DFlash把整页解码压到1.4秒
人工智能·aigc·文档智能
小虎AI生活6 天前
腾讯开源了一个项目,让 AI 直接用你已经登录好的浏览器
aigc·ai编程
plainGeekDev6 天前
Harness 实战:用 Android 登录模块搭一套可靠的 Agent 开发环境
aigc·ai编程·claude
全栈弄潮儿6 天前
周复盘:把 AI 当实习生,还是当工程搭档?
aigc·openai·ai编程
程序员清风6 天前
系统架构设计:模型服务、业务服务与知识库如何拆分
人工智能·ai·架构·aigc
倔强的石头_6 天前
我给 WorkBuddy 设了个闹钟:每天上午十点半,一份 AI 日报自动送进微信
aigc
李白客6 天前
向量数据库怎么选:RAG 项目最该比较的 8 个维度(深度拆解)
数据库·aigc
へ蟲児.6 天前
国内适合设计师的AIGC学习平台哪个好?能贴合商业设计实战
aigc