-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
208 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Ollama 安装与配置 - macOS 系统篇 | ||
|
||
## 简介 | ||
|
||
本节学习如何在 macOS 系统中完成 Ollama 的安装与配置,主要分为以下三部分: | ||
|
||
* 访问官网直接完成下载 | ||
* 运行 Ollama | ||
* 安装 Enchanted | ||
|
||
## 一、访问官网直接完成下载 | ||
|
||
1. 访问官网主页 | ||
|
||
> [**Ollama**](https://ollama.com/download) 官方主页:https://ollama.com/library | ||
> **Ollama**官方GitHub源代码仓库:[https://github.com/ollama/ollama/](https://github.com/ollama/ollama) | ||
> | ||
![](../images/C2-1-1.png) | ||
|
||
2. 等待浏览器下载文件 Ollama-darwin.zip,完成后双击该文件解压,双击解压后文件并将出现如下弹窗。 | ||
|
||
![](../images/C2-1-2.png) | ||
|
||
点击`打开`后会出现如下弹窗,我们点击`Move to Applications`即可。 | ||
|
||
![](../images/C2-1-3.png) | ||
3. 安装完成后,可以右上角状态栏看到 Ollama 图标,点击 `Quit Ollama` 可以退出 Ollama 。 | ||
|
||
![](../images/C2-1-4.jpg) | ||
|
||
## 二、运行 Ollama | ||
|
||
- 终端命令启动 | ||
|
||
```bash | ||
ollama run qwen2:0.5b | ||
``` | ||
> 第一次启动需要下载对应模型文件,因此我们选择下载千问2的0.5b版本节省时间。可以点击官网右上角的 [Models](https://ollama.com/library) 获取Ollama支持的模型。 | ||
> 加载完成后可以在终端与模型进行对话,`/bye`结束对话。 | ||
![](../images/C2-1-5.png) | ||
|
||
## 三、安装 Enchanted | ||
Enchanted 是一款开源、兼容 Ollama 的优雅 macOS/iOS/visionOS 应用程序,是一款可以连接私人模型的 ChatGPT 应用程序 UI。可以在 [Enchanted](https://github.com/AugustDev/enchanted) 点击 App Store 进行下载。 | ||
|
||
![](../images/C2-1-6.png) | ||
|
||
我们在运行 Ollama 之后,直接打开 Enchanted 就可以连接到 Ollama。 | ||
|
||
![](../images/C2-1-7.png) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.