周末,我试了一下,用Ollama通过简单几个步骤,就可以在本机轻松玩转Google的开源大模型 Gemma。更好的是,有了Ollama,还能下载和使用更多代码生成、文生图等轻量级模型。第1步 下载安装Ollama首先,访问Ollama官网(http://ollama.com)。在Mac上安装尤为简单,直接下载和运行软件包即可。第2步 下载和运行Gemma模型在终端输入命令:ollma pull gemma,即可下载Gemma 7B模型,大约5.2GB,需要一些时间。下载完毕后,输入命令 :ollama run gemma,就可以和模型交互了。比如,我让Gemma把本文的第一段翻译为英文,Gemma的响应速度很快,译文比较直接:Sure, here is the translation:Gemma is Google’s latest lightweight model, available in two weight scales of 2B and 7B. Compared to Google’s largest and most capable Gemini model, Gemma utilizes the same technology and architecture, delivering superior performance in mode
...
继续阅读
(62)