Spaces:
Running on Zero
Running on Zero
|
Download codemap.md from jickman125/mmh3testing: direct link, hf CLI and curl.
- Browser
- Download file 2.55 kB
-
https://huggingface.co/spaces/jickman125/mmh3testing/resolve/main/codemap.md
- Command line
-
hf download hf://spaces/jickman125/mmh3testing/codemap.md
-
curl -L -o codemap.md https://huggingface.co/spaces/jickman125/mmh3testing/resolve/main/codemap.md
2.55 kB
A newer version of the Gradio SDK is available: 6.31.0
Repository Atlas: minimax-h3-loras
Purpose
This Hugging Face ZeroGPU Space runs the denoising half of MiniMax-H3. Each request calls multimodalart/qwen3vl-conditioner for prompt embeddings and token tags, then produces video and audio locally. The default denoiser is the pinned merged-Turbo bf16 10Eros-Max beta5 checkpoint; the original repository supplies VAEs and configuration.
Entry point and modules
app.py: importsspacesfirst, re-exports compatibility symbols, loads the model at startup, builds and launches the Gradio UI.config.py: environment settings, checkpoint selection, canvas labels, NSFW LoRA catalog, and UI limits.model.py: checkpoint and component loading, placement, AoTI decision, status, and decode hooks.h3_checkpoint.py: exact beta5 tensor mapping, compressed timestep curve, and transformer construction.pipeline.py: request flow, frame snapping, remote/encode, GPU generation, and video mux.ui.py: Gradio controls and event wiring.state.py,task.py,request.py: shared model state, per-request identity, and resource release.lora/: LoRA fetch, conversion, registry, cache, validation, apply, and remove operations.h3_split_blocks.py: Diffusers blocks for the splitt2vaandref2vapipelines.h3_aoti.py: optional AoTI for the original base checkpoint and separate build utilities.tests/: CPU and source-level checks for checkpoint conversion, LoRA compatibility, and task isolation.
Request flow
ui.build_ui()bindspipeline.generate(); the API preserves its positional arguments.pipeline._generate_impl()validates input and LoRA choices, snaps frames to17*n+5, and calls the conditioner/encode.- The conditioner returns a safetensors file with
prompt_embeds,text_token_tags, and resolved dimensions in metadata. pipeline._generate()runs on ZeroGPU, applies selected LoRAs under the model mutation lock, denoises and decodes, then releases request resources.- The CPU side muxes frames and audio into an MP4 and returns the download.
Cross-Space and checkpoint contracts
config.CANVASESlabels and the safetensors wire format must match the conditioner.H3_CHECKPOINT=10eros-turbo-beta5uses seven sampling points and does not load a separate Turbo LoRA.10eros-beta5is non-Turbo;baseuses the original transformer and optional Turbo LoRA.- The VAEs remain float32. The beta5 curve checkpoint skips the original AoTI package.
import spacesmust precede CUDA initialization.