diff --git a/.codegraph/codegraph.db b/.codegraph/codegraph.db new file mode 100644 index 00000000..9f1807ae Binary files /dev/null and b/.codegraph/codegraph.db differ diff --git a/docs/key-features/device-sharing.md b/docs/key-features/device-sharing.md index bfef06bb..11c6dbc7 100644 --- a/docs/key-features/device-sharing.md +++ b/docs/key-features/device-sharing.md @@ -15,7 +15,7 @@ HAMi's device sharing enables: - **Non-intrusive control:** Requires zero changes to existing programs while managing resource allocation. - **Dynamic MIG support:** Supports on-the-fly MIG adjustments using mig-parted for dynamic-mig. -![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/common/key-features/example.png) +![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/en/key-features/example.svg) ## Benefits {#benefits} diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/key-features/device-sharing.md b/i18n/zh/docusaurus-plugin-content-docs/current/key-features/device-sharing.md index dd56b2a0..a4a12c90 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/key-features/device-sharing.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/key-features/device-sharing.md @@ -16,7 +16,7 @@ HAMi 的设备共享能力包括: - **无侵入式控制:** 无需修改现有程序即可实现资源分配管理。 - **动态 MIG 支持:** 支持通过 MIG 切片动态调整 MIG,实现动态 MIG 切片能力。 -![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/common/key-features/example.png) +![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/zh/key-features/example.svg) ## 优势 {#benefits} diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-v1.3.0/key-features/device-sharing.md b/i18n/zh/docusaurus-plugin-content-docs/version-v1.3.0/key-features/device-sharing.md index 6150aa85..7f24ae60 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-v1.3.0/key-features/device-sharing.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-v1.3.0/key-features/device-sharing.md @@ -7,4 +7,4 @@ title: Device sharing - Permits partial device allocation by specifying device core usage. - Requires zero changes to existing programs. -![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/common/key-features/example.png) +![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/zh/key-features/example.svg) diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-v2.5.0/key-features/device-sharing.md b/i18n/zh/docusaurus-plugin-content-docs/version-v2.5.0/key-features/device-sharing.md index e78ac143..f87d01a7 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-v2.5.0/key-features/device-sharing.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-v2.5.0/key-features/device-sharing.md @@ -14,7 +14,7 @@ HAMi 提供了强大的设备共享功能,允许多个任务共享同一个 GP - **无侵入控制:** 不需要对现有程序进行任何更改就能控制资源分配。 - **动态 MIG 支持:** 支持通过 mig-parted 动态调整 MIG 设备来支持 dynamic-mig。 -![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/common/key-features/example.png) +![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/zh/key-features/example.svg) 通过这些特性,HAMi 确保了在共享设备的情况下,每个任务的资源共享和安全性。 这使得各组织能够更灵活、高效地利用其 AI 计算基础设施,满足不同任务的资源需求。 diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-v2.5.1/key-features/device-sharing.md b/i18n/zh/docusaurus-plugin-content-docs/version-v2.5.1/key-features/device-sharing.md index d1df12b9..47f5a3fd 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-v2.5.1/key-features/device-sharing.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-v2.5.1/key-features/device-sharing.md @@ -8,4 +8,4 @@ translated: true - 通过指定设备核心使用情况允许部分设备分配。 - 不需要对现有程序进行任何更改。 -![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/common/key-features/example.png) +![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/zh/key-features/example.svg) diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-v2.6.0/key-features/device-sharing.md b/i18n/zh/docusaurus-plugin-content-docs/version-v2.6.0/key-features/device-sharing.md index 4493e32f..a30ab6e9 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-v2.6.0/key-features/device-sharing.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-v2.6.0/key-features/device-sharing.md @@ -9,4 +9,4 @@ translated: true - 无需对现有程序进行任何修改 - 支持动态 MIG 切片能力,样例 -![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/common/key-features/example.png) +![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/zh/key-features/example.svg) diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-v2.7.0/key-features/device-sharing.md b/i18n/zh/docusaurus-plugin-content-docs/version-v2.7.0/key-features/device-sharing.md index 4493e32f..a30ab6e9 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-v2.7.0/key-features/device-sharing.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-v2.7.0/key-features/device-sharing.md @@ -9,4 +9,4 @@ translated: true - 无需对现有程序进行任何修改 - 支持动态 MIG 切片能力,样例 -![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/common/key-features/example.png) +![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/zh/key-features/example.svg) diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-v2.8.0/key-features/device-sharing.md b/i18n/zh/docusaurus-plugin-content-docs/version-v2.8.0/key-features/device-sharing.md index 4493e32f..a30ab6e9 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-v2.8.0/key-features/device-sharing.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-v2.8.0/key-features/device-sharing.md @@ -9,4 +9,4 @@ translated: true - 无需对现有程序进行任何修改 - 支持动态 MIG 切片能力,样例 -![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/common/key-features/example.png) +![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/zh/key-features/example.svg) diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/key-features/device-sharing.md b/i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/key-features/device-sharing.md index dd56b2a0..a4a12c90 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/key-features/device-sharing.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/key-features/device-sharing.md @@ -16,7 +16,7 @@ HAMi 的设备共享能力包括: - **无侵入式控制:** 无需修改现有程序即可实现资源分配管理。 - **动态 MIG 支持:** 支持通过 MIG 切片动态调整 MIG,实现动态 MIG 切片能力。 -![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/common/key-features/example.png) +![HAMi 设备共享示例,展示多个任务共享单个 GPU](/img/docs/zh/key-features/example.svg) ## 优势 {#benefits} diff --git a/static/img/docs/common/key-features/example.png b/static/img/docs/common/key-features/example.png deleted file mode 100644 index 0f407f4d..00000000 Binary files a/static/img/docs/common/key-features/example.png and /dev/null differ diff --git a/static/img/docs/en/key-features/example.svg b/static/img/docs/en/key-features/example.svg new file mode 100644 index 00000000..40e8d885 --- /dev/null +++ b/static/img/docs/en/key-features/example.svg @@ -0,0 +1,378 @@ + + + + + + + + + + + + + + + + + + diagram-compacted + + Layer 1 + + + + + + + + + + + + + User A + + + + + + + + + + + + + + + User B + + + + + + R + equest + 2 GPUs + 10G per GPU + + + + + GPU + + + + + GPU + + + + + A Request B + + + + + A Request 1 + + + + + + + GPU + + + + + GPU + + + + + B Request 1 + + + + + B Request 2 + + + + + + + Request 2 GPUs + 20G per GPU + + + + GPU + + + + + GPU + + + + + GPU + + + + + GPU + + + + + A Request B + + + + + A Request 1 + + + + + B Request 1 + + + + + B Request 2 + + + + + GPU Label + + + + GPU 0 + + + + GPU Label + + + + GPU 1 + + + + GPU Label + + + + GPU 2 + + + + GPU Label + + + + GPU 3 + + + + GPU + + + + + GPU + + + + + GPU + + + + + GPU + + + + + A Request B + + + + + A Request 1 + + + + + B Request 1 + + + + + B Request 2 + + + + + GPU Label + + + + GPU 0 + + + + GPU Label + + + + GPU 1 + + + + GPU Label + + + + GPU 2 + + + + GPU Label + + + + GPU 3 + + + + + + + Available + + + + + + + Available + + + + + Shared with isolation + + + + + Available + + + + + Whole GPU occupied + + + + + Fragmented/Wasted + + + + + Without HAMi + + + + + With HAMi + + + + + + + + + + Workload A + + + + + + + + + + + Workload B + + + + + + + + + + + Available + + + + + + Node: 4 x V1000 (32G) + + + + + Node: 4 x V1000 (32G) + + + + + + + + + + + + + Wasted + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/img/docs/zh/key-features/example.svg b/static/img/docs/zh/key-features/example.svg new file mode 100644 index 00000000..b0067200 --- /dev/null +++ b/static/img/docs/zh/key-features/example.svg @@ -0,0 +1,390 @@ + + + + + + + + + + + + + + + + + + diagram-compacted-zh + + Layer 1 + + + + + + + + + + + + + 用户 + A + + + + + + + + + + + + + + + 用户 + B + + + + + + 请求 + 2 + + GPU + 每 GPU + 10G + + + + + GPU + + + + + GPU + + + + + A Request B + + + + + A Request 1 + + + + + + + GPU + + + + + GPU + + + + + B Request 1 + + + + + B Request 2 + + + + + + + 请求 + 2 + + GPU + 每 GPU 20G + + + + GPU + + + + + GPU + + + + + GPU + + + + + GPU + + + + + A Request B + + + + + A Request 1 + + + + + B Request 1 + + + + + B Request 2 + + + + + GPU Label + + + + GPU 0 + + + + GPU Label + + + + GPU 1 + + + + GPU Label + + + + GPU 2 + + + + GPU Label + + + + GPU 3 + + + + GPU + + + + + GPU + + + + + GPU + + + + + GPU + + + + + A Request B + + + + + A Request 1 + + + + + B Request 1 + + + + + B Request 2 + + + + + GPU Label + + + + GPU 0 + + + + GPU Label + + + + GPU 1 + + + + GPU Label + + + + GPU 2 + + + + GPU Label + + + + GPU 3 + + + + + + + 可用 + + + + + + + 可用 + + + + + 隔离共享 + + + + + 可用 + + + + + 全部 + GPU + 被占用 + + + + + 碎片化/浪费 + + + + + 未使用 HAMi + + + + + 使用 + HAMi + + + + + + + + + + 工作负载 + A + + + + + + + + + + + 工作负载 + B + + + + + + + + + + + 可用 + + + + + + Node: 4 x V1000 (32G) + + + + + Node: 4 x V1000 (32G) + + + + + + + + + + + + + 被浪费 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/versioned_docs/version-v1.3.0/key-features/device-sharing.md b/versioned_docs/version-v1.3.0/key-features/device-sharing.md index 89e7d288..a8a11055 100644 --- a/versioned_docs/version-v1.3.0/key-features/device-sharing.md +++ b/versioned_docs/version-v1.3.0/key-features/device-sharing.md @@ -7,4 +7,4 @@ title: Device sharing - Permits partial device allocation by specifying device core usage. - Requires zero changes to existing programs. -![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/common/key-features/example.png) +![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/en/key-features/example.svg) diff --git a/versioned_docs/version-v2.4.1/key-features/device-sharing.md b/versioned_docs/version-v2.4.1/key-features/device-sharing.md index d3bbd398..197b20e7 100644 --- a/versioned_docs/version-v2.4.1/key-features/device-sharing.md +++ b/versioned_docs/version-v2.4.1/key-features/device-sharing.md @@ -7,4 +7,4 @@ title: Device sharing - Permits partial device allocation by specifying device core usage. - Requires zero changes to existing programs. -![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/common/key-features/example.png) \ No newline at end of file +![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/en/key-features/example.svg) \ No newline at end of file diff --git a/versioned_docs/version-v2.5.0/key-features/device-sharing.md b/versioned_docs/version-v2.5.0/key-features/device-sharing.md index d3bbd398..197b20e7 100644 --- a/versioned_docs/version-v2.5.0/key-features/device-sharing.md +++ b/versioned_docs/version-v2.5.0/key-features/device-sharing.md @@ -7,4 +7,4 @@ title: Device sharing - Permits partial device allocation by specifying device core usage. - Requires zero changes to existing programs. -![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/common/key-features/example.png) \ No newline at end of file +![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/en/key-features/example.svg) \ No newline at end of file diff --git a/versioned_docs/version-v2.5.1/key-features/device-sharing.md b/versioned_docs/version-v2.5.1/key-features/device-sharing.md index 08e75b99..730c583f 100644 --- a/versioned_docs/version-v2.5.1/key-features/device-sharing.md +++ b/versioned_docs/version-v2.5.1/key-features/device-sharing.md @@ -14,7 +14,7 @@ HAMi's device sharing enables: - **Non-intrusive control:** Requires zero changes to existing programs while managing resource allocation. - **Dynamic MIG support:** Supports on-the-fly MIG adjustments using mig-parted for dynamic-mig. -![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/common/key-features/example.png) +![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/en/key-features/example.svg) By leveraging these features, HAMi enhances resource efficiency and security in shared-device environments. Organizations can optimize their AI infrastructure for greater flexibility and performance while meeting diverse computational demands. diff --git a/versioned_docs/version-v2.6.0/key-features/device-sharing.md b/versioned_docs/version-v2.6.0/key-features/device-sharing.md index 08e75b99..730c583f 100644 --- a/versioned_docs/version-v2.6.0/key-features/device-sharing.md +++ b/versioned_docs/version-v2.6.0/key-features/device-sharing.md @@ -14,7 +14,7 @@ HAMi's device sharing enables: - **Non-intrusive control:** Requires zero changes to existing programs while managing resource allocation. - **Dynamic MIG support:** Supports on-the-fly MIG adjustments using mig-parted for dynamic-mig. -![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/common/key-features/example.png) +![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/en/key-features/example.svg) By leveraging these features, HAMi enhances resource efficiency and security in shared-device environments. Organizations can optimize their AI infrastructure for greater flexibility and performance while meeting diverse computational demands. diff --git a/versioned_docs/version-v2.7.0/key-features/device-sharing.md b/versioned_docs/version-v2.7.0/key-features/device-sharing.md index 19797b9e..f9d53796 100644 --- a/versioned_docs/version-v2.7.0/key-features/device-sharing.md +++ b/versioned_docs/version-v2.7.0/key-features/device-sharing.md @@ -16,7 +16,7 @@ HAMi's device sharing enables: - **Non-intrusive control:** Requires zero changes to existing programs while managing resource allocation. - **Dynamic MIG support:** Supports on-the-fly MIG adjustments using mig-parted for dynamic-mig. -![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/common/key-features/example.png) +![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/en/key-features/example.svg) ## Benefits {#benefits} diff --git a/versioned_docs/version-v2.8.0/key-features/device-sharing.md b/versioned_docs/version-v2.8.0/key-features/device-sharing.md index f9c48a0e..e3daed85 100644 --- a/versioned_docs/version-v2.8.0/key-features/device-sharing.md +++ b/versioned_docs/version-v2.8.0/key-features/device-sharing.md @@ -16,7 +16,7 @@ HAMi's device sharing enables: - **Non-intrusive control:** Requires zero changes to existing programs while managing resource allocation. - **Dynamic MIG support:** Supports on-the-fly MIG adjustments using mig-parted for dynamic-mig. -![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/common/key-features/example.png) +![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/en/key-features/example.svg) ## Benefits {#benefits} diff --git a/versioned_docs/version-v2.9.0/key-features/device-sharing.md b/versioned_docs/version-v2.9.0/key-features/device-sharing.md index bfef06bb..11c6dbc7 100644 --- a/versioned_docs/version-v2.9.0/key-features/device-sharing.md +++ b/versioned_docs/version-v2.9.0/key-features/device-sharing.md @@ -15,7 +15,7 @@ HAMi's device sharing enables: - **Non-intrusive control:** Requires zero changes to existing programs while managing resource allocation. - **Dynamic MIG support:** Supports on-the-fly MIG adjustments using mig-parted for dynamic-mig. -![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/common/key-features/example.png) +![HAMi device sharing example showing multiple tasks sharing a single GPU](/img/docs/en/key-features/example.svg) ## Benefits {#benefits}