> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-mintlify-b90d3c69.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Mahiro - ComfyUI Built-in Node Documentation

> Complete documentation for the Mahiro node in ComfyUI. Learn its inputs, outputs, parameters and usage.

The Mahiro node modifies the guidance function to focus more on the direction of the positive prompt rather than the difference between positive and negative prompts. It creates a patched model that applies a custom guidance scaling approach using cosine similarity between normalized conditional and unconditional denoised outputs. This experimental node helps steer the generation more strongly toward the positive prompt's intended direction.

## Inputs

| Parameter | Description                                                 | Data Type | Required | Range |
| --------- | ----------------------------------------------------------- | --------- | -------- | ----- |
| `model`   | The model to be patched with the modified guidance function | MODEL     | Yes      |       |

## Outputs

| Output Name     | Description                                                  | Data Type |
| --------------- | ------------------------------------------------------------ | --------- |
| `patched_model` | The modified model with the Mahiro guidance function applied | MODEL     |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/Mahiro/en.md)

***

**Source fingerprint (SHA-256):** `56f13cd14ffde21ab980850b62e07bdd4db6733a545f9329bf908c6030147981`
