Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
Signed-off-by: limengxuan <[email protected]>
  • Loading branch information
archlitchi committed Oct 10, 2024
1 parent 5fd73ed commit 6923746
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

基于[HAMi](https://github.com/Project-HAMi/HAMi)调度机制的ascend device plugin。

支持基于显存调度,显存是基于昇腾的虚拟化模板来切分的,会找到满足显存需求的最小模板来作为容器的显存。
支持基于显存调度,显存是基于昇腾的虚拟化模板来切分的,会找到满足显存需求的最小模板来作为容器的显存。模版的具体信息参考[配置模版](./config.yaml)

启动容器依赖[ascend-docker-runtime](https://gitee.com/ascend/ascend-docker-runtime)

Expand All @@ -24,7 +24,13 @@ docker buildx build -t $IMAGE_NAME .

## 部署

由于和HAMi的一些依赖关系,部署集成在HAMi的部署中,修改HAMi chart values中的以下部分即可。
由于和HAMi的一些依赖关系,部署集成在HAMi的部署中,指定以下字段:

```
devices.ascend.enabled=true
```

相关的每一种NPU设备的资源名,参考values.yaml中的以下字段,目前本组件支持3种型号的NPU切片(310p,910A,910B)若不需要修改的话可以直接使用以下的默认配置:

```yaml
devices:
Expand All @@ -45,6 +51,12 @@ devices:
- huawei.com/Ascend310P-memory
```
最后使用以下指令部署ascend-device-plugin
```bash
kubectl apply -f ascend-device-plugin.yaml
```

## 使用

```yaml
Expand Down

0 comments on commit 6923746

Please sign in to comment.