This is my first MOSS Image merge. It was created using sd-mecha 1.2.0. The merge was performed with Python code since comfy-mecha haven't updated to support MOSS Image yet.
Python code and mecha recipe for merging
import torch
import sd_mecha
base = sd_mecha.model("moss_image_sft_bf16.safetensors")
models = [sd_mecha.model("hassakuMoss2.safetensors"), sd_mecha.model("raehoshi_moss_image_v1.0_bf16.safetensors")]
recipe = sd_mecha.add_difference_ties_extended(base, *models, k=0.3, vote_sgn=True, apply_median=True)
sd_mecha.merge(recipe, output="MossMechaMix.safetensors", merge_device="cuda", merge_dtype=torch.float32, output_dtype=torch.bfloat16)
sd_mecha.serialize(recipe, output="MossMechaMix.txt")version 0.1.0
model "moss_image_sft_bf16.safetensors" model_config=null merge_space="weight"
model "hassakuMoss2.safetensors" model_config=null merge_space="weight"
merge "subtract" &1 &0
model "raehoshi_moss_image_v1.0_bf16.safetensors" model_config=null merge_space="weight"
merge "subtract" &3 &0
dict key=0.3
literal &5 model_config="singleton-mecha" merge_space=null
merge "convert_singleton" &6
dict key=true
literal &8 model_config="singleton-mecha" merge_space=null
merge "convert_singleton" &9
dict key=false
literal &11 model_config="singleton-mecha" merge_space=null
merge "convert_singleton" &12
dict key=1e-06
literal &14 model_config="singleton-mecha" merge_space=null
merge "convert_singleton" &15
dict key=100
literal &17 model_config="singleton-mecha" merge_space=null
merge "convert_singleton" &18
dict key=1e-20
literal &20 model_config="singleton-mecha" merge_space=null
merge "convert_singleton" &21
merge "ties_sum_extended" &2 &4 k=&7 vote_sgn=&10 apply_stock=&13 apply_median=&10 cos_eps=&16 eps=&16 maxiter=&19 ftol=&22
dict key=1.0
literal &24 model_config="singleton-mecha" merge_space=null
merge "convert_singleton" &25
merge "add_difference" &0 &23 &26
merge "fallback" &27 &0




