diff --git a/docs/userguide/mthreads-device/enable-mthreads-gpu-sharing.md b/docs/userguide/mthreads-device/enable-mthreads-gpu-sharing.md index b98eb3a3..e089bfb8 100644 --- a/docs/userguide/mthreads-device/enable-mthreads-gpu-sharing.md +++ b/docs/userguide/mthreads-device/enable-mthreads-gpu-sharing.md @@ -69,6 +69,6 @@ spec: :::note -Each unit of `sgpu-memory` represents 512 MB of device memory. More examples are available in the [examples/mthreads folder](https://github.com/Project-HAMi/HAMi/tree/master/examples/mthreads/). +Each unit of `sgpu-memory` represents 512 MiB of device memory. More examples are available in the [examples/mthreads folder](https://github.com/Project-HAMi/HAMi/tree/master/examples/mthreads/). ::: diff --git a/docs/userguide/mthreads-device/specify-device-memory-usage.md b/docs/userguide/mthreads-device/specify-device-memory-usage.md index 9398846f..66316626 100644 --- a/docs/userguide/mthreads-device/specify-device-memory-usage.md +++ b/docs/userguide/mthreads-device/specify-device-memory-usage.md @@ -3,11 +3,11 @@ title: Allocate device memory to container sidebar_label: Allocate device memory --- -Allocate a percentage size of device memory by specifying resources such as `mthreads.com/sgpu-memory`. Optional, each unit of `mthreads.com/sgpu-memory` equals 512 MiB of device memory. +Allocate device memory by specifying the `mthreads.com/sgpu-memory` resource. This field is optional. Each unit of `mthreads.com/sgpu-memory` represents 512 MiB of device memory. ```yaml resources: limits: mthreads.com/vgpu: 1 # requesting 1 GPU - mthreads.com/sgpu-memory: 32 # Each GPU contains 16G device memory + mthreads.com/sgpu-memory: 32 # 32 units x 512 MiB = 16 GiB of device memory ``` diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/userguide/mthreads-device/enable-mthreads-gpu-sharing.md b/i18n/zh/docusaurus-plugin-content-docs/current/userguide/mthreads-device/enable-mthreads-gpu-sharing.md index 03be64ad..31d46af5 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/userguide/mthreads-device/enable-mthreads-gpu-sharing.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/userguide/mthreads-device/enable-mthreads-gpu-sharing.md @@ -71,7 +71,7 @@ spec: :::note -每一单位的 sgpu-memory 代表 512M 的显存。 +每一单位的 sgpu-memory 代表 512MiB 的显存。 ::: diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/userguide/mthreads-device/specify-device-memory-usage.md b/i18n/zh/docusaurus-plugin-content-docs/current/userguide/mthreads-device/specify-device-memory-usage.md index 9f11b647..4e215d81 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/userguide/mthreads-device/specify-device-memory-usage.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/userguide/mthreads-device/specify-device-memory-usage.md @@ -4,11 +4,11 @@ sidebar_label: 指定显存 translated: true --- -通过指定诸如 `mthreads.com/sgpu-memory` 之类的资源来分配设备显存的百分比大小。可选项,每个 `mthreads.com/sgpu-memory` 单位等于 512M 的设备显存。 +通过指定 `mthreads.com/sgpu-memory` 资源来分配设备显存。可选项,每个 `mthreads.com/sgpu-memory` 单位代表 512MiB 的设备显存。 ```yaml resources: limits: mthreads.com/vgpu: 1 # 请求 1 个 GPU - mthreads.com/sgpu-memory: 32 # 每个 GPU 包含 16G 设备显存 + mthreads.com/sgpu-memory: 32 # 32 个单位 x 512MiB = 16 GiB 设备显存 ``` diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/userguide/mthreads-device/enable-mthreads-gpu-sharing.md b/i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/userguide/mthreads-device/enable-mthreads-gpu-sharing.md index f24d6141..31d46af5 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/userguide/mthreads-device/enable-mthreads-gpu-sharing.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/userguide/mthreads-device/enable-mthreads-gpu-sharing.md @@ -39,10 +39,10 @@ translated: true ::: -- 在安装 HAMi 时配置'devices.mthreads.enabled = true'参数 +- 在安装 HAMi 时配置参数 `devices.mthreads.enabled=true` ```bash -helm install hami hami-charts/hami --set scheduler.kubeScheduler.imageTag={your kubernetes version} --set devices.mthreads.enabled=true -n kube-system +helm install hami hami-charts/hami --set scheduler.kubeScheduler.image.tag={your kubernetes version} --set devices.mthreads.enabled=true -n kube-system ``` ## 运行 GPU 任务 @@ -71,7 +71,7 @@ spec: :::note -每一单位的 sgpu-memory 代表 512M 的显存。 +每一单位的 sgpu-memory 代表 512MiB 的显存。 ::: diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/userguide/mthreads-device/specify-device-memory-usage.md b/i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/userguide/mthreads-device/specify-device-memory-usage.md index 9f11b647..4e215d81 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/userguide/mthreads-device/specify-device-memory-usage.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/userguide/mthreads-device/specify-device-memory-usage.md @@ -4,11 +4,11 @@ sidebar_label: 指定显存 translated: true --- -通过指定诸如 `mthreads.com/sgpu-memory` 之类的资源来分配设备显存的百分比大小。可选项,每个 `mthreads.com/sgpu-memory` 单位等于 512M 的设备显存。 +通过指定 `mthreads.com/sgpu-memory` 资源来分配设备显存。可选项,每个 `mthreads.com/sgpu-memory` 单位代表 512MiB 的设备显存。 ```yaml resources: limits: mthreads.com/vgpu: 1 # 请求 1 个 GPU - mthreads.com/sgpu-memory: 32 # 每个 GPU 包含 16G 设备显存 + mthreads.com/sgpu-memory: 32 # 32 个单位 x 512MiB = 16 GiB 设备显存 ``` diff --git a/versioned_docs/version-v2.9.0/userguide/mthreads-device/enable-mthreads-gpu-sharing.md b/versioned_docs/version-v2.9.0/userguide/mthreads-device/enable-mthreads-gpu-sharing.md index 9a2b9378..e089bfb8 100644 --- a/versioned_docs/version-v2.9.0/userguide/mthreads-device/enable-mthreads-gpu-sharing.md +++ b/versioned_docs/version-v2.9.0/userguide/mthreads-device/enable-mthreads-gpu-sharing.md @@ -37,10 +37,10 @@ You can remove `mt-mutating-webhook` and `mt-gpu-scheduler` after installation ( ::: -- set the 'devices.mthreads.enabled = true' when installing hami +- Set `devices.mthreads.enabled=true` when installing HAMi ```bash -helm install hami hami-charts/hami --set scheduler.kubeScheduler.imageTag={your kubernetes version} --set devices.mthreads.enabled=true -n kube-system +helm install hami hami-charts/hami --set scheduler.kubeScheduler.image.tag={your kubernetes version} --set devices.mthreads.enabled=true -n kube-system ``` ## Running Mthreads jobs @@ -69,6 +69,6 @@ spec: :::note -Each unit of `sgpu-memory` represents 512 MB of device memory. More examples are available in the [examples/mthreads folder](https://github.com/Project-HAMi/HAMi/tree/master/examples/mthreads/). +Each unit of `sgpu-memory` represents 512 MiB of device memory. More examples are available in the [examples/mthreads folder](https://github.com/Project-HAMi/HAMi/tree/master/examples/mthreads/). ::: diff --git a/versioned_docs/version-v2.9.0/userguide/mthreads-device/specify-device-memory-usage.md b/versioned_docs/version-v2.9.0/userguide/mthreads-device/specify-device-memory-usage.md index 9398846f..66316626 100644 --- a/versioned_docs/version-v2.9.0/userguide/mthreads-device/specify-device-memory-usage.md +++ b/versioned_docs/version-v2.9.0/userguide/mthreads-device/specify-device-memory-usage.md @@ -3,11 +3,11 @@ title: Allocate device memory to container sidebar_label: Allocate device memory --- -Allocate a percentage size of device memory by specifying resources such as `mthreads.com/sgpu-memory`. Optional, each unit of `mthreads.com/sgpu-memory` equals 512 MiB of device memory. +Allocate device memory by specifying the `mthreads.com/sgpu-memory` resource. This field is optional. Each unit of `mthreads.com/sgpu-memory` represents 512 MiB of device memory. ```yaml resources: limits: mthreads.com/vgpu: 1 # requesting 1 GPU - mthreads.com/sgpu-memory: 32 # Each GPU contains 16G device memory + mthreads.com/sgpu-memory: 32 # 32 units x 512 MiB = 16 GiB of device memory ```