• Stefy Lanza (nextime / spora )'s avatar
    video: run MiniMax-H3 in the engine like any other model, worker as fallback · 14d45861
    Stefy Lanza (nextime / spora ) authored
    H3 doesn't need a permanent sidecar. Model work already happens in a supervised,
    per-GPU engine subprocess with its own CUDA context, VRAM manager and swap gate —
    so H3 belongs there, registered with the model manager like a Wan or LTX
    pipeline, and pinned to a CUDA engine.
    
    What actually forced the worker was the version floor, not the architecture:
    diffusers ships H3 as Modular blocks only (0.40+), and this venv is on 0.38.
    So the route is now chosen by capability, not hardcoded — engine_supports_h3()
    probes for MiniMaxH3ModularPipeline, and `in_process` in the model config forces
    either side. The same build works before and after a diffusers upgrade, and the
    worker stays as the fallback while H3 is unproven (an in-engine OOM or device
    assert poisons the whole engine's context; a subprocess crash doesn't).
    
    _load_h3_pipeline() builds the modular pipeline with ONE workflow (loading with
    none pulls both 61.7GB partitions), group-offloads the big modules per component
    since a ModularPipeline has no pipeline-level offload helper, and registers it
    with record_vram_delta so eviction sees its real footprint. A workflow change
    unloads first — the two partitions can't be co-resident.
    
    The checkpoint contracts now live in tools/h3_common.py, loaded by path from the
    engine and imported as a sibling module inside the isolated venv, so both routes
    snap frames, round the canvas, pick the workflow and mux the audio identically.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_0182DhR1eFNPQyGmDrpHbedY
    14d45861
Name
Last commit
Last update
..
__init__.py Loading commit data...
_film_net.py Loading commit data...
_rife_ifnet.py Loading commit data...
app.py Loading commit data...
archive.py Loading commit data...
audio_backends.py Loading commit data...
audio_clean.py Loading commit data...
audio_gen.py Loading commit data...
audio_stems.py Loading commit data...
canary_worker.py Loading commit data...
characters.py Loading commit data...
colibri_worker.py Loading commit data...
crisperwhisper_worker.py Loading commit data...
custom_pipelines.py Loading commit data...
diarization.py Loading commit data...
ds4_kv_janitor.py Loading commit data...
ds4_worker.py Loading commit data...
embeddings.py Loading commit data...
environments.py Loading commit data...
faceswap.py Loading commit data...
fastlog.py Loading commit data...
h3_worker.py Loading commit data...
hub_compat.py Loading commit data...
images.py Loading commit data...
k3_worker.py Loading commit data...
kt_worker.py Loading commit data...
lipsync.py Loading commit data...
log.py Loading commit data...
loras.py Loading commit data...
ocr.py Loading commit data...
parler_worker.py Loading commit data...
pipelines.py Loading commit data...
prompt_cache.py Loading commit data...
pyannote_worker.py Loading commit data...
ratelimit.py Loading commit data...
rerank.py Loading commit data...
runpod_client.py Loading commit data...
runpod_ledger.py Loading commit data...
runpod_worker.py Loading commit data...
spatial.py Loading commit data...
speaker_embeddings.py Loading commit data...
speaker_registry.py Loading commit data...
state.py Loading commit data...
stt_backends.py Loading commit data...
text.py Loading commit data...
transcriptions.py Loading commit data...
tts.py Loading commit data...
tts_backends.py Loading commit data...
urlutils.py Loading commit data...
video.py Loading commit data...
vllm_worker.py Loading commit data...
voice_clone.py Loading commit data...
voice_convert.py Loading commit data...
vpr_salad_server.py Loading commit data...