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

# ModelAttentionBackend - ComfyUI Built-in Node Documentation

> このノードは、モデルに対して密なアテンション実装を選択し、モデルをクローンして、選択したバックエンドを適用し、パッチ適用済みのクローンを返します。

このノードは、モデルに対して密なアテンション実装を選択し、モデルをクローンして、選択したバックエンドを適用し、パッチ適用済みのクローンを返します。Block Sparse Attention と併用する場合、スパースアテンションが非アクティブまたは未対応のときは常にこのバックエンドが使用されます。選択したバックエンドが利用できない場合、ノードは自動的に PyTorch attention にフォールバックします。

## 入力

| パラメータ       | 説明                                                                                                                                                                                  | データ型  | 必須 | 範囲                                                 |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | -- | -------------------------------------------------- |
| `model`     | パッチを適用するモデル。                                                                                                                                                                        | MODEL | はい |                                                    |
| `attention` | 適用する密なアテンションバックエンド。Comfy Kitchen attention は量子化された INT8 アテンションを使用し、Nvidia および AMD GPU でのみ利用できます。デフォルト: "pytorch attention"。選択したバックエンドが利用できない場合、PyTorch attention がフォールバックとして使用されます。 | COMBO | はい | "pytorch attention"<br />"comfy kitchen attention" |

注: 「comfy kitchen attention」オプションは、現在の環境で Comfy Kitchen INT8 attention モジュールが利用可能な場合にのみ一覧に表示されます。

## 出力

| 出力名     | 説明                                 | データ型  |
| ------- | ---------------------------------- | ----- |
| `model` | 選択したアテンションバックエンドが適用された、入力モデルのクローン。 | MODEL |

> このドキュメントは AI によって生成されました。エラーを見つけた場合や改善のご提案がある場合は、ぜひ貢献してください！ [GitHub で編集](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ModelAttentionBackend/ja.md)

***

**Source fingerprint (SHA-256):** `4f6e4800c2a3bb09b47b7c8f0481e1b6de3070f57234e610df5d3ce60dfdb309`
