# dark-shadw/ltx25-igpu-streaming architecture

> Architecture diagram of the GitHub repository dark-shadw/ltx25-igpu-streaming, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dark-shadw/ltx25-igpu-streaming
- Repository: https://github.com/dark-shadw/ltx25-igpu-streaming

## Overview

This repository is a local LTX-2.5 video-generation engine and a set of workflows for producing and assembling clips. The main path is a user launching a render, which runs streamed model inference and produces video with audio; story scripts can chain shots, then stitch and transcribe the result. A separate episode workflow renders shots, checks them, retries or selects attempts, and assembles scenes. The README documents text-to-video, image-to-video, audio, and the studio UI. Some links to unsampled runtime modules are therefore omitted or marked unverified.

Main entry points: [`stream/run_ltx.py`](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/run_ltx.py) (LTX inference), [`story_snowbridge.py`](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/story_snowbridge.py) (Story renderer), [`episode_run.py`](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/episode_run.py) (Episode runner), [`render.py`](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/render.py) (Render CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_rendering["Video generation"]
  node_render_cli["Render CLI<br/>[render.py]"]
  node_studio["Studio UI<br/>[studio.py]"]
  node_inference["LTX inference<br/>[run_ltx.py]"]
  node_decode["Video/audio decode<br/>[decode_to_mp4.py]"]
  node_preview["Live preview<br/>[preview.py]"]
end

subgraph group_engine["Streaming engine"]
  node_device["Device selection<br/>[dev.py]"]
  node_runtime["Model runtime<br/>[runtime.py]"]
  node_blockstream["Weight streaming<br/>[blockstream.py]"]
  node_checkpoint[("Model checkpoint")]
end

subgraph group_stories["Story workflows"]
  node_story["Story renderer"]
  node_stitch["Clip stitching<br/>[stitch.py]"]
  node_transcribe["Transcription<br/>[transcribe.py]"]
end

subgraph group_episodes["Episode production"]
  node_episode_runner["Episode runner<br/>[episode_run.py]"]
  node_shot_runner["Shot renderer<br/>[shot_run.py]"]
  node_quality["Shot quality checks<br/>[shot_qc.py]"]
  node_scene_assembly["Scene assembly<br/>[assemble_scene.py]"]
  node_draft_assembly["Draft assembly<br/>[assemble_draft.py]"]
  node_organizer["Shot organization<br/>[organize.py]"]
end

node_user(("User"))

node_user -->|"starts render"| node_render_cli
node_user -->|"opens UI"| node_studio
node_render_cli -.->|"runs inference"| node_inference
node_inference -->|"streams model"| node_runtime
node_runtime -->|"loads weights"| node_blockstream
node_blockstream -->|"reads tensors"| node_checkpoint
node_inference -->|"selects accelerator"| node_device
node_inference -.->|"writes previews"| node_preview
node_inference -.->|"decodes output"| node_decode
node_user -->|"runs story"| node_story
node_story -->|"renders shots"| node_render_cli
node_story -->|"stitches clips"| node_stitch
node_story -->|"transcribes result"| node_transcribe
node_user -->|"runs episode"| node_episode_runner
node_episode_runner -->|"renders shots"| node_shot_runner
node_episode_runner -->|"checks attempts"| node_quality
node_episode_runner -->|"assembles scene"| node_scene_assembly

click node_render_cli "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/render.py"
click node_studio "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/studio.py"
click node_inference "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/run_ltx.py"
click node_decode "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/decode_to_mp4.py"
click node_preview "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/preview.py"
click node_device "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/dev.py"
click node_runtime "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/runtime.py"
click node_blockstream "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/blockstream.py"
click node_story "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/story_snowbridge.py"
click node_stitch "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/stitch.py"
click node_transcribe "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/transcribe.py"
click node_episode_runner "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/episode_run.py"
click node_shot_runner "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/shot_run.py"
click node_quality "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/shot_qc.py"
click node_scene_assembly "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/assemble_scene.py"
click node_draft_assembly "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/assemble_draft.py"
click node_organizer "https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/organize.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_render_cli,node_studio,node_inference,node_decode,node_preview,node_user toneBlue
class node_device,node_runtime,node_blockstream,node_checkpoint toneAmber
class node_story,node_stitch,node_transcribe toneMint
class node_episode_runner,node_shot_runner,node_quality,node_scene_assembly,node_draft_assembly,node_organizer toneRose
```

## Components

### Video generation

- [Render CLI](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/render.py): `render.py`
- [Studio UI](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/studio.py): `studio.py`
- [LTX inference](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/run_ltx.py): `stream/run_ltx.py`
- [Video/audio decode](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/decode_to_mp4.py): `stream/decode_to_mp4.py`
- [Live preview](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/preview.py): `stream/preview.py`

### Streaming engine

- [Device selection](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/dev.py): `stream/dev.py`
- [Model runtime](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/runtime.py): `stream/runtime.py`
- [Weight streaming](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/blockstream.py): `stream/blockstream.py`
- **Model checkpoint**

### Story workflows

- [Story renderer](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/story_snowbridge.py): `story_snowbridge.py`
- [Clip stitching](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/stitch.py): `stream/stitch.py`
- [Transcription](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/stream/transcribe.py): `stream/transcribe.py`

### Episode production

- [Episode runner](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/episode_run.py): `episode_run.py`
- [Shot renderer](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/shot_run.py): `shot_run.py`
- [Shot quality checks](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/shot_qc.py): `shot_qc.py`
- [Scene assembly](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/assemble_scene.py): `assemble_scene.py`
- [Draft assembly](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/assemble_draft.py): `assemble_draft.py`
- [Shot organization](https://github.com/dark-shadw/ltx25-igpu-streaming/blob/main/organize.py): `organize.py`

### Other components

- **User**

## Connections

- User → Render CLI: starts render (evidence: `README.md`)
- User → Studio UI: opens UI (evidence: `README.md`)
- Render CLI → LTX inference: runs inference
- LTX inference → Model runtime: streams model (evidence: `stream/run_ltx.py`)
- Model runtime → Weight streaming: loads weights (evidence: `stream/runtime.py`)
- Weight streaming → Model checkpoint: reads tensors (evidence: `stream/blockstream.py`)
- LTX inference → Device selection: selects accelerator (evidence: `stream/run_ltx.py`)
- LTX inference → Live preview: writes previews (evidence: `stream/run_ltx.py`)
- LTX inference → Video/audio decode: decodes output
- User → Story renderer: runs story (evidence: `story_snowbridge.py`)
- Story renderer → Render CLI: renders shots (evidence: `story_snowbridge.py`)
- Story renderer → Clip stitching: stitches clips (evidence: `story_snowbridge.py`)
- Story renderer → Transcription: transcribes result (evidence: `story_snowbridge.py`)
- User → Episode runner: runs episode (evidence: `episode_run.py`)
- Episode runner → Shot renderer: renders shots (evidence: `episode_run.py`)
- Episode runner → Shot quality checks: checks attempts (evidence: `episode_run.py`)
- Episode runner → Scene assembly: assembles scene (evidence: `episode_run.py`)
