Skip to content

feat(k8s): GPU thresholds set embedding-only and per-GPU tiers - #3509

Merged
dan-petty merged 2 commits into
mainfrom
feat/3501-gpu-thresholds
Nov 4, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/3501-gpu-thresholds

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Two GPU architecture thresholds in k8s/llm/profiles/gpu-thresholds.yaml, both pascal, set the old tiers. devops ai gateway render --apply writes them from tier-templates/. The values are in git because Argo CD tracks main.

A tier at or below embedding_only serves embedding models alone, and the gateway tries it first. A tier at or below per_gpu runs one instance per GPU. So ollama-48gib-slow becomes ollama-24gib-embed-gpu0 and -gpu1, and devops-background moves to ollama-64gib-standard. Other tiers run as before.

Embedding calls did not fail, but they waited for chat models: up to 60 s on ollama-48gib. Two instances double the throughput of one.

The archived proposal has the cost against a Helm chart.

Closes #3501

Change: openspec/changes/archive/2026-11-04-3501-gpu-thresholds/

@dan-petty dan-petty added type/feature Type feature: a new function scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 4, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Topology

 hog (2x Quadro P6000)
-  ollama-48gib-slow          one instance, all GPUs, qwen3.8:27b + embedder
+  ollama-24gib-embed-gpu0    one GPU, embedder only
+  ollama-24gib-embed-gpu1    one GPU, embedder only

 qwen3-embedding:0.6b
+  order 1: ollama-24gib-embed-gpu0, ollama-24gib-embed-gpu1
-  order 1: ollama-48gib-fast, ollama-64gib-standard
+  order 2: ollama-48gib-fast, ollama-64gib-standard
-  order 2: ollama-16gib-fast, ollama-48gib-slow
+  order 3: ollama-16gib-fast

 devops-background
-  ollama-48gib-slow (window 128000)
+  ollama-64gib-standard (window 160000)

Evidence

Measured on ollama/ollama:0.40.12 with temporary pods on two Quadro P6000, with a batch of 32 chunks (12,886 tokens):

  • Before: one instance gives 0.50 batches/s. The longest wait at 4 streams is 8.0 s.
    After: two instances give 0.99 batches/s. The longest wait at 4 streams is 4.2 s.
  • OLLAMA_NUM_PARALLEL of 1, 2 and 4 gives 0.49, 0.49 and 0.47 batches/s, and num_batch up to 8192 gives no gain, so the tier keeps one slot.
  • Two pods with nvidia.com/gpu: 1 each see a different GPU in nvidia-smi -L.
  • A vector from a P6000 has a cosine of 0.9995 to a vector from a Tesla V100 and from an RTX 3090.

Merge Danger

Door: two-way

Revert the commit, or lower the thresholds and move devops-background back. No data changes: the instances share the model directory of the node.

Blast Radius: background

On merge, Argo CD prunes ollama-48gib-slow and starts the two new DaemonSets. Roadmap and cluster jobs then share ollama-64gib-standard with interactive and review calls, so each can wait on the other. Peak embedding throughput is about one idle Tesla V100, because the faster GPUs are now a fallback. Only tiers in tier-templates/ follow the thresholds.

Related: #3485, #1389, #2396

Local run

Local run on the final tree, in the devcontainer: uv run devops ci has 18,210 tests passed and 2 failed. Both failures also occur on origin/main at 46cf288, and #3025 records them: test_mark_only_commands_under_global_dry_run and test_the_direct_executor_refuses_a_network_profile_before_it_starts_the_tool[direct]. coverage did not run because of them. The other checks pass.

kubectl diff -k k8s/llm/profiles against the live cluster: the only new objects are the two DaemonSets and two Services of the embedding tier. The other tiers differ only in Argo CD tracking metadata, so their pods do not restart. ollama_tiers with the live node labels puts both instances on the Pascal node, and leaves the other nodes on their tiers.

After the merge, a person confirms that both pods are Ready, each with one GPU: kubectl -n llm exec ds/ollama-24gib-embed-gpu0 -c ollama -- nvidia-smi -L.

Also: test took 5m 13s in this local run, near the 5-minute limit.

@dan-petty
dan-petty marked this pull request as ready for review November 4, 2026 19:48
@dan-petty
dan-petty merged commit 67d3f47 into main Nov 4, 2026
19 checks passed
@dan-petty
dan-petty deleted the feat/3501-gpu-thresholds branch November 4, 2026 19:53
dan-petty-release Bot added a commit that referenced this pull request Nov 4, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.56.0](v0.55.4...v0.56.0)
(2026-11-04)


### Features

* **k8s:** GPU thresholds set embedding-only and per-GPU tiers
([#3509](#3509))
([67d3f47](67d3f47)),
closes [#3501](#3501)


### Bug Fixes

* **ci:** refuse a replay that proves nothing about the fix
([#3514](#3514))
([719a697](719a697))
* **config:** config unset --dry-run writes nothing, hides credentials
([#3512](#3512))
([b3280ba](b3280ba))
* **roadmap:** a stop carries a typed class and the failed check
([#3513](#3513))
([3437b9e](3437b9e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): GPU thresholds set embedding-only and per-GPU tiers

1 participant