### Python Example: Merging SDXL Base and SDXL Turbo Source: https://github.com/martyn/safetensors-merge-supermario/blob/main/README.md This specific example illustrates how to merge `sdxl_base.safetensors` with `sd_xl_turbo_1.0_fp16.safetensors` using a weight drop probability of 0.13 and a lambda scaling factor of 3.0. The merged model will be saved as `sdxl_merged.safetensors`. The script is flexible and works even if the order of the base and merge models is reversed. ```Python python3 merge.py -p 0.13 -lambda 3.0 sdxl_base.safetensors sd_xl_turbo_1.0_fp16.safetensors sdxl_merged.safetensors ``` -------------------------------- ### ComfyUI Workflow for Merged SDXL Models Source: https://github.com/martyn/safetensors-merge-supermario/blob/main/README.md This entry provides a reference to a ComfyUI workflow JSON file, `comfyui-sdxl-base-turbo-merged.json`. This workflow is designed to utilize the merged SDXL base and turbo models, enabling rendering at 1024 resolution. Users can download and import this JSON file into ComfyUI to replicate the demonstrated setup. ```APIDOC { "workflow_type": "ComfyUI", "description": "ComfyUI workflow for using merged SDXL base and turbo models at 1024 resolution.", "file_path": "assets/comfyui-sdxl-base-turbo-merged.json", "notes": "This is a reference to an external JSON file. Download and import into ComfyUI." } ``` -------------------------------- ### Python CLI Usage for Super Mario Model Merge Source: https://github.com/martyn/safetensors-merge-supermario/blob/main/README.md This command-line interface snippet demonstrates the general syntax for merging two safetensors models using the `merge.py` script. It requires specifying a weight drop probability, a scaling factor, the base model file/folder, the model to merge, and the output path. The script supports various model types including Stable Diffusion, LLMs, and LoRAs. ```Python python3 merge.py -p [weight drop probability] -lambda [scaling factor] [base_safetensors_model_file_or_folder] [model_to_merge] [output_path] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.