ModelMergeCosmos7B_motorway_edition
The smaller NVIDIA video model, block by block
- MOTORWAY 🚌💨
- MOTORWAY 🚌💨
Cosmos comes in sizes, and the 7B is the one that fits on more GPUs. ModelMergeCosmos7B is ComfyUI's per-block merge node for the smaller Cosmos architecture - 28 transformer blocks with the same embedder family as its 14B sibling - and this is its Motorway-ed clone.
The block layout
pos_embedderandextra_pos_embedder- positional embeddings for spatial/temporal structure.x_embedder- the latent input projection.t_embedder- timestep conditioning.affline_norm- the conditioning-path normalization (the spelling is from the architecture, not a typo).blocks.block0–blocks.block27- the 28 main transformer blocks. Early blocks carry coarse structure and motion; later ones carry fine temporal detail.final_layer- the output projection.
The 7B node mirrors the 14B node with a smaller block count - same embedders, same behavior, fewer transformers. And the family gotcha holds: all ratios default to 1.0, so an untouched merge returns model2. The practical recipe is identical to the other per-block nodes - set a base blend across all the floats, sample, then push the regions you care about.
Honest note on the whole Cosmos merge niche: NVIDIA pitched these models at world-model and research use, so the community recipe book for merging them is thin compared to the SDXL/Flux scene. You're more likely here because the motorway_edition generator cloned every built-in node than because the merge culture demanded it - which is fine. The node works exactly like its siblings; you'll just be writing your own playbook for what blends well.
The inputs
INPUT_model1_key(defaultmodel1) andINPUT_model2_key(defaultmodel2) - the two Cosmos 7B models.- The block ratios, each 0.0–1.0, step 0.01, default 1.0.
OUTPUT_MODEL_key(defaultMODEL) - 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 ModelMergeCosmos7B.
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.
- Don't use the 7B node on 14B weights (or vice versa) - the block counts differ and the ratios won't map.
- Merge Cosmos with Cosmos only; other video/transformer families have incompatible layouts.
'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_editionnodes may be missing from the menu. They're present in the 1.1.0–1.1.6 builds comfy.icu indexed.
Inputs (38)
| Name | Type | Default | Description |
|---|---|---|---|
| MOTORWAY 🚌💨 | MOTORWAY 🚌💨 | — | |
| INPUT_model1_key | STRING | model1 | — |
| INPUT_model2_key | STRING | model2 | — |
| pos_embedder. | FLOAT | 1.000–1 | — |
| extra_pos_embedder. | FLOAT | 1.000–1 | — |
| x_embedder. | FLOAT | 1.000–1 | — |
| t_embedder. | FLOAT | 1.000–1 | — |
| affline_norm. | FLOAT | 1.000–1 | — |
| blocks.block0. | FLOAT | 1.000–1 | — |
| blocks.block1. | FLOAT | 1.000–1 | — |
| blocks.block2. | FLOAT | 1.000–1 | — |
| blocks.block3. | FLOAT | 1.000–1 | — |
| blocks.block4. | FLOAT | 1.000–1 | — |
| blocks.block5. | FLOAT | 1.000–1 | — |
| blocks.block6. | FLOAT | 1.000–1 | — |
| blocks.block7. | FLOAT | 1.000–1 | — |
| blocks.block8. | FLOAT | 1.000–1 | — |
| blocks.block9. | FLOAT | 1.000–1 | — |
| blocks.block10. | FLOAT | 1.000–1 | — |
| blocks.block11. | FLOAT | 1.000–1 | — |
| blocks.block12. | FLOAT | 1.000–1 | — |
| blocks.block13. | FLOAT | 1.000–1 | — |
| blocks.block14. | FLOAT | 1.000–1 | — |
| blocks.block15. | FLOAT | 1.000–1 | — |
| blocks.block16. | FLOAT | 1.000–1 | — |
| blocks.block17. | FLOAT | 1.000–1 | — |
| blocks.block18. | FLOAT | 1.000–1 | — |
| blocks.block19. | FLOAT | 1.000–1 | — |
| blocks.block20. | FLOAT | 1.000–1 | — |
| blocks.block21. | FLOAT | 1.000–1 | — |
| blocks.block22. | FLOAT | 1.000–1 | — |
| blocks.block23. | FLOAT | 1.000–1 | — |
| blocks.block24. | FLOAT | 1.000–1 | — |
| blocks.block25. | FLOAT | 1.000–1 | — |
| blocks.block26. | FLOAT | 1.000–1 | — |
| blocks.block27. | FLOAT | 1.000–1 | — |
| final_layer. | FLOAT | 1.000–1 | — |
| OUTPUT_MODEL_key | STRING | MODEL | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MOTORWAY 🚌💨 | MOTORWAY 🚌💨 | — |