Interactive Manifest Generator
Project HAMi supports GPU virtualization across a variety of hardware manufacturers, including NVIDIA, Cambricon, Hygon, Iluvatar, and Huawei. Each device requires specific Kubernetes resource keys in your container resources.limits to correctly allocate device memory and cores, and specific metadata.annotations to constrain to device types or UUIDs.
Use the interactive tool below to generate the exact YAML configuration needed for your use case. You can integrate the generated configuration directly into your deployment specifications (such as adding the resources to your spec.template.spec.containers section).
Resource Request Configuration
Generated YAML Manifest
Integrate this into your Kubernetes Pod or Deployment spec.
apiVersion: v1
kind: Pod
metadata:
name: hami-nvidia-pod
spec:
containers:
- name: hami-container
image: ubuntu:22.04
command: ["sleep", "infinity"]
resources:
limits:
nvidia.com/gpu: 1
nvidia.com/gpumem: 3000
Advanced Options
- Specific Device Type: If you have a heterogeneous cluster (e.g. A100s and V100s), you can specify which device model your pod should be scheduled on.
- Specific Device UUID: If you need to bind a pod to a specific physical device for performance profiling or debugging, you can provide its UUID.
Note: Not all vendors support core percentage or memory percentage scaling. The generator automatically adapts its options based on the selected device vendor's supported capabilities.