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

# TorchCompileModel - ComfyUI Built-in Node Documentation

> The TorchCompileModel node applies PyTorch compilation to a model to optimize its performance.

The TorchCompileModel node applies PyTorch compilation to a model to optimize its performance. It creates a copy of the input model and wraps it with PyTorch's compilation functionality using the specified backend. This can improve the model's execution speed during inference.

## Inputs

| Parameter | Description | Data Type | Required | Range |
| - | - | - | - | - |
| `model` | The model to be compiled and optimized | MODEL | Yes | - |
| `backend` | The PyTorch compilation backend to use for optimization (default: "inductor") | STRING | Yes | "inductor"<br />"cudagraphs" |

## Outputs

| Output Name | Description | Data Type |
| - | - | - |
| `model` | The compiled model with PyTorch compilation 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/TorchCompileModel/en.md)

***

**Source fingerprint (SHA-256):** `240c6eb84ce2b93fe4d7c04fcf69df571e662f17893a4fd8e721241ea082edc8`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.