> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-chore-sync-comfy-api-v2-spec-463e218.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# UNetSelfAttentionMultiply - ComfyUI Built-in Node Documentation

> The UNetSelfAttentionMultiply node applies multiplication factors to the query, key, value, and output components of the self-attention mechanism in a UNet model.

The UNetSelfAttentionMultiply node applies multiplication factors to the query, key, value, and output components of the self-attention mechanism in a UNet model. It allows you to scale different parts of the attention computation to experiment with how attention weights affect the model's behavior.

## Inputs

| Parameter | Description                                               | Data Type | Required | Range      |
| --------- | --------------------------------------------------------- | --------- | -------- | ---------- |
| `model`   | The UNet model to modify with attention scaling factors   | MODEL     | Yes      | -          |
| `q`       | Multiplication factor for query component (default: 1.0)  | FLOAT     | No       | 0.0 - 10.0 |
| `k`       | Multiplication factor for key component (default: 1.0)    | FLOAT     | No       | 0.0 - 10.0 |
| `v`       | Multiplication factor for value component (default: 1.0)  | FLOAT     | No       | 0.0 - 10.0 |
| `out`     | Multiplication factor for output component (default: 1.0) | FLOAT     | No       | 0.0 - 10.0 |

## Outputs

| Output Name | Description                                              | Data Type |
| ----------- | -------------------------------------------------------- | --------- |
| `MODEL`     | The modified UNet model with scaled attention components | 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/UNetSelfAttentionMultiply/en.md)

***

**Source fingerprint (SHA-256):** `7a6039eb2faae56437a5eb6fe01be6d38e53c0632175a3405a1e24a476d4da82`
