Part of #4325.
Context
src/review/rag.ts's embedding path currently runs against CPU-only Ollama inference, which has been measured to take considerably longer per batch than is comfortable under load, contributing to embedding timeouts and general resource contention with the rest of the review pipeline. The new host's GPU is provisioned specifically to fix this. nomic-embed-text (the current embedding model) is small — this is not a "does the GPU have enough VRAM" question, it's a "is passthrough actually wired correctly and does it measurably help" question.
Requirements
- NVIDIA Container Toolkit (or equivalent) installed on the new host so
docker run --gpus all actually reaches the card — confirm with nvidia-smi both on the host and inside a test container before touching the real ollama service.
docker-compose.yml's ollama service updated (locally, on the new host only) to request the GPU device.
- Pull the same model (
nomic-embed-text) the current host runs; do not change models as part of this issue.
- Benchmark: same batch size, same repo's chunk set, GPU vs. the current CPU host's measured latency — record both, not just the new number.
- Re-validate the embed batch size setting (if in use) against the new hardware — a batch size tuned for CPU contention may be needlessly conservative on GPU; this issue should record a recommendation, not necessarily change the shipped default.
Deliverables
Expected outcome
Confirmed, measured, faster embedding throughput on the new host with no silent CPU fallback, and a data-backed batch-size recommendation instead of a guess.
Effort
M
Part of #4325.
Context
src/review/rag.ts's embedding path currently runs against CPU-only Ollama inference, which has been measured to take considerably longer per batch than is comfortable under load, contributing to embedding timeouts and general resource contention with the rest of the review pipeline. The new host's GPU is provisioned specifically to fix this.nomic-embed-text(the current embedding model) is small — this is not a "does the GPU have enough VRAM" question, it's a "is passthrough actually wired correctly and does it measurably help" question.Requirements
docker run --gpus allactually reaches the card — confirm withnvidia-smiboth on the host and inside a test container before touching the realollamaservice.docker-compose.yml'sollamaservice updated (locally, on the new host only) to request the GPU device.nomic-embed-text) the current host runs; do not change models as part of this issue.Deliverables
nvidia-smiconfirms GPU visibility inside a test containerollamaservice on the new host running model inference on GPU, confirmed vianvidia-smishowing utilization during an embed call (not falling back to CPU silently)Expected outcome
Confirmed, measured, faster embedding throughput on the new host with no silent CPU fallback, and a data-backed batch-size recommendation instead of a guess.
Effort
M