Skip to content

Add GPU selection to cloud connect UI#957

Open
hthillman wants to merge 2 commits intoja/multi-gpufrom
hth/gpu-select
Open

Add GPU selection to cloud connect UI#957
hthillman wants to merge 2 commits intoja/multi-gpufrom
hth/gpu-select

Conversation

@hthillman
Copy link
Copy Markdown
Collaborator

Replaces the on/off Remote Inference toggle in Settings → Daydream Account with a split button + dropdown that lets users pick which Livepeer GPU their cloud session targets. Options are H100 (2.5 credits/min), RTX 4090 and RTX 5090 (1.25 credits/min each). The last-used GPU is persisted in localStorage so the button is pre-populated on return, and while connecting a cancel (X) button replaces the caret. When connected, the dropdown surfaces "Switch GPU" and "Disconnect"; Switch GPU auto-reopens the picker on disconnect.

Onboarding is unchanged — CloudAuthStep and CloudConnectingStep still call connectToCloud() with no arg, so first-time users always land on H100 regardless of prior selection.

Backend threads the new gpu field (Literal["h100","rtx4090","rtx5090"]) through CloudConnectRequest → cloud_manager.connect_background → LivepeerConnection → LivepeerClient → _resolve_livepeer_app_id. Explicit app_id still wins over gpu, which wins over the SCOPE_CLOUD_GPU env var, which falls back to H100 — preserving CI, local cloud dev, and the existing env-var workflow.

Replaces the on/off Remote Inference toggle in Settings → Daydream
Account with a split button + dropdown that lets users pick which
Livepeer GPU their cloud session targets. Options are H100 (2.5
credits/min), RTX 4090 and RTX 5090 (1.25 credits/min each). The
last-used GPU is persisted in localStorage so the button is
pre-populated on return, and while connecting a cancel (X) button
replaces the caret. When connected, the dropdown surfaces "Switch GPU"
and "Disconnect"; Switch GPU auto-reopens the picker on disconnect.

Onboarding is unchanged — CloudAuthStep and CloudConnectingStep still
call connectToCloud() with no arg, so first-time users always land on
H100 regardless of prior selection.

Backend threads the new gpu field (Literal["h100","rtx4090","rtx5090"])
through CloudConnectRequest → cloud_manager.connect_background →
LivepeerConnection → LivepeerClient → _resolve_livepeer_app_id.
Explicit app_id still wins over gpu, which wins over the SCOPE_CLOUD_GPU
env var, which falls back to H100 — preserving CI, local cloud dev, and
the existing env-var workflow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Hunter Hillman <hthillman@gmail.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 16, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: af360a1c-d7af-40b4-9e7c-35f5cfcca2a1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch hth/gpu-select

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 16, 2026

🚀 fal.ai Preview Deployment

App ID daydream/scope-pr-957--preview
WebSocket wss://fal.run/daydream/scope-pr-957--preview/ws
Commit d620f7d

Livepeer Runner

App ID daydream/scope-livepeer-pr-957--preview
WebSocket wss://fal.run/daydream/scope-livepeer-pr-957--preview/ws
Auth private

Testing Livepeer Mode

SCOPE_CLOUD_MODE=livepeer SCOPE_CLOUD_APP_ID="daydream/scope-livepeer-pr-957--preview/ws" uv run daydream-scope

@hthillman hthillman marked this pull request as ready for review April 17, 2026 21:58
@hthillman hthillman requested a review from j0sh April 17, 2026 21:58
@BuffMcBigHuge
Copy link
Copy Markdown
Collaborator

Ran a quick test, seems to be functional. Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants