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)上也应该可以轻松部署,具体的步骤可以参考各应用的官方网站,或者查找其他的介绍文章。

相关推荐
m0_743106461 小时前
【论文笔记】BlockGaussian:巧妙解决大规模场景重建中的伪影问题
论文阅读·计算机视觉·3d·aigc·几何学
夲奋亻Jay4 小时前
下面我将针对每个应用场景,详细列出前端领域涉及AI推进的具体技术、工具和方案
aigc·ai编程
xuedaobian5 小时前
AI IDE里的 context 工程
人工智能·aigc·visual studio code
半旧5186 小时前
Deepseek搭建智能体&个人知识库
大模型·llm·aigc·agent·知识库·智能体
redreamSo7 小时前
AI Daily | AI日报:Imagination:被中芯国际收购GPU部门消息不实; 智元21亿收购,欲成“人形机器人第一股”; 英伟达市值首破4万亿美元,黄仁勋封神!
程序员·aigc·资讯
陈敬雷-充电了么-CEO兼CTO8 小时前
主流大模型Agent框架 AutoGPT详解
人工智能·python·gpt·ai·chatgpt·nlp·aigc
Codebee9 小时前
三码合一:OneCode注解驱动的新时代编码范式
aigc·ai编程·编程语言
PetterHillWater9 小时前
AWS使用提示词与RAG来减少大模型幻觉
aigc
极客密码10 小时前
Cursor真的很好用,但我强烈建议你试试 Augment
aigc·ai编程·cursor
redreamSo21 小时前
AI 绘图效率神器:Mermaid Previewer Sidebar Chrome 插件
chrome·langchain·aigc