feat: add optional remote compute backend#128
Open
Luis Serrano (luisnomad) wants to merge 7 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an optional remote-compute mode so LTX Desktop can keep its Electron UI and project files on one computer while running models and inference on a user-owned headless GPU machine.
This implements the self-hosted split-UI/GPU-server scenario described in #82 (and related discussion in #53). That request identified authentication, transport security, packaging, and UI flow as the missing pieces; this PR covers each of those areas.
Design
Desktop client
safeStorage.Headless backend
LTX_DEPLOYMENT_MODE=standalonewith a requiredLTX_AUTH_TOKENof at least 32 characters.LTX_BIND_HOSTconfiguration.See
docs/REMOTE_BACKEND.mdfor deployment and connection instructions.Compatibility
Validation
pnpm typecheckpnpm backend:test— 285 passedpnpm build:frontend401and the saved authenticated desktop connection succeeded.Notes for reviewers
The generated OpenAPI TypeScript/JSON changes account for a substantial portion of the diff. The implementation follows the existing route → handler → service structure, with a fake media service used by integration tests rather than mocks.