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

# ModelSamplingLTXV - ComfyUI Built-in Node Documentation

> ModelSamplingLTXV 节点根据 token 数量将高级采样参数应用于模型。

ModelSamplingLTXV 节点根据 token 数量将高级采样参数应用于模型。它使用 `base_shift` 和 `max_shift` 之间的线性插值来计算偏移值，计算方式取决于输入 latent 中的 token 数量。该节点随后创建专门的模型采样配置，并将其应用于输入模型。

## 输入

| 参数       | 描述                                                         | 数据类型   | 是否必填 | 范围                       |
| -------- | ---------------------------------------------------------- | ------ | ---- | ------------------------ |
| `模型`     | 要应用采样参数的输入模型                                               | MODEL  | 是    | -                        |
| `最大移位`   | 线性插值计算中使用的最大偏移值（默认：2.05）                                   | FLOAT  | 是    | 0.0 到 100.0 (step: 0.01) |
| `基础移位`   | 线性插值计算中使用的基础偏移值（默认：0.95）                                   | FLOAT  | 是    | 0.0 到 100.0 (step: 0.01) |
| `Latent` | 可选的 latent 输入，用于确定偏移计算的 token 数量。如果未提供，则使用默认 token 数量 4096 | LATENT | 否    | -                        |

偏移值的计算方式是在 1024 到 4096 的 token 范围内，对 `base_shift` 和 `max_shift` 进行插值。当提供 `latent` 时，token 数量由其空间维度（如高度和宽度）的乘积计算得出。如果未提供 `latent`，token 数量默认为 4096。

## 输出

| 输出名称    | 描述            | 数据类型  |
| ------- | ------------- | ----- |
| `model` | 已应用采样参数的修改后模型 | MODEL |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ModelSamplingLTXV/zh.md)

***

**Source fingerprint (SHA-256):** `aba596c5478e9d6ee821eec1eca15506935bcc765a368087ccc442fc2ed6671b`
