Skip to content

Commit

Permalink
Merge pull request #723 from chris-zilliz/v1.0.0-faq
Browse files Browse the repository at this point in the history
add faq_assign_gpu_zh_v1.0.0
  • Loading branch information
chris-zilliz authored Sep 29, 2021
2 parents 9ae0931 + 4b8d271 commit 68df5e8
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
20 changes: 20 additions & 0 deletions site/zh-CN/faq/operational_faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,26 @@ Milvus 是以 Docker 镜像形式发行的,是可以离线部署的:

PyMilvus v1.1.2 已支持指定服务器连接超时时间。

#### 如何为建立索引和检索分配GPU?

在/home/$USER/milvus/conf路径下的**server_config.yaml**文件中,你可以为建立索引以及检索分配GPU。如下代码所示:

```
gpu:
enable: true
cache_size: 10GB
gpu_search_threshold: 0
search_devices:
- gpu0
- gpu1
build_index_devices:
- gpu2
- gpu3
```
<div class="alert note">
gpu0, 1, 2, 3是分配给Docker容器的GPU中的前四个。
</div>

#### 仍有问题没有得到解答?

如果仍有其他问题,你可以:
Expand Down
17 changes: 17 additions & 0 deletions site/zh-CN/fragments/faq_assign_gpu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
在/home/$USER/milvus/conf路径下的**server_config.yaml**文件中,你可以为建立索引以及检索分配GPU。如下代码所示:

```
gpu:
enable: true
cache_size: 10GB
gpu_search_threshold: 0
search_devices:
- gpu0
- gpu1
build_index_devices:
- gpu2
- gpu3
```
<div class="alert note">
gpu0, 1, 2, 3是分配给Docker容器的GPU中的前四个。
</div>
5 changes: 4 additions & 1 deletion site/zh-CN/quick_start/install_milvus/milvus_docker-gpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ IVF 索引的 <code>nlist</code> 值需要根据具体的使用情况去设置
`nlist` 为 4096 和 `nprobe` 为 128 时,速度性能最佳。
</details>


<details>
<summary><font color="#4fc4f9">如何为建立索引和检索分配GPU?</font></summary>
{{fragments/faq_assign_gpu.md}}
</details>


## 接下来你可以
Expand Down

0 comments on commit 68df5e8

Please sign in to comment.