Skip to content

Add a lab: serve models with KServe on HAMi GPU shares #646

Description

@mesutoezdil

What

A new hands-on lab under tutorials/labs/ showing how to run KServe on top of HAMi vGPU, so multiple InferenceServices share the same physical GPU.

Suggested outline

  1. Prerequisites: cluster with HAMi installed (reuse the setup from the existing labs), KServe installed in raw deployment or Serverless mode
  2. Deploy an InferenceService with HAMi resource limits (nvidia.com/gpu, nvidia.com/gpumem, nvidia.com/gpucores) on the predictor pod spec
  3. Deploy a second InferenceService on the same GPU to demonstrate sharing
  4. Verify isolation: check memory limits inside the pods with nvidia-smi and send inference requests to both services
  5. Optional: autoscaling behavior of KServe combined with GPU sharing
  6. Cleanup

Why

KServe is one of the most common model serving layers on Kubernetes, and GPU sharing for many small InferenceServices is exactly the HAMi use case. We already cover vLLM, SGLang is proposed in #528; KServe fills the serving-platform gap.

The lab would follow the format of the existing labs (hami-vllm.md, kueue-hami-vgpu.md), with an English version and a zh mirror.

I plan to work on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions