> ## 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.

# SamplerLMS - ComfyUI Built-in Node Documentation

> The SamplerLMS node creates a Least Mean Squares (LMS) sampler for use in diffusion models.

The SamplerLMS node creates a Least Mean Squares (LMS) sampler for use in diffusion models. It generates a sampler object that can be used in the sampling process, allowing you to control the order of the LMS algorithm for numerical stability and accuracy.

## Inputs

| Parameter | Description | Data Type | Required | Range |
| - | - | - | - | - |
| `order` | The order parameter for the LMS sampler algorithm, which controls the numerical method's accuracy and stability (default: 4). This parameter is shown in the advanced section of the node interface. | INT | Yes | 1 to 100 |

## Outputs

| Output Name | Description | Data Type |
| - | - | - |
| `sampler` | A configured LMS sampler object that can be used in the sampling pipeline | SAMPLER |

> 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/SamplerLMS/en.md)

***

**Source fingerprint (SHA-256):** `3d59fbbd5b9b0bfa2ee3b384aca08855988d0b7a2a94d805f978b9dd7caa0f39`


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