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 |
|---|---|---|---|
|
1x |
2 |
8Gi |
|
1x |
2 |
8Gi |
|
1x |
1 |
4Gi |
|
1x |
1 |
4Gi |
|
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: |
Create a bulk reservation
-
Navigate to GPU Booking > Bookings in the console menu.
-
Select today’s date in the calendar.
-
Right-click on the calendar to open the bulk booking dialog.
-
Reserve the following resources:
Resource type Count GB200 NVL Full GPU
8
MIG 3g.93gb
4
MIG 1g.23gb
4
-
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.
Check the Hardware Profiles
|
Acting as:
|
-
List Hardware Profiles in your namespace:
oc -n user-user1 get hardwareprofilesYou should see five reserved profiles — one for the full GPU and one for each MIG slice size:
Hardware Profile GPU resource reserved-gpunvidia.com/gpureserved-mig-189gbnvidia.com/mig-7g.189gbreserved-mig-93gbnvidia.com/mig-3g.93gbreserved-mig-47gbnvidia.com/mig-2g.47gbreserved-mig-23gbnvidia.com/mig-1g.23gbThe 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.
-
Inspect the reserved GPU profile:
oc -n user-user1 get hardwareprofile reserved-gpu -o yamlNote that the profile specifies:
-
GPU resource limits matching
minCount:1,maxCount: 8full GPU (nvidia.com/gpuidentifier) -
CPU and memory limits calculated as a share of the total node resources
-
A
spec.scheduling.kueue.localQueueName: reservedannotation that targets your user-specific LocalQueue
-
-
Compare with the MIG profile:
oc -n user-user1 get hardwareprofile reserved-mig-23gb -o yamlThe 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. -
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.localQueueNameAll reserved profiles should show
reservedas their queue. This is what ties the Hardware Profile selection in the RHOAI dashboard back to your protected Kueue quota.
Exercise 2: Explore default Hardware Profiles
|
Acting as:
|
-
List all Hardware Profiles across namespaces:
oc get hardwareprofiles -AYou should see multiple Hardware Profiles in the
redhat-ods-applicationsnamespace as well as theuser-user1namespace. -
Inspect the unreserved GPU profile:
oc -n redhat-ods-applications get hardwareprofile unreserved-gpu -o yamlNote the
spec.resourcessection showing CPU, memory, and GPU limits. -
Compare with the default (CPU-only) profile:
oc -n redhat-ods-applications get hardwareprofile cpu-only -o yamlThe
cpu-onlyprofile has no GPU resources. It is used for CPU-only workbenches.
Exercise 3: Launch a workbench with the reserved GPU profile
|
Acting as: |
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.
-
Open the Red Hat OpenShift AI dashboard:
Log in as
user1with password%password%. -
Navigate to Data Science Projects and select your project.
-
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.
-
-
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
maxCountshown 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. -
Click Create workbench and wait for it to reach Ready status.
Patch the workbench for fake nvidia-smi
|
Acting as:
|
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.
-
Patch the workbench to add the
NODE_NAMEenvironment 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: |
-
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-smiYou should see the matching GPU resource you selected as a hardware profile. This confirms the fake-gpu-operator injected
nvidia-smiinto the workbench pod and the GPU resource is allocated. -
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].statusThe
QUEUEcolumn should showreserved— 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:
-
In the OpenShift AI dashboard, click Open on the
gpu-workbenchworkbench to launch JupyterLab. -
Open a Terminal in JupyterLab (File > New > Terminal) and run:
nvidia-smiYou should see the same GPU information as the CLI check above.
-
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: 0PyTorch reports no CUDA GPUs because there are no real NVIDIA drivers on the node. The
nvidia-smibinary works because the fake-gpu-operator injects its own implementation — but the CUDA runtime is not fooled. On a real GPU cluster, PyTorch would reportCUDA available: Trueand detect the GPU normally.
Exercise 4: Clean up and observe profile removal
|
Acting as: |
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.
-
In the OpenShift AI dashboard, stop and delete the
gpu-workbenchworkbench from your project. -
In the OpenShift Console, navigate to GPU Booking > Bookings and click My Bookings.
-
Click Cancel All to remove your GPU reservations, then click Confirm.
|
Acting as:
|
-
Confirm the reserved HardwareProfiles have been removed:
oc -n user-user1 get hardwareprofilesThe
reserved-*profiles should no longer appear. The booking app’s expiration cleaner removed them along with the per-user ClusterQueue and LocalQueue. -
Verify the Kueue resources are also gone:
oc get cq,lq -A | grep user-user1Only
unreservedanddefaultshould be shown. The per-userreservedClusterQueue and LocalQueue have been cleaned up. -
Delete the workbench storage:
oc -n user-user1 delete pvc gpu-workbench-storageExpected output:
persistentvolumeclaim "gpu-workbench-storage" deleted
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-smiworks 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.





