macOS + Ollama + Enchanted,Llama3当地化摆设教程
4月19日,Meta开源了大模型Llama3,并在多项指标上逾越了现有开始进的大模型。Ollama社区也同步新增 Llama3 的支持。接下来,我们将在MacBook Pro上摆设Llama3,让各人在当地体验最强开源大模型。https://i-blog.csdnimg.cn/blog_migrate/3f4665c18f6ad8c9e38c1c2f15e351e5.png
硬件设置,MacBook Pro (2019款),Intel CPU,8 Core,16GB内存。
详细步调:
[*]安装Ollama
[*]下载Llama3
[*]安装Enchanted
安装Ollama
Ollama各人都比较熟悉了,安装非常方便,有macOS独立安装包。下载,解压,安装。
下载链接:https://ollama.com/download
https://i-blog.csdnimg.cn/blog_migrate/d5b111b7b2964146ad55419d325f8d95.png
安装完成后,会提示命令行: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在背景运行。
https://i-blog.csdnimg.cn/blog_migrate/622b7d23524ec0b2219123648658a275.png
安装Enchanted
Enchanted 是开源并兼容 Ollama 的应用程序,允许您在iOS生态体系(macOS、iOS、Watch、Vision Pro)中的全部装备上得到未颠末滤、安全、私密和多模态的体验。
下载链接:https://github.com/AugustDev/enchanted
页面点击:Download on the App Store 图标,进入macOS的 App Store 下载安装。
https://i-blog.csdnimg.cn/blog_migrate/4e35be3f85ba96b03a40ad7486a1047b.png
安装完成后,启动界面非常简洁大气:
https://i-blog.csdnimg.cn/blog_migrate/f1029219b65fcb66f4d68fa6bedf7f6b.png
之前llama3已经在背景运行了,以是可以直接在Enchanted里提问并得到回答。
https://i-blog.csdnimg.cn/blog_migrate/f3704f0e1e98270bc548ad77b88b8e3a.png
讨论
这个解决方案可以让我们在个人笔记本电脑上完善体验llama3,无需科学上网即可轻松利用最强的开源大模型。而且,在其他平台(Windows和Linux)上也应该可以轻松摆设,详细的步调可以参考各应用的官方网站,大概查找其他的介绍文章。
怎样体系的去学习大模型LLM ?
大模型时代,火爆出圈的LLM大模型让程序员们开始重新评估本身的本事。 “AI会取代那些行业?”“谁的饭碗又将不保了?”等题目热议不停。
事实上,抢你饭碗的不是AI,而是会利用AI的人。
继科大讯飞、阿里、华为等巨头公司发布AI产品后,许多中小企业也陆续进场!超高年薪,挖掘AI大模型人才! 如今大厂老板们,也更倾向于会AI的人,普通程序员,还有应对的时机吗?
与其焦虑……
不如成为「把握AI工具的技术人」,究竟AI时代,谁先尝试,谁就能占得先机!
但是LLM相干的内容许多,如今网上的老课程老教材关于LLM又太少。以是如今小白入门就只能靠自学,学习成本和门槛很高。
针对全部自学遇到困难的同学们,我帮各人体系梳理大模型学习脉络,将这份 LLM大模型资料 分享出来:包括LLM大模型书籍、640套大模型行业报告、LLM大模型学习视频、LLM大模型学习门路、开源大模型学习教程等,
页:
[1]