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

相关推荐
杨杨杨大侠28 分钟前
推理模型和 MoE 到底有什么区别?从一道打折题讲到专家分工
aigc·openai·ai编程
feasibility.44 分钟前
ABot-World-0:当一块 RTX 5090 能编织无限世界——交互式世界模型的高德解法
人工智能·aigc·视频·地图·具身智能·英伟达·世界模型
奈斯先生Vector4 小时前
AIGC 视频生成实战:用 Kling Video 拆解文生视频、图生视频与完整工作流
开发语言·人工智能·windows·python·aigc·音视频
SmartBrain5 小时前
智能体是“数模治理”方向的重要技术引擎
人工智能·aigc
漂着的圆木5 小时前
GLM-5.3-Flash 接入 Agent Loop:图片验收别只查 OCR
人工智能·计算机视觉·aigc·ai agent
怕浪猫6 小时前
一次面试让我重新认识了 Codex,顺便搞懂了 GPT-6 Astra
gpt·chatgpt·aigc
灵感__idea6 小时前
《AI工程》:模型选择,微调与数据集(深度篇)
aigc·openai·ai编程
Csvn6 小时前
第 17 章 评估与自检 Evaluation
人工智能·aigc·agent
Dawson Zhu7 小时前
Kafka 在 AI Agent 系统中的应用:任务队列与事件总线的角色辨析及工程实践
人工智能·语言模型·架构·aigc·agi
手写码匠7 小时前
华为云Flexus+DeepSeek征文|DeepSeek R1 推理优化实战:让复杂任务的回答又快又稳
人工智能·深度学习·算法·aigc