Skip to content
FossShelf
Home / Categories / For AI Engineers

HAMi

Heterogeneous GPU sharing and isolation for Kubernetes

Replaces —

5.01K starsApache-2.0last commit 15 Nov 2026
Screenshot of HAMi

Who it's for

LLM inference teams sharing accelerators

A platform team running dozens of small LLM inference replicas that each need less than one GPU's memory can colocate multiple replicas per device with hard memory isolation, cutting accelerator spend without sacrificing isolation guarantees.

workloads require a full GPU or more each

ML research clusters with mixed job sizes

Research infrastructure teams that host both large training runs and small interactive notebooks on the same cluster can use HAMi's bin-pack and spread policies to place small jobs in GPU fractions while reserving whole devices for training, all within one Kubernetes cluster.

cluster is dedicated to single-tenant large training jobs only

HPC and multi-vendor accelerator operators

Operators running heterogeneous fleets of NVIDIA GPUs, Cambricon MLUs, and other accelerators can manage allocation, isolation, and monitoring for all device types through a single HAMi deployment instead of per-vendor tooling.

infrastructure is homogeneous single-vendor GPU only with existing per-vendor tooling

Platform engineers reducing GPU sprawl

Infrastructure engineers accountable for accelerator costs can deploy HAMi to automatically pack fragmented AI workloads onto fewer GPUs, as quantified by the project's own benchmark showing a 2x reduction in devices used under equivalent load.

accelerator utilisation is already near capacity

The problem

Kubernetes allocates GPUs as indivisible whole-device units, so any workload that needs less than one GPU's full memory or compute still consumes the entire device. This leaves expensive accelerator hardware severely underutilized in AI infrastructure running mixed LLM, ML, and HPC jobs. HAMi solves this by slicing accelerators into fractions, enforcing hard runtime isolation between co-located workloads, and applying placement policies that pack or spread those fractions efficiently across the cluster.

How it works

GPU Slicing

HAMi divides a single physical GPU into fractions — 1/2, 1/4, or 1/N — and allocates those slices independently to different pods, maximising device utilisation without requiring special hardware partitioning support.

Hard Isolation at Runtime

Memory and compute quotas are enforced inside the container by the `hami-core` component at runtime, not just at scheduling time. Co-located workloads cannot exceed their allocated share even under burst conditions.

Heterogeneous Accelerator Management

A single HAMi deployment manages GPUs, NPUs, MLUs, and other accelerators from different vendors in one scheduling and monitoring workflow, avoiding per-vendor sidecars or separate device plugins.

Device Plugin and DRA Modes

HAMi runs in the classic Kubernetes Device Plugin mode or in the newer Dynamic Resource Allocation (DRA) mode, which delegates placement to `kube-scheduler` with a HAMi extender. DRA mode requires Kubernetes 1.34+ with the DRA Consumable Capacity feature gate and CDI enabled.

Advanced Scheduling Policies

Administrators can select bin-packing to minimise fragmentation, spread scheduling to increase resilience, or topology-aware policies for better placement of distributed AI workloads across the cluster.

Unified Monitoring and Observability

HAMi exposes consistent vGPU metrics — real-time memory and core utilisation, allocated device counts, allocation spread — across all supported device vendors through a single observability surface.

Features

  • GPU Slicing
  • Hard Isolation at Runtime
  • Heterogeneous Accelerator Management
  • Device Plugin and DRA Modes
  • Advanced Scheduling Policies
  • Unified Monitoring and Observability

How to install

# Install HAMi via Helm helm repo add hami-charts https://project-hami.github.io/HAMi/ helm install hami hami-charts/hami --namespace kube-system

Recommended for this setup

Strengths

  • CNCF Incubating maturity: HAMi is an Incubating project of the Cloud Native Computing Foundation and appears in both the CNCF Landscape and the CNAI Landscape, signalling community governance, documented APIs, and a defined release cadence (v2.10.0 at time of writing).
  • Kubernetes-native integration: HAMi works with standard Kubernetes APIs, Device Plugin, DRA, and CDI interfaces, so it fits into existing cluster tooling without custom resource-manager sidecars or non-standard admission paths.
  • Measured utilisation gains: The project's own before-and-after benchmarks show GPU count dropping from 4 to 2 and utilisation rising from 50% to 100% under the same workload set, providing a concrete, quantified case for adoption.
  • Single workflow for heterogeneous hardware: Teams running mixed GPU, NPU, and MLU fleets manage all accelerators through one HAMi deployment rather than maintaining separate scheduling and monitoring stacks per vendor.

Trade-offs

  • DRA mode requires Kubernetes 1.34+: The newer DRA-based scheduling path requires Kubernetes 1.34 or later with the DRA Consumable Capacity feature gate enabled and CDI support in the container runtime. Clusters that cannot upgrade to that version are limited to the Device Plugin mode.
  • Operational complexity over whole-GPU allocation: Introducing fractional GPU sharing adds components — webhook, scheduler extender or DRA driver, in-container hami-core — that must be operated, upgraded, and debugged. Teams with simple, single-tenant clusters where whole-GPU allocation works fine may not need this complexity.
  • Not designed for non-Kubernetes environments: HAMi is explicitly Kubernetes-native. Organisations running AI workloads directly on bare-metal or in non-Kubernetes container runtimes cannot use it without adopting Kubernetes first.

Tech stack

Languages
Go, Shell, Go Template, Python, Makefile, Dockerfile
Frameworks
—
Databases
—
Tooling
Kubernetes

FAQ

Does HAMi require special GPU hardware like NVIDIA MIG?

No. HAMi implements GPU slicing in software through its in-container `hami-core` component, which enforces memory and compute isolation at runtime. It does not require hardware-level partitioning features such as NVIDIA MIG, though it can coexist with them.

What is the difference between Device Plugin mode and DRA mode?

In Device Plugin mode, HAMi's own scheduler and webhook handle admission and placement — this is the classic HAMi path and works on existing Kubernetes versions. In DRA mode, HAMi acts as a DRA driver and delegates scheduling to `kube-scheduler` with a HAMi extender. DRA mode requires Kubernetes 1.34 or later with the DRA Consumable Capacity feature gate and CDI enabled in the container runtime.

Which accelerator vendors does HAMi support?

HAMi supports GPUs, NPUs, and MLUs from multiple vendors in a single workflow. The full supported-devices matrix is maintained in the project's documentation at project-hami.io.

Is HAMi production-ready?

HAMi is a CNCF Incubating project at v2.10.0 and lists adopter organisations that are evaluating or running it in production environments. CNCF Incubating status indicates the project has met CNCF's criteria for growing adoption, a defined governance model, and a documented release process.

How does HAMi affect existing Kubernetes workloads?

Workloads that do not request fractional GPU resources are unaffected. HAMi's webhook only intervenes when a pod requests a vGPU resource. Existing whole-GPU workloads continue to schedule normally alongside HAMi-managed fractional workloads.

Similar tools

More in AI Engineers