Module 3: RHOAI Hardware Profiles

Hardware Profiles in Red Hat OpenShift AI define the compute resources available for workbenches and model serving. In this workshop environment, they connect GPU reservations from the booking app to the RHOAI workbench experience — when you reserve a GPU, a corresponding HardwareProfile appears so you can launch a workbench with that GPU type.

This is where GPU as a Service meets Data Science: you reserve GPU capacity through the booking app, and the reservation automatically surfaces as a Hardware Profile that data scientists select when launching workbenches. The data scientist doesn’t need to know about Kueue, ClusterQueues, or Cohorts — they just pick a profile and get a GPU-enabled notebook.

In this module, you’ll create a reservation, explore the Hardware Profiles it generates, launch a workbench with a reserved GPU, and verify GPU access from inside the notebook environment.

Learning objectives

By the end of this module, you’ll be able to:

  • Create a GPU reservation and inspect the Hardware Profiles it generates

  • Understand how profiles map to Kueue ClusterQueues and ResourceFlavors

  • Launch an RHOAI workbench using a reserved GPU Hardware Profile

  • Verify GPU access from inside a Data Science workbench using nvidia-smi

  • Explain the relationship between bookings, profiles, and scheduling

How Hardware Profiles connect to Kueue

The reservation sync creates Hardware Profiles with specific resource limits that match the Kueue queue configuration:

Hardware Profile GPU Resource CPU Memory

unreserved-gpu

1x nvidia.com/gpu

2

8Gi

unreserved-mig-71gb

1x nvidia.com/mig-3g.71gb

2

8Gi

unreserved-mig-35gb

1x nvidia.com/mig-2g.35gb

1

4Gi

unreserved-mig-18gb

1x nvidia.com/mig-1g.18gb

1

4Gi

default-profile

none (CPU only)

2

8Gi

When you make a reservation through the booking app, additional per-user profiles are created that point to your reserved ClusterQueue.

Exercise 1: Reserve GPUs and MIG slices, inspect the Hardware Profiles

We cleaned up all resources at the end of Module 2, so we need fresh GPU reservations. This time we’ll reserve a mix of resource types using bulk booking to see how the booking app generates a separate Hardware Profile for each GPU resource type.

Acting as: user1
Log in to the OpenShift Console at https://console-openshift-console.apps.cluster.example.com with username user1 and password %password%.

Create a bulk reservation

  1. Navigate to GPU Booking > Bookings in the console menu.

  2. Select today’s date in the calendar.

  3. Right-click on the calendar to open the bulk booking dialog.

  4. Reserve the following resources:

    Resource type Count

    GB200 NVL Full GPU

    8

    MIG 3g.93gb

    4

    MIG 1g.23gb

    4

  5. Add a description (e.g., "Module 3 — Hardware Profiles exercise") and click Book.

    The calendar should now show red slots across three resource type rows. The Reservation Sync runs — once it processes your booking, it creates a per-user ClusterQueue, LocalQueue, and a Hardware Profile for each reserved resource type in your namespace.

    GPU bulk booking

Check the Hardware Profiles

Acting as: user1
Log in to the OpenShift CLI:

oc login --insecure-skip-tls-verify $(oc whoami --show-server) -u user1 -p %password%
  1. List Hardware Profiles in your namespace:

    oc -n user-user1 get hardwareprofiles

    You should see five reserved profiles — one for the full GPU and one for each MIG slice size:

    Hardware Profile GPU resource

    reserved-gpu

    nvidia.com/gpu

    reserved-mig-189gb

    nvidia.com/mig-7g.189gb

    reserved-mig-93gb

    nvidia.com/mig-3g.93gb

    reserved-mig-47gb

    nvidia.com/mig-2g.47gb

    reserved-mig-23gb

    nvidia.com/mig-1g.23gb

    The booking app creates a profile for every MIG slice size defined in the GPU topology, not just the ones you explicitly reserved. This means data scientists see the full range of GPU partition options when creating a workbench.

  2. Inspect the reserved GPU profile:

    oc -n user-user1 get hardwareprofile reserved-gpu -o yaml

    Note that the profile specifies:

    • GPU resource limits matching minCount:1, maxCount: 8 full GPU (nvidia.com/gpu identifier)

    • CPU and memory limits calculated as a share of the total node resources

    • A spec.scheduling.kueue.localQueueName: reserved annotation that targets your user-specific LocalQueue

  3. Compare with the MIG profile:

    oc -n user-user1 get hardwareprofile reserved-mig-23gb -o yaml

    The MIG profile requests a smaller GPU partition (nvidia.com/mig-1g.23gb: 1). A data scientist choosing this profile gets a MIG slice instead of a full GPU — useful for inference or lightweight training tasks that don’t need an entire GPU.

  4. Verify all reserved profiles point to the same reserved LocalQueue:

    oc -n user-user1 get hardwareprofiles -o custom-columns=\
    NAME:.metadata.name,\
    QUEUE:.spec.scheduling.kueue.localQueueName

    All reserved profiles should show reserved as their queue. This is what ties the Hardware Profile selection in the RHOAI dashboard back to your protected Kueue quota.

Verify

✓ Bulk reservation created for full GPUs and MIG slices
✓ Five reserved-* HardwareProfiles exist — one per GPU resource type
✓ Full GPU and MIG profiles have different resource limits
✓ All reserved profiles target the same reserved LocalQueue

Exercise 2: Explore default Hardware Profiles

Acting as: admin
Log in to the OpenShift CLI:

oc login --insecure-skip-tls-verify $(oc whoami --show-server) -u admin -p %password%
  1. List all Hardware Profiles across namespaces:

    oc get hardwareprofiles -A

    You should see multiple Hardware Profiles in the redhat-ods-applications namespace as well as the user-user1 namespace.

  2. Inspect the unreserved GPU profile:

    oc -n redhat-ods-applications get hardwareprofile unreserved-gpu -o yaml

    Note the spec.resources section showing CPU, memory, and GPU limits.

  3. Compare with the default (CPU-only) profile:

    oc -n redhat-ods-applications get hardwareprofile cpu-only -o yaml

    The cpu-only profile has no GPU resources. It is used for CPU-only workbenches.

Verify

✓ Multiple Hardware Profiles exist per namespace
✓ GPU profiles include nvidia.com/gpu or MIG resource limits
✓ The cpu-only profile has no GPU resources and is used for CPU-only workbenches

Exercise 3: Launch a workbench with the reserved GPU profile

Acting as: user1

This is where GPU as a Service connects to the Data Science workflow. Your GPU reservation created a reserved-gpu Hardware Profile — now you’ll use it to launch a workbench with guaranteed GPU access.

  1. Open the Red Hat OpenShift AI dashboard:

    Log in as user1 with password %password%.

  2. Navigate to Data Science Projects and select your project.

  3. Click Create workbench and configure:

    • Name: gpu-workbench

    • Image Selection: Training | Jupyter | PyTorch | CUDA | Python

    • Hardware Profile: Select Reserved GPU (Project-scoped)

      The Reserved GPU profile appears because you created a reservation in Exercise 1. It targets your user-specific ClusterQueue with protected nominalQuota, meaning your workbench GPU cannot be preempted by unreserved workloads.

      Reserved GPU Hardware Profiles
  4. Expand Customize resource requests and limits to request more than the default 1 GPU.

    Since you reserved 8 full GPUs in Exercise 1, you can allocate multiple GPUs to a single workbench. Set the GPU count to 4 (or more, up to the maxCount shown in the profile). Set CPU to 1 and Memory to 1Gi. Set the requests and limits to the same values. This demonstrates that a data scientist can claim any portion of their reserved quota for their own workloads.

    Customize resource requests and limits
  5. Click Create workbench and wait for it to reach Ready status.

    Hardware Profiles workbench

Patch the workbench for fake nvidia-smi

Acting as: user1
Log in to the OpenShift CLI:

oc login --insecure-skip-tls-verify $(oc whoami --show-server) -u user1 -p %password%

The fake-gpu-operator’s nvidia-smi binary needs the NODE_NAME environment variable to look up the GPU topology for the node. RHOAI workbenches don’t set this by default, so we need to patch the Notebook CR to inject it.

  1. Patch the workbench to add the NODE_NAME environment variable:

    oc -n user-user1 patch notebook gpu-workbench --type='json' \
      -p='[{"op":"add","path":"/spec/template/spec/containers/0/env/-","value":{"name":"NODE_NAME","valueFrom":{"fieldRef":{"fieldPath":"spec.nodeName"}}}}]'

    This triggers a rolling restart of the workbench pod. Wait for it to reach Ready status again:

    oc -n user-user1 rollout status statefulset/gpu-workbench --timeout=120s
This patch is only needed because we are using the fake-gpu-operator. On a real GPU cluster with physical NVIDIA GPUs, nvidia-smi works without any extra environment variables.

Verify GPU access from the workbench

Acting as: user1

  1. From the CLI, verify the workbench pod has the GPU allocated:

    oc -n user-user1 exec $(oc -n user-user1 get pod -l app=gpu-workbench -o name) -- nvidia-smi

    You should see the matching GPU resource you selected as a hardware profile. This confirms the fake-gpu-operator injected nvidia-smi into the workbench pod and the GPU resource is allocated.

  2. Verify that the workload was admitted to the reserved queue, not the unreserved pool:

    oc -n user-user1 get workloads -o custom-columns=\
    NAME:.metadata.name,\
    QUEUE:.spec.queueName,\
    ADMITTED:.status.conditions[0].status

    The QUEUE column should show reserved — confirming the workbench is running under your protected reservation, not competing for shared resources.

Verify GPU from inside the notebook

You can also verify GPU access directly from within the JupyterLab environment:

  1. In the OpenShift AI dashboard, click Open on the gpu-workbench workbench to launch JupyterLab.

  2. Open a Terminal in JupyterLab (File > New > Terminal) and run:

    nvidia-smi

    You should see the same GPU information as the CLI check above.

    Notebook fake GPU
  3. To prove these are fake GPUs, open a Notebook in JupyterLab and run:

    import torch
    print(f"CUDA available: {torch.cuda.is_available()}")
    print(f"GPU count: {torch.cuda.device_count()}")

    Expected output:

    CUDA available: False
    GPU count: 0

    PyTorch reports no CUDA GPUs because there are no real NVIDIA drivers on the node. The nvidia-smi binary works because the fake-gpu-operator injects its own implementation — but the CUDA runtime is not fooled. On a real GPU cluster, PyTorch would report CUDA available: True and detect the GPU normally.

    Notebook fake GPU Torch check

Verify

✓ Workbench started with the Reserved GPU Hardware Profile
✓ nvidia-smi shows GPU info from both CLI and inside the notebook
✓ Workload admitted to the reserved queue

Exercise 4: Clean up and observe profile removal

Acting as: user1

Hardware Profiles created by the booking app follow the reservation lifecycle — when a reservation is canceled, the expiration cleaner removes the corresponding ClusterQueue, LocalQueue, and HardwareProfiles. Let’s observe this by cleaning up our resources.

  1. In the OpenShift AI dashboard, stop and delete the gpu-workbench workbench from your project.

  2. In the OpenShift Console, navigate to GPU Booking > Bookings and click My Bookings.

  3. Click Cancel All to remove your GPU reservations, then click Confirm.

Acting as: user1
Log in to the OpenShift CLI:

oc login --insecure-skip-tls-verify $(oc whoami --show-server) -u user1 -p %password%
  1. Confirm the reserved HardwareProfiles have been removed:

    oc -n user-user1 get hardwareprofiles

    The reserved-* profiles should no longer appear. The booking app’s expiration cleaner removed them along with the per-user ClusterQueue and LocalQueue.

  2. Verify the Kueue resources are also gone:

    oc get cq,lq -A | grep user-user1

    Only unreserved and default should be shown. The per-user reserved ClusterQueue and LocalQueue have been cleaned up.

  3. Delete the workbench storage:

    oc -n user-user1 delete pvc gpu-workbench-storage

    Expected output:

    persistentvolumeclaim "gpu-workbench-storage" deleted

Verify

✓ Workbench deleted
✓ Booking canceled
✓ reserved-* HardwareProfiles removed automatically
✓ Per-user ClusterQueue and LocalQueue cleaned up

Module summary

What you accomplished:

  • Created a GPU reservation and inspected the Hardware Profiles it generates

  • Explored the default and reservation-created Hardware Profiles

  • Launched an RHOAI workbench using the reserved GPU Hardware Profile

  • Verified GPU access from the CLI, the JupyterLab terminal, and from PyTorch

  • Understood the profile lifecycle tied to booking reservations

Key takeaways:

  • Hardware Profiles bridge GPU as a Service (booking + Kueue) and Data Science (workbenches + notebooks)

  • The reserved profile directs workloads to your protected ClusterQueue — the data scientist doesn’t need to know about Kueue

  • nvidia-smi works inside workbenches via the fake-gpu-operator; real CUDA frameworks like PyTorch require physical GPUs

  • The booking app creates and removes profiles automatically as reservations change

Next: Module 4 dives into Kueue concepts — ClusterQueues, Cohorts, and the resource sharing model.