Training Runtime Images
Alauda AI ships a curated catalog of Kubeflow Trainer v2
TrainingRuntime images. Each image bundles a specific PyTorch + accelerator
stack (NVIDIA CUDA or Huawei Ascend NPU via CANN) so users can submit
TrainJobs without rebuilding a custom image.
TOC
Available runtimesPicking a runtimeTrainingRuntime YAML examplesSubmitting a TrainJobResource model on each deviceNVIDIA GPUHuawei Ascend NPUCaveats by imageBuilding your own runtimeAvailable runtimes
The published v0.1.0 images on Dockerhub:
CUDA images are amd64-only — NVIDIA does not ship CUDA wheels for arm64. CANN images are arm64-only — the upstream Ascend CANN base image is published for arm64 only.
Pull example:
Picking a runtime
- Plain torchrun training on NVIDIA GPUs →
torch2.6-cu126-amd64. - Plain torchrun training on Huawei Ascend NPUs →
torch2.6-cann8.5-arm64(setruntimeClassName: ascendon the pod template). - LLM SFT / LoRA fine-tuning with LLaMA-Factory →
llamafactory0.9-cu126-amd64on GPU orllamafactory0.9-cann8.5-arm64on NPU. See Fine-Tuning with Kubeflow Trainer v2 for the dataset / model initializer pipeline. - TRL / PEFT-based SFT / OSFT / DPO →
traininghub0.1-cu126-amd64. - Megatron-style training on Ascend →
mindspeed-llm-cann8.5-arm64.
TrainingRuntime YAML examples
Ready-to-apply YAMLs for each runtime are shipped under
assets/training-runtimes/:
Each TrainingRuntime lives in a Kubeflow Profile namespace by default —
change metadata.namespace to match the namespace you submit TrainJobs
from. The YAMLs pin :v0.1.0; change the tag if you want to track a
different release.
Submitting a TrainJob
A shared smoke template applies to any of the runtimes — point
spec.runtimeRef.name at the runtime you want to exercise:
Watch the trainer pod logs:
Resource model on each device
NVIDIA GPU
For clusters where each pod gets a whole device, request:
For clusters running the HAMI vGPU scheduler, request a virtual slice instead:
Huawei Ascend NPU
Set runtimeClassName: ascend on the pod template so the Ascend container
runtime injects the driver libs and DCMI sockets.
For clusters running the standard Huawei Kubernetes device-plugin, request:
For clusters running HAMI's vNPU scheduler — each Ascend 910B4 chip can be sliced into 20 cores / 32 GiB. Request a virtual slice via:
With HAMI the node's allocatable.huawei.com/Ascend910B4 reads 0 because
HAMI manages allocation through its scheduler extender, not the standard
device-plugin extended-resource path. If pods stay Pending with
hami-scheduler: 1 node unregistered, verify the Ascend host driver is
loaded (/sys/bus/pci/drivers/davinci exists, npu-smi info reports
Health: OK) and that the node is labeled ascend=on so HAMI's
device-plugin DaemonSet runs there.
Caveats by image
traininghub0.1-cu126-amd64— DeepSpeed JIT op compilation requiresnvcc. The base image ships CUDA runtime libs (via the official torch cu126 wheels) but not the CUDA toolkit. For forward / backward / optimizer with native torch ops the image works as-is; for DeepSpeed pre-compiled or JIT-compiled ops, mount or installnvidia-cuda-toolkitand setCUDA_HOMEaccordingly.mindspeed-llm-cann8.5-arm64—megatron.corerequires the legacypkg_resourcesAPI; if your job imports it, installsetuptools<81at the top of the entrypoint (or pin it in your derived image).import mindspeed_llmcurrently fails on themegatron_adaptor_v2 → mindspeed.features_managerchain because themindspeed_llmmaster branch expects a newer MindSpeed core than thecore_r0.8.0branch pinned in the image; the underlying torch + torch_npu + megatron.core + mindspeed stack trains successfully on the NPU without going through the MindSpeed-LLM adapter shim.
Building your own runtime
The Containerfiles, the multi-arch buildkitd helper, an e2e harness, and
the post-fix security scan evidence for every image are kept in the
kubeflow-plugin/training-runtimes
directory. Each framework image is a thin layer on top of one of the two
base images (torch2.6-cu126-amd64 or torch2.6-cann8.5-arm64), so
deriving a new runtime is mostly
FROM docker.io/alaudadockerhub/torch2.6-cu126-amd64:v0.1.0 plus framework
installs.