Nodes/Realtime LoRA Trainer/Selective LoRA Loader (MiniMax H3)
ComfyUI Node

Selective LoRA Loader (MiniMax H3)

50 checkboxes for your MiniMax H3 LoRA, no analysis needed

By shootthesound·Created 9 months ago·Updated 21 days ago· 555
Selective LoRA Loader (MiniMax H3)
  • model
  • clip
  • model
  • clip
  • info
  • weights_output
lora_name
strength1.00
presetAll Blocks
block_0true
block_0_str1.00
block_1true
block_1_str1.00
block_2true
block_2_str1.00
block_3true
block_3_str1.00
block_4true
block_4_str1.00
block_5true
block_5_str1.00
block_6true
block_6_str1.00
block_7true
block_7_str1.00
block_8true
block_8_str1.00
block_9true
block_9_str1.00
block_10true
block_10_str1.00
block_11true
block_11_str1.00
block_12true
block_12_str1.00
block_13true
block_13_str1.00
block_14true
block_14_str1.00
block_15true
block_15_str1.00
block_16true
block_16_str1.00
block_17true
block_17_str1.00
block_18true
block_18_str1.00
block_19true
block_19_str1.00
block_20true
block_20_str1.00
block_21true
block_21_str1.00
block_22true
block_22_str1.00
block_23true
block_23_str1.00
block_24true
block_24_str1.00
block_25true
block_25_str1.00
block_26true
block_26_str1.00
block_27true
block_27_str1.00
block_28true
block_28_str1.00
block_29true
block_29_str1.00
block_30true
block_30_str1.00
block_31true
block_31_str1.00
block_32true
block_32_str1.00
block_33true
block_33_str1.00
block_34true
block_34_str1.00
block_35true
block_35_str1.00
block_36true
block_36_str1.00
block_37true
block_37_str1.00
block_38true
block_38_str1.00
block_39true
block_39_str1.00
block_40true
block_40_str1.00
block_41true
block_41_str1.00
block_42true
block_42_str1.00
block_43true
block_43_str1.00
block_44true
block_44_str1.00
block_45true
block_45_str1.00
block_46true
block_46_str1.00
block_47true
block_47_str1.00
block_48true
block_48_str1.00
block_49true
block_49_str1.00
other_weightstrue
other_weights_str1.00
lora_path_opt
analysis_json
block_weights_string
save_refined_lorafalse
save_path
save_filename

The plain selective loader from the ShootTheSound/comfyUI-Realtime-Lora pack ("Realtime LoRA Trainer"), aimed at MiniMax H3. If you already know which DiT blocks are causing trouble in your H3 LoRA - or you just want the fastest way to experiment - this is the no-frills version: 50 toggles and 50 strength sliders, nothing else in the way. The fancier MiniMax H3 Analyzer + Selective Loader V2 from the same pack throws in impact analysis and strength scheduling, but you don't always need the surgical instruments.

MiniMax H3 is a 33B omni-modal model that does text, image, video and audio in one context, and its LoRAs are correspondingly sprawling. LoRA effect isn't spread evenly through a model - some blocks learn the subject, some the style, some mostly artifacts - so being able to mute individual blocks is a legitimate fix for a LoRA that's 90% there. H3's main packed DiT blocks run 0–49 (early 0–12, middle 13–37, late 38–49), and the token-refiner plus any other non-block H3 tensors are corralled under one other_weights control.

How it works

The node loads the LoRA file from models/loras, maps each tensor to a block number, keeps only the enabled blocks at their per-block strength, and hands the filtered result to ComfyUI's stock LoRA loader. Two details make it H3-robust:

  • It understands both key formats H3 LoRAs arrive in - the native diffusion_model.blocks.* keys and the lora_unet_blocks_* keys from the training tools - so a LoRA trains and loads without conversion gymnastics.
  • When you scale a block it scales only the "up" factor, because ComfyUI multiplies the two LoRA factors together at load time. Scaling one factor keeps the strength linear and signed, so a 0.5 slider means half, not a quarter, and negative strengths behave like you'd expect.

Inputs that matter

  • model and clip - from your checkpoint and text encoder loaders, same wiring as the stock LoraLoader.
  • preset - All Blocks by default; the presets (Late Only (38-49), Mid-Late (25-49), Skip Early (13-49), and so on) are one-click experiments. Custom is where the individual toggles kick in.
  • analysis_json - optional, but plug in the pack's "LoRA Loader + Analyzer" output here and the checkboxes color-code by measured impact, which beats guessing.
  • lora_path_opt - overrides the dropdown, handy after a fresh train.

Outputs are model, clip, and two strings: info (a running summary of what got loaded, enabled and scaled) and weights_output (the block profile if you want to reuse it elsewhere). Unusually for a V1 loader, this one also has optional save_refined_lora / save_path / save_filename inputs, so you can write the exact filtered LoRA it applied to disk.

Installing it

cd ComfyUI/custom_nodes
git clone https://github.com/ShootTheSound/comfyUI-Realtime-Lora

Restart ComfyUI, or find "Realtime LoRA Trainer" in ComfyUI Manager. This is a loader, not a trainer, so it needs no extra installation - the training backends this pack is known for (sd-scripts, Musubi Tuner, AI-Toolkit) are only for the trainer nodes. The requirements file is effectively empty beyond ComfyUI's own dependencies.

Reality check

Before you spend a weekend on H3 LoRAs: the MiniMax H3 Community License excludes the US, EU, UK and South Korea from its Applicable Territory. If you're in one of those regions you're not licensed to run the local weights - no loader changes that. And it's a ~33B model; treat the pre-release "it runs on a 3060" talk as rumor, because no verified consumer hardware floor was published at release.

Where people get burned

  • Disabling everything but other_weights produces broken output. Disable in ranges.
  • A connected block_weights_string silently overrides every checkbox. Power-user feature, easy to trip over.
  • All blocks off returns a warning string ("All blocks disabled, no LoRA applied") and passes the model through untouched - which is actually the correct behavior, just don't mistake it for a crash.

If you don't know which blocks matter yet, start with the V2 analyzer version of this node instead; it'll tell you. Once you know, this is the one you'll actually leave in the workflow.

Categoryloaders/lora

Inputs (113)

NameTypeDefaultDescription
modelMODEL
clipCLIP
lora_nameCOMBOMiniMax H3 LoRA file to load
strengthFLOAT1.00-5–5Overall LoRA strength
presetCOMBOAll BlocksQuick preset selection. Choose 'Custom' to use individual toggles below.
block_0BOOLEANtrue
block_0_strFLOAT1.00-5–5
block_1BOOLEANtrue
block_1_strFLOAT1.00-5–5
block_2BOOLEANtrue
block_2_strFLOAT1.00-5–5
block_3BOOLEANtrue
block_3_strFLOAT1.00-5–5
block_4BOOLEANtrue
block_4_strFLOAT1.00-5–5
block_5BOOLEANtrue
block_5_strFLOAT1.00-5–5
block_6BOOLEANtrue
block_6_strFLOAT1.00-5–5
block_7BOOLEANtrue
block_7_strFLOAT1.00-5–5
block_8BOOLEANtrue
block_8_strFLOAT1.00-5–5
block_9BOOLEANtrue
block_9_strFLOAT1.00-5–5
block_10BOOLEANtrue
block_10_strFLOAT1.00-5–5
block_11BOOLEANtrue
block_11_strFLOAT1.00-5–5
block_12BOOLEANtrue
block_12_strFLOAT1.00-5–5
block_13BOOLEANtrue
block_13_strFLOAT1.00-5–5
block_14BOOLEANtrue
block_14_strFLOAT1.00-5–5
block_15BOOLEANtrue
block_15_strFLOAT1.00-5–5
block_16BOOLEANtrue
block_16_strFLOAT1.00-5–5
block_17BOOLEANtrue
block_17_strFLOAT1.00-5–5
block_18BOOLEANtrue
block_18_strFLOAT1.00-5–5
block_19BOOLEANtrue
block_19_strFLOAT1.00-5–5
block_20BOOLEANtrue
block_20_strFLOAT1.00-5–5
block_21BOOLEANtrue
block_21_strFLOAT1.00-5–5
block_22BOOLEANtrue
block_22_strFLOAT1.00-5–5
block_23BOOLEANtrue
block_23_strFLOAT1.00-5–5
block_24BOOLEANtrue
block_24_strFLOAT1.00-5–5
block_25BOOLEANtrue
block_25_strFLOAT1.00-5–5
block_26BOOLEANtrue
block_26_strFLOAT1.00-5–5
block_27BOOLEANtrue
block_27_strFLOAT1.00-5–5
block_28BOOLEANtrue
block_28_strFLOAT1.00-5–5
block_29BOOLEANtrue
block_29_strFLOAT1.00-5–5
block_30BOOLEANtrue
block_30_strFLOAT1.00-5–5
block_31BOOLEANtrue
block_31_strFLOAT1.00-5–5
block_32BOOLEANtrue
block_32_strFLOAT1.00-5–5
block_33BOOLEANtrue
block_33_strFLOAT1.00-5–5
block_34BOOLEANtrue
block_34_strFLOAT1.00-5–5
block_35BOOLEANtrue
block_35_strFLOAT1.00-5–5
block_36BOOLEANtrue
block_36_strFLOAT1.00-5–5
block_37BOOLEANtrue
block_37_strFLOAT1.00-5–5
block_38BOOLEANtrue
block_38_strFLOAT1.00-5–5
block_39BOOLEANtrue
block_39_strFLOAT1.00-5–5
block_40BOOLEANtrue
block_40_strFLOAT1.00-5–5
block_41BOOLEANtrue
block_41_strFLOAT1.00-5–5
block_42BOOLEANtrue
block_42_strFLOAT1.00-5–5
block_43BOOLEANtrue
block_43_strFLOAT1.00-5–5
block_44BOOLEANtrue
block_44_strFLOAT1.00-5–5
block_45BOOLEANtrue
block_45_strFLOAT1.00-5–5
block_46BOOLEANtrue
block_46_strFLOAT1.00-5–5
block_47BOOLEANtrue
block_47_strFLOAT1.00-5–5
block_48BOOLEANtrue
block_48_strFLOAT1.00-5–5
block_49BOOLEANtrue
block_49_strFLOAT1.00-5–5
other_weightsBOOLEANtrue
other_weights_strFLOAT1.00-5–5
lora_path_optoptSTRINGOptional: Connect from LoRA Analyzer to use its selected LoRA
analysis_jsonoptSTRINGOptional: Connect from LoRA Analyzer for impact-colored checkboxes
block_weights_stringoptSTRINGOptional positional or named block profile. A connected string overrides the individual controls.
save_refined_loraoptBOOLEANfalseSave the exact filtered/scaled LoRA applied by this node.
save_pathoptSTRINGDirectory where the filtered LoRA will be saved.
save_filenameoptSTRINGBase filename. A timestamp and .safetensors are added automatically.

Outputs (4)

NameTypeDescription
modelMODEL
clipCLIP
infoSTRING
weights_outputSTRING