Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/userguide/nvidia-device/dynamic-mig-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
title: Enable dynamic MIG feature
---

import SupportedComponents, { Tag } from '@site/src/components/SupportedComponents';

<SupportedComponents>
<Tag href="../../get-started/deploy-with-helm.md" type="hami">HAMi</Tag>
</SupportedComponents>

HAMi now supports dynamic MIG using mig-parted to adjust MIG devices dynamically, including:

- **Dynamic MIG Instance Management**: Users no longer need to operate directly on GPU nodes or use commands like `nvidia-smi -i 0 -mig 1` to manage MIG instances. HAMi-device-plugin will handle this automatically.
Expand Down
9 changes: 9 additions & 0 deletions docs/userguide/nvidia-device/dynamic-resource-allocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ title: Dynamic Resource Allocation
translated: true
---

import SupportedComponents, { Tag, Requires } from '@site/src/components/SupportedComponents';

<SupportedComponents>
<Tag href="../../installation/how-to-use-hami-dra.md" type="hami-dra">HAMi-DRA</Tag>
</SupportedComponents>
<Requires>
<Tag href="../../installation/configure-cdi.md" type="cdi">CDI Support</Tag>
</Requires>

## Introduction

HAMi has supported K8s [DRA](https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/) (Dynamic Resource Allocation) on NVIDIA devices. By installing hami-k8s-dra-driver, your cluster scheduler can discover NVIDIA GPU devices on nodes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ title: 启用动态 MIG 功能
translated: true
---

import SupportedComponents, { Tag } from '@site/src/components/SupportedComponents';

<SupportedComponents>
<Tag href="../../get-started/deploy-with-helm.md" type="hami">HAMi</Tag>
</SupportedComponents>

## 介绍

**我们现在支持通过使用 mig-parted 动态调整 mig-devices 来支持 dynamic-mig**,包括:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ title: 动态资源分配
translated: true
---

import SupportedComponents, { Tag, Requires } from '@site/src/components/SupportedComponents';

<SupportedComponents>
<Tag href="../../installation/how-to-use-hami-dra.md" type="hami-dra">HAMi-DRA</Tag>
</SupportedComponents>
<Requires>
<Tag href="../../installation/configure-cdi.md" type="cdi">CDI 支持</Tag>
</Requires>

## 介绍

HAMi 已经在 NVIDIA 设备上支持了 K8s [DRA](https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/)(动态资源分配)功能。通过安装 hami-k8s-dra-driver 你的集群调度器可以发现节点上的 NVIDIA GPU 设备。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ title: 启用动态 MIG 功能
translated: true
---

import SupportedComponents, { Tag } from '@site/src/components/SupportedComponents';

<SupportedComponents>
<Tag href="../../get-started/deploy-with-helm.md" type="hami">HAMi</Tag>
</SupportedComponents>

## 介绍

**我们现在支持通过使用 mig-parted 动态调整 mig-devices 来支持 dynamic-mig**,包括:
Expand Down Expand Up @@ -89,7 +95,7 @@ nvidia:
memory: 24576
count: 1

- models: ["A100-SXM4-40GB", "A100-40GB-PCIe", "A100-PCIE-40GB", "A100-SXM4-40GB"]
- models: ["A100-SXM4-40GB", "A100-40GB-PCIe", "A100-PCIE-40GB"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same duplicated A100-SXM4-40GB is still in the zh v2.7.0, v2.5.1, v2.5.0 and v1.3.0 pages and in zh v2.9.0 developers/dynamic-mig.md. should they change in the same pass?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs say older versions are frozen snapshots, so I only touched v2.9.0
and I did not touch developers/ because #794 is already editing that whole file
But if you want, I can remove this fix so #794 handles it

allowedGeometries:
- name: 1g.5gb
memory: 5120
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ title: 动态资源分配
translated: true
---

import SupportedComponents, { Tag, Requires } from '@site/src/components/SupportedComponents';

<SupportedComponents>
<Tag href="../../installation/how-to-use-hami-dra.md" type="hami-dra">HAMi-DRA</Tag>
</SupportedComponents>
<Requires>
<Tag href="../../installation/configure-cdi.md" type="cdi">CDI 支持</Tag>
</Requires>

## 介绍

HAMi 已经在 NVIDIA 设备上支持了 K8s [DRA](https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/)(动态资源分配)功能。通过安装 hami-k8s-dra-driver 你的集群调度器可以发现节点上的 NVIDIA GPU 设备。
Expand Down
48 changes: 48 additions & 0 deletions src/components/SupportedComponents.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import React from "react";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import Link from "@docusaurus/Link";
import styles from "./SupportedComponents.module.css";

const TYPE_CLASSES = {
hami: styles.tagHami,
volcano: styles.tagVolcano,
"hami-dra": styles.tagHamiDra,
cdi: styles.tagCdi,
};

export function Tag({ href, type, children }) {
const className = `${styles.tag} ${TYPE_CLASSES[type] || styles.tagDefault}`;
if (href) {
const to = href.replace(/\.mdx?(#.*)?$/, "$1");
return (
<Link to={to} className={className}>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a markdown link would be checked by onBrokenLinks, but a Link to built here is not. what catches it when one of these pages moves?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI runs npm run check-links (linkinator) on every PR, which crawls all the generated HTML pages and catches any broken 404 links

{children}
</Link>
);
}
return <span className={className}>{children}</span>;
}

export function Requires({ children }) {
const { i18n } = useDocusaurusContext();
const label = i18n.currentLocale === "zh" ? "前置要求:" : "Requires:";

return (
<div className={styles.requiresContainer}>
<strong className={styles.label}>{label}</strong>
<div className={styles.tags}>{children}</div>
</div>
);
}

export default function SupportedComponents({ children }) {
const { i18n } = useDocusaurusContext();
const label = i18n.currentLocale === "zh" ? "支持组件/模式:" : "Supported Components:";

return (
<div className={styles.container}>
<strong className={styles.label}>{label}</strong>
<div className={styles.tags}>{children}</div>
</div>
);
}
61 changes: 61 additions & 0 deletions src/components/SupportedComponents.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.container {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
flex-wrap: wrap;
}

.requiresContainer {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 20px;
flex-wrap: wrap;
}

.label {
font-size: 0.9rem;
}

.tags {
display: inline-flex;
gap: 8px;
flex-wrap: wrap;
}

.tag {
display: inline-block;
padding: 3px 12px;
border-radius: 12px;
color: #fff !important;
font-weight: 600;
font-size: 0.82rem;
text-decoration: none !important;
transition: opacity 0.2s ease-in-out;
}

.tag:hover {
opacity: 0.9;
text-decoration: none !important;
}

.tagHami {
background-color: #065f46;
}

.tagVolcano {
background-color: #1e40af;
}

.tagHamiDra {
background-color: #5b21b6;
}

.tagCdi {
background-color: #075985;
}

.tagDefault {
background-color: #374151;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
title: Enable dynamic MIG feature
---

import SupportedComponents, { Tag } from '@site/src/components/SupportedComponents';

<SupportedComponents>
<Tag href="../../get-started/deploy-with-helm.md" type="hami">HAMi</Tag>
</SupportedComponents>

HAMi now supports dynamic MIG using mig-parted to adjust MIG devices dynamically, including:

- **Dynamic MIG Instance Management**: Users no longer need to operate directly on GPU nodes or use commands like `nvidia-smi -i 0 -mig 1` to manage MIG instances. HAMi-device-plugin will handle this automatically.
Expand Down Expand Up @@ -86,7 +92,7 @@ nvidia:
memory: 24576
count: 1

- models: ["A100-SXM4-40GB", "A100-40GB-PCIe", "A100-PCIE-40GB", "A100-SXM4-40GB"]
- models: ["A100-SXM4-40GB", "A100-40GB-PCIe", "A100-PCIE-40GB"]
allowedGeometries:
- name: 1g.5gb
memory: 5120
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ title: Dynamic Resource Allocation
translated: true
---

import SupportedComponents, { Tag, Requires } from '@site/src/components/SupportedComponents';

<SupportedComponents>
<Tag href="../../installation/how-to-use-hami-dra.md" type="hami-dra">HAMi-DRA</Tag>
</SupportedComponents>
<Requires>
<Tag href="../../installation/configure-cdi.md" type="cdi">CDI Support</Tag>
</Requires>

## Introduction

HAMi has supported K8s [DRA](https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/) (Dynamic Resource Allocation) on NVIDIA devices. By installing hami-k8s-dra-driver, your cluster scheduler can discover NVIDIA GPU devices on nodes.
Expand Down