Skip to content

Commit 6ceaa69

Browse files
authored
Merge pull request d-run#228 from windsonsea/deep
add a blog: use d.run models everywhere
2 parents 569874d + 56a79b5 commit 6ceaa69

File tree

16 files changed

+118
-0
lines changed

16 files changed

+118
-0
lines changed
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
---
2+
hide:
3+
- toc
4+
---
5+
6+
# 快速入门:部署、调用和体验 d.run DeepSeek
7+
8+
d.run 目前为 DeepSeek 模型提供了免费一周的体验时间,
9+
打开 <https://console.d.run/> 即可免费体验一周以下几个 DeepSeek 模型的服务:
10+
11+
- DeepSeek-R1
12+
- DeepSeek-V3
13+
- DeepSeek-R1-Distill-Qwen-32B
14+
- DeepSeek-R1-Distill-Qwen-14B
15+
16+
不过,为了提高你的使用体验,建议部署一个自己专属的大模型。
17+
我们以 DeepSeek-R1-Distill-Qwen-14B 为例。
18+
19+
## 部署模型
20+
21+
1.**模型广场** 找到 DeepSeek-R1-Distill-Qwen-14B,点击卡片上的 **部署** 按钮。
22+
23+
![部署按钮](./images/deep01.png)
24+
25+
1. 输入基本信息、资源信息,选择计费方式后,点击 **确定**
26+
27+
![部署表单](./images/deep02.png)
28+
29+
1. 系统提示部署成功,状态从 **部署中** 变为 **运行中** 后,即表示 DeepSeek-R1-Distill-Qwen-14B 模型被成功部署。
30+
31+
![部署成功](./images/deep03.png)
32+
33+
## 在 d.run 中体验模型对话
34+
35+
点击操作列中的 **体验** ,即可使用 DeepSeek-R1-Distill-Qwen-14B 蒸馏模型开始对话聊天。
36+
37+
![开始对话](./images/deep04.png)
38+
39+
## 第三方调用 d.run 模型服务
40+
41+
此外,你还可以通过 VSCode、Bob Translate、Lobe Chat、Cherry Studio 等第三方智能应用调用 d.run API
42+
来使用刚刚部署的 DeepSeek-R1-Distill-Qwen-14B 模型服务。
43+
44+
### 创建 API Key
45+
46+
如果想要在第三方应用中调用 d.run 的模型服务,就需要 API Key。
47+
48+
1. 在 d.run 大模型服务平台中,点击导航栏的 **统计与管理** -> **API Key 管理** ,点击右侧的 **创建** 按钮
49+
50+
![开始对话](./images/deep05.png)
51+
52+
1. 输入一个方便识别的名称后,点击 **确定**
53+
54+
![名称](./images/deep06.png)
55+
56+
1. 屏幕提示 API 密钥创建成功,妥善保管生成的密钥后,点击 **关闭**
57+
58+
![生成密钥](./images/deep07.png)
59+
60+
1. 返回 API Key 列表,刚生成的默认位于第一个。
61+
62+
![生成密钥](./images/deep08.png)
63+
64+
### 调用 d.run 模型服务
65+
66+
以第三方应用 Bob Translate 为例,
67+
68+
1. 通过 App Store 安装完成之后,运行 Bob,从下拉菜单中点选 **偏好设置**
69+
70+
![偏好设置](./images/deep09.png)
71+
72+
1. 依次点击 **服务** -> ****
73+
74+
![增加服务](./images/deep10.png)
75+
76+
1. 选择 OpenAI(后续应该会增加 DeepSeek 的选项)
77+
78+
![选择 OpenAI](./images/deep11.png)
79+
80+
1. 填写以下参数,只启用 d.run 的模型服务,点击 **保存**
81+
82+
| **配置项** | **举例值** |
83+
|-----------|----------- |
84+
| **服务名称** | d.run.deepseek |
85+
| **API Key** | 输入刚生成的 Key |
86+
| **自定义 API Base URL** | `https://sh-02.d.run` |
87+
| **自定义 API Path** | `/v1/chat/completions` |
88+
| **模型** | 自定义模型 |
89+
| **自定义模型** | DeepSeek-R1-Distill-Qwen-14B |
90+
91+
![填写参数](./images/deep12.png)
92+
93+
!!! note
94+
95+
你也可以在命令行运行以下命令,检测模型是否能调用成功:
96+
97+
```bash
98+
curl 'https://sh-02.d.run/v1/chat/completions' \
99+
-H "Content-Type: application/json" \
100+
-H "Authorization: Bearer <替换成你的 API Key>" \
101+
-d '{
102+
"model": "u-3d7a8e49da2a/test14b",
103+
"messages": [{"role": "user", "content": "Say this is a test!"}],
104+
"temperature": 0.7
105+
}'
106+
```
107+
108+
1. 现在让 Bob Translate 翻译一句话
109+
110+
![填写参数](./images/deep13.jpeg)
111+
112+
🎉 恭喜你,第三方应用 Bob Translate 已成功通过 API 调用了 d.run 中部署的 DeepSeek-R1-Distill-Qwen-14B 模型。
113+
以此类推,你可以将 d.run 中部署的 DeepSeek 模型挂接到任何第三方智能应用了。
355 KB
Loading
185 KB
Loading
182 KB
Loading
361 KB
Loading
189 KB
Loading
144 KB
Loading
202 KB
Loading
205 KB
Loading
744 KB
Loading

0 commit comments

Comments
 (0)