Repository navigation
v0.1.2
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 planshows the GPU quota the model needs. A newQuota: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:
--projectand--region(default: gcloud's), and--spot(defaulttrue) 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 checkedwith 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).planstill works, offline too: gcloud runs
with stdin closed and is stopped after 10 seconds, so it can't prompt or hang. plan -o jsonhas aquotaobject with the same fields.
- New flags:
podserve deploychecks the quota first. Before it creates anything,deployruns 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=falseor--spot=true); - too little room, or a check that couldn't run, prints
warning: quota: …and deploys anyway; --dry-runskips the check.
- a limit of 0 refuses the deploy with exit 3 and code
- Cost labels. Terraform labels every resource it creates that takes labels with
managed-by=podserveandpodserve-install=<name>(Terraform'sname,podserveby 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 statusof a model being fetched saidStage: node. It now saysStage: fetch,
with the stored message, and-o jsonhas"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-platformConfigMap, so it works in any project and region, and
deploy/examples/loadtest-job.yamlsays 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
-ovalue (-o yaml) silently printed text.plan,listandstatusnow exit 2
withpodserve: 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'splanexample said 18110 tokens;planprints 18114.docs/design/platform.mdlisted only some of the node service account's roles, left
PODSERVE_VERSIONout of the fetch Job's inputs, and saiddeployneeds no local Hugging Face
token (it plans withHF_TOKEN).docs/quickstart.mdcalled the dashboard "podserve: model service"; it is
"podserve - model service".
Upgrading from v0.1.1
- Rebuild the CLI. Running models keep running.
- Run
terraform applywith v0.1.2's Terraform to add the labels and turn on GKE cost allocation.
Review its plan before you confirm, as always.