mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-22 22:30:45 -07:00
- Add modules/runtime_context.py with RuntimeContext dataclass - Attach p.runtime_context in process_images_inner() after opts_snapshot - Write-only: no migration of shared.* reads yet - Completes Phase II runtime seam preparation Made-with: Cursor
18 lines
475 B
Python
18 lines
475 B
Python
"""Runtime execution context for generation runs.
|
|
|
|
M09: Lightweight context grouping model, opts_snapshot, device, state,
|
|
cmd_opts. Attached to processing object as p.runtime_context.
|
|
Write-only in M09; not yet consumed by runtime.
|
|
"""
|
|
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass
|
|
class RuntimeContext:
|
|
"""Groups runtime dependencies for the generation pipeline."""
|
|
|
|
model: object
|
|
opts_snapshot: object
|
|
device: object
|
|
state: object
|
|
cmd_opts: object
|