Skip to content

v0.1.2

Choose a tag to compare

@ryanymt ryanymt released this 29 Nov 16:45
· 1 commit to main since this release

A small release before the v0.2 operator. podserve now checks your GPU quota before it creates
anything, podserve's spend can be read on its own in a shared project, and everything a public test
of v0.1.1 found is fixed.

Added

  • podserve plan shows the GPU quota the model needs. A new Quota: line names the regional
    quota the planned GPUs count against, spot or on-demand, with its limit, the amount in use, the
    room left and the need, for example:
    Quota:        spot PREEMPTIBLE_NVIDIA_L4_GPUS in us-central1, project my-gcp-project: limit 16, in use 0, free 16, need 1
    
    • New flags: --project and --region (default: gcloud's), and --spot (default true) to
      see the on-demand quota instead.
    • (short by N) marks too little room; (no quota) marks a limit of 0.
    • When it can't check, it prints not checked with the reason: gcloud isn't installed, no
      project or region is set, gcloud failed or took more than 10 seconds, or the region doesn't
      list that quota (H100 in us-central1, for one). plan still works, offline too: gcloud runs
      with stdin closed and is stopped after 10 seconds, so it can't prompt or hang.
    • plan -o json has a quota object with the same fields.
  • podserve deploy checks the quota first. Before it creates anything, deploy runs the same
    check against the platform's own project and region:
    • a limit of 0 refuses the deploy with exit 3 and code NO_GPU_QUOTA, and the message suggests
      the other capacity (--spot=false or --spot=true);
    • too little room, or a check that couldn't run, prints warning: quota: … and deploys anyway;
    • --dry-run skips the check.
  • Cost labels. Terraform labels every resource it creates that takes labels with
    managed-by=podserve and podserve-install=<name> (Terraform's name, podserve by default):
    the cluster, the model bucket, both Artifact Registry repositories and the HF-token secret. It
    also turns on GKE cost allocation. Filter Cloud Billing by these labels to see podserve's spend.
    Cloud NAT takes no labels: read it by its SKUs.

Fixed

  • podserve status of a model being fetched said Stage: node. It now says Stage: fetch,
    with the stored message, and -o json has "stage": "fetch".
  • The load-test example only worked in the project it was written in: its image was hard-coded.
    hack/quickstart-run.sh (LOADTEST=1) now takes the image from the cluster's
    podserve-platform ConfigMap, so it works in any project and region, and
    deploy/examples/loadtest-job.yaml says to replace both the project ID and the region.
  • The cache marker (_PODSERVE_COMPLETE) always recorded "podserve": "dev". The fetch Job now
    gets the CLI's version (PODSERVE_VERSION), so the marker records which podserve cached the
    weights.
  • An unknown -o value (-o yaml) silently printed text. plan, list and status now exit 2
    with podserve: unknown output format yaml; want text or json, before doing anything else.
  • deploy's derived name could be invalid: a repo name starting with a digit gave 42
    characters, and a cut could leave a trailing -. The name derived from the repo (when --name
    isn't given) now always fits: at most 40 characters, starting with a letter.
  • The docs:
    • docs/design/cli.md's plan example said 18110 tokens; plan prints 18114.
    • docs/design/platform.md listed only some of the node service account's roles, left
      PODSERVE_VERSION out of the fetch Job's inputs, and said deploy needs no local Hugging Face
      token (it plans with HF_TOKEN).
    • docs/quickstart.md called the dashboard "podserve: model service"; it is
      "podserve - model service".

Upgrading from v0.1.1

  • Rebuild the CLI. Running models keep running.
  • Run terraform apply with v0.1.2's Terraform to add the labels and turn on GKE cost allocation.
    Review its plan before you confirm, as always.