[PR #2777] [CLOSED] Start the vision encoder in parallel when it is on another GPU #4260

Closed
opened 2026-11-07 15:34:24 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2777
Author: @apatassini
Created: 10/16/2026
Status: ❌ Closed

Base: main ← Head: vision-parallel-start


📝 Commits (1)

  • c96691f serve: start the vision encoder in parallel when it is on another GPU

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 serve/server.py (+6 -1)

📄 Description

main() starts and warms up the encoder (~7 s at 4,096 image tokens) before the engine, so that on the same card it takes its
VRAM before the engine sizes its cache. When vision.cuda_device is not one of the engine's GPUs that ordering is not needed:
the encoder starts on a thread while the engine loads. Cold start 21 → 14 s together with #3. The HTTP server only serves once
the engine is up, by which time the encoder is ready.

Full notes and measurements: https://github.com/apatassini/Strata/blob/qwen38-16gb/QWEN38.md

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2777 **Author:** [@apatassini](https://github.com/apatassini) **Created:** 10/16/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `vision-parallel-start` --- ### 📝 Commits (1) - [`c96691f`](https://github.com/Niko1221/Strata/commit/c96691faf50ea9ae4a6542565399af08fe794c6a) serve: start the vision encoder in parallel when it is on another GPU ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `serve/server.py` (+6 -1) </details> ### 📄 Description `main()` starts and warms up the encoder (~7 s at 4,096 image tokens) before the engine, so that on the same card it takes its VRAM before the engine sizes its cache. When `vision.cuda_device` is not one of the engine's GPUs that ordering is not needed: the encoder starts on a thread while the engine loads. Cold start 21 → 14 s together with #3. The HTTP server only serves once the engine is up, by which time the encoder is ready. Full notes and measurements: https://github.com/apatassini/Strata/blob/qwen38-16gb/QWEN38.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:34:24 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4260
No description provided.