Nodes/ComfyUI_agilly1989_motorway/ModelMergeCosmos14B_motorway_edition
ComfyUI Node

ModelMergeCosmos14B_motorway_edition

NVIDIA's video model, blended block by block

By agilly1989·Created 2 years ago·Updated about a year ago· 7
ModelMergeCosmos14B_motorway_edition
  • MOTORWAY 🚌💨
  • MOTORWAY 🚌💨
INPUT_model1_keymodel1
INPUT_model2_keymodel2
pos_embedder.1.00
extra_pos_embedder.1.00
x_embedder.1.00
t_embedder.1.00
affline_norm.1.00
blocks.block0.1.00
blocks.block1.1.00
blocks.block2.1.00
blocks.block3.1.00
blocks.block4.1.00
blocks.block5.1.00
blocks.block6.1.00
blocks.block7.1.00
blocks.block8.1.00
blocks.block9.1.00
blocks.block10.1.00
blocks.block11.1.00
blocks.block12.1.00
blocks.block13.1.00
blocks.block14.1.00
blocks.block15.1.00
blocks.block16.1.00
blocks.block17.1.00
blocks.block18.1.00
blocks.block19.1.00
blocks.block20.1.00
blocks.block21.1.00
blocks.block22.1.00
blocks.block23.1.00
blocks.block24.1.00
blocks.block25.1.00
blocks.block26.1.00
blocks.block27.1.00
blocks.block28.1.00
blocks.block29.1.00
blocks.block30.1.00
blocks.block31.1.00
blocks.block32.1.00
blocks.block33.1.00
blocks.block34.1.00
blocks.block35.1.00
final_layer.1.00
OUTPUT_MODEL_keyMODEL

Cosmos is NVIDIA's video-model family, and the 14B variant is the big one. ModelMergeCosmos14B is ComfyUI's per-block merge node for that specific architecture - 36 transformer blocks plus a distinctive embedder set - and this is its Motorway-ed clone. The model-specific merge nodes exist because each transformer layout has its own block names, and Cosmos's are different enough that a generic merge can't address them by name.

The block layout

  • pos_embedder and extra_pos_embedder - positional embeddings for the spatial and temporal structure. Video models lean on these hard; if your two checkpoints differ in training resolutions or frame counts, these are the first regions to treat carefully.
  • x_embedder - the latent input projection.
  • t_embedder - timestep conditioning.
  • affline_norm - (spelled that way in the node, it's a legacy "affine" norm) the normalization for the conditioning path.
  • blocks.block0blocks.block35 - the 36 main transformer blocks. Lower blocks handle coarse structure and motion; the higher ones carry fine temporal detail.
  • final_layer - the output projection back to latent space.

Every ratio defaults to 1.0, and the family gotcha applies without exception: untouched, the merge returns model2. Set a base blend across all the floats first, then push regions - embedders for conditioning behavior, late blocks for detail.

Worth knowing before you sink time in: Cosmos models (including the Predict2 generation) were primarily pitched at world-model research and robotics, not at the image/video-checkpoint merge culture. If you're merging Cosmos checkpoints, you're on the frontier, which means thinner community recipe lore - lean on your own sampling, and keep expectations modest on first tries.

The inputs

  • INPUT_model1_key (default model1) and INPUT_model2_key (default model2) - the two Cosmos 14B models.
  • The block ratios, each 0.0–1.0, step 0.01, default 1.0.
  • OUTPUT_MODEL_key (default MODEL) - where the merged model lands.

The wrapper keeps every ratio as a widget, turns the models into key strings, and keyed-writes the result. Runtime behavior matches stock ModelMergeCosmos14B.

Install

One install for the whole pack. ComfyUI Manager, search "ComfyUI_agilly1989_motorway", or:

cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway

Restart ComfyUI. No requirements.txt, no model downloads.

Troubleshooting

  • Result is pure model2? All ratios default to 1.0 - set a base blend first.
  • Use the 14B node for 14B checkpoints and the 7B node for 7B - the block counts differ (36 vs 28), so cross-using them won't blend anything meaningful.
  • Merge Cosmos with Cosmos only. LTX, Mochi, and Flux each have their own block layouts; the numbers won't map.
  • 'MotorwayClass' object has no attribute 'hash_' = a model key isn't in the Motorway; check the loaders ran and the key spelling matches (case-sensitive).
  • Pack caveats: BETA, and the newest published version (1.1.7) disabled clone generation, so on a fresh install these _motorway_edition nodes may be missing from the menu. They're present in the 1.1.0–1.1.6 builds comfy.icu indexed.
Categoryagilly1989 Nodes/Motorway-ed/advanced/model_merging/model_specific

Inputs (46)

NameTypeDefaultDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨
INPUT_model1_keySTRINGmodel1
INPUT_model2_keySTRINGmodel2
pos_embedder.FLOAT1.000–1
extra_pos_embedder.FLOAT1.000–1
x_embedder.FLOAT1.000–1
t_embedder.FLOAT1.000–1
affline_norm.FLOAT1.000–1
blocks.block0.FLOAT1.000–1
blocks.block1.FLOAT1.000–1
blocks.block2.FLOAT1.000–1
blocks.block3.FLOAT1.000–1
blocks.block4.FLOAT1.000–1
blocks.block5.FLOAT1.000–1
blocks.block6.FLOAT1.000–1
blocks.block7.FLOAT1.000–1
blocks.block8.FLOAT1.000–1
blocks.block9.FLOAT1.000–1
blocks.block10.FLOAT1.000–1
blocks.block11.FLOAT1.000–1
blocks.block12.FLOAT1.000–1
blocks.block13.FLOAT1.000–1
blocks.block14.FLOAT1.000–1
blocks.block15.FLOAT1.000–1
blocks.block16.FLOAT1.000–1
blocks.block17.FLOAT1.000–1
blocks.block18.FLOAT1.000–1
blocks.block19.FLOAT1.000–1
blocks.block20.FLOAT1.000–1
blocks.block21.FLOAT1.000–1
blocks.block22.FLOAT1.000–1
blocks.block23.FLOAT1.000–1
blocks.block24.FLOAT1.000–1
blocks.block25.FLOAT1.000–1
blocks.block26.FLOAT1.000–1
blocks.block27.FLOAT1.000–1
blocks.block28.FLOAT1.000–1
blocks.block29.FLOAT1.000–1
blocks.block30.FLOAT1.000–1
blocks.block31.FLOAT1.000–1
blocks.block32.FLOAT1.000–1
blocks.block33.FLOAT1.000–1
blocks.block34.FLOAT1.000–1
blocks.block35.FLOAT1.000–1
final_layer.FLOAT1.000–1
OUTPUT_MODEL_keySTRINGMODEL

Outputs (1)

NameTypeDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨