-
Notifications
You must be signed in to change notification settings - Fork 316
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
9 changed files
with
138 additions
and
69 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
id: milvus_versions.md | ||
--- | ||
|
||
# Milvus Versions | ||
|
||
## Overview | ||
|
||
Milvus runs on machines with or without GPU. To use Milvus on machines without a GPU, install CPU-only Milvus. Otherwise, if you have CUDA-enabled GPUs in your computer, it is recommended that you use GPU-enabled Milvus to achieve better search performance for larger queries. | ||
|
||
|
||
|
||
|
||
## CPU-only Milvus vs. GPU-enabled Milvus | ||
|
||
In Milvus, a vector search includes two separate processes: index building and search. | ||
|
||
- For GPU-enabled Milvus, these two processes can run concurrently, which facilitates more efficient query, especially for incremental data. | ||
- For CPU-only Milvus, search computation can only be executed after index building is completed, which makes it more suitable for static data. | ||
|
||
|
||
### Index types in CPU-only Milvus | ||
|
||
<div class="table-wrapper" markdown="block"> | ||
|
||
| Name | Index building with CPU | Search with CPU | Float vector support | Binary vector support | | ||
| -------- | ----------------- | -------------- | -------------- | ---------------- | | ||
| FLAT | - | ✔️ | ✔️ | ✔️ | | ||
| IVF_FLAT | ✔️ | ✔️ | ✔️ | ✔️ | | ||
| IVF_SQ8 | ✔️ | ✔️ | ✔️ | ❌ | | ||
| IVF_PQ | ✔️ | ✔️ | ✔️ | ❌ | | ||
| RNSG | ✔️ | ✔️ | ✔️ | ❌ | | ||
| HNSW | ✔️ | ✔️ | ✔️ | ❌ | | ||
| ANNOY | ✔️ | ✔️ | ✔️ | ❌ | | ||
|
||
</div> | ||
|
||
### Index types in Milvus with GPU support | ||
|
||
<div class="table-wrapper" markdown="block"> | ||
|
||
| Name | Index building with CPU | Search with CPU | Search with GPU | Search with GPU | Float vector support | Binary vector support | | ||
| ---------- | ----------------------- | --------------- | ---------------------------------------------------------------- | -------------------------------------------------------- | -------------------- | --------------------- | | ||
| FLAT | - | ✔️ | - | ✔️<br>(Only Supports floating point vectors) | ✔️ | ✔️ | | ||
| IVF_FLAT | ✔️ | ✔️ | ✔️<br>(Only Supports floating point vectors) | ✔️<br>(Only Supports floating point vectors) | ✔️ | ✔️ | | ||
| IVF_SQ8 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❌ | | ||
| IVF_SQ8H | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❌ | | ||
| IVF_PQ | ✔️ | ✔️ | ✔️<br>(Only Supports GPU index for Euclidean distance) | ✔️<br>(Only Supports GPU search for Euclidean distance) | ✔️ | ❌ | | ||
| RNSG | ✔️ | ✔️ | ❌ | ❌ | ✔️ | ❌ | | ||
| HNSW | ✔️ | ✔️ | ❌ | ❌ | ✔️ | ❌ | | ||
| ANNOY | ✔️ | ✔️ | ❌ | ❌ | ✔️ | ❌ | | ||
|
||
</div> | ||
|
||
<div class="alert note"> | ||
<ul> | ||
<li>FLAT index does not need index building.</li> | ||
<li>For indexes supporting both CPU search and GPU search, you can create or search them using different devices, either CPU or GPU. For example, you can create an index using CPU and conduct a vector search using GPU.</li> | ||
<li>Index building parameters and search parameters vary with index type. See <a href="milvus_operation.md">Milvus Operations</a> for more information.</li> | ||
</ul> | ||
</div> |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
id: milvus_versions.md | ||
--- | ||
|
||
# 版本比较 | ||
|
||
## 概述 | ||
|
||
Milvus 提供两个发行版本:CPU 版本和 GPU 版本。CPU 版本仅支持 CPU 运算。GPU 版本在 CPU 版本的基础上对部分功能进行了 GPU 加速。如果你的计算机上安装了支持 CUDA 功能的 GPU 设备,建议你安装 Milvus 的 GPU 版本以获取针对海量数据的更优的查询性能。 | ||
|
||
## 版本比较 | ||
|
||
Milvus 中的向量搜索包含但不限于这两个独立的部分:创建索引过程和搜索计算过程。 | ||
|
||
- GPU 版 Milvus支持同时进行索引创建和搜索计算以提高查询效率,特别适合动态增加的数据。 | ||
- CPU 版 Milvus 仅支持搜索计算在创建索引结束后进行,更适合静态数据。 | ||
|
||
### CPU 版本 Milvus 支持的索引类型 | ||
|
||
<div class="table-wrapper" markdown="block"> | ||
|
||
| 索引类型 | CPU 建索引 | CPU 搜索 | 浮点型向量 | 二值型向量 | | ||
| ---------- | ---------------- | ------------ | ------------- | ------------- | | ||
| FLAT | N/A | ✔️ | ✔️ | ✔️ | | ||
| IVF_FLAT | ✔️ | ✔️ | ✔️ | ✔️ | | ||
| IVF_SQ8 | ✔️ | ✔️ | ✔️ | ❌ | | ||
| IVF_PQ | ✔️ | ✔️ | ✔️ | ❌ | | ||
| RNSG | ✔️ | ✔️ | ✔️ | ❌ | | ||
| HNSW | ✔️ | ✔️ | ✔️ | ❌ | | ||
| ANNOY | ✔️ | ✔️ | ✔️ | ❌ | | ||
|
||
</div> | ||
|
||
### GPU 版本 Milvus 支持的索引类型 | ||
|
||
<div class="table-wrapper" markdown="block"> | ||
|
||
| 索引类型 | CPU 建索引 | CPU 搜索 | GPU 建索引 | GPU 搜索 | 浮点型向量 | 二值型向量 | | ||
| ---------- | ---------------- | ------------ | ------------------ | ----------------- | ------------- | ------------ | | ||
| FLAT | N/A | ✔️ | N/A | ✔️<br>(仅支持浮点型向量) | ✔️ | ✔️ | | ||
| IVF_FLAT | ✔️ | ✔️ | ✔️<br>(仅支持浮点型向量) | ✔️<br>(仅支持浮点型向量) | ✔️ | ✔️ | | ||
| IVF_SQ8 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❌ | | ||
| IVF_SQ8H | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❌ | | ||
| IVF_PQ | ✔️ | ✔️ | ✔️<br>(仅对欧氏距离支持 GPU 索引) | ✔️<br>(仅对欧氏距离支持 GPU 搜索) | ✔️ | ❌ | | ||
| RNSG | ✔️ | ✔️ | ❌ | ❌ | ✔️ | ❌ | | ||
| HNSW | ✔️ | ✔️ | ❌ | ❌ | ✔️ | ❌ | | ||
| ANNOY | ✔️ | ✔️ | ❌ | ❌ | ✔️ | ❌ | | ||
|
||
</div> | ||
|
||
<div class="alert note"> | ||
<ul> | ||
<li>FLAT 类型不需要建索引。</li> | ||
<li>对于那些 CPU 和 GPU 同时支持的索引,Milvus 支持在创建和搜索时使用不同的设备。比如,你可以在 GPU 上创建索引后再在 CPU 上查询,也可以在 CPU 上创建索引后再在 GPU 上查询。</li> | ||
<li>对于不同索引类型,创建索引的参数和搜索参数也有所不同。详细信息请参考 <a href="milvus_operation.md">Milvus 基本操作</a>。</li> | ||
</ul> | ||
</div> |
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