ComfyUI Node
Chroma RoPE Patch
Applies YaRN, p-RoPE, DyPE and other RoPE modifications to Chroma/FLUX models for high-resolution generation.
Chroma RoPE Patch
- model
- Patched Model
◄methodyarn_freq_stretch►
◄rope_percentage1.00►
◄yarn_ramp_typesqrt►
◄dypetrue►
◄max_pe_length64►
◄yarn_ratio1.00►
◄yarn_beta_fast32►
◄yarn_beta_slow2►
◄timestep_modulationfalse►
◄timestep_period_min1000►
◄timestep_period_max10000►
◄attn_ratio1.000►
Categorymodel_patches/unet
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | The Chroma model to patch with DyPE. | |
| method | COMBO | yarn_freq_stretch | Position encoding extrapolation method (YARN Frequency Stretch recommended). |
| rope_percentage | FLOAT | 1.000–1 | p-RoPE: Proportion of dimensions to apply RoPE. 1.0=standard RoPE, 0.75=truncate lowest 25%, 0.0=NoPE (pure semantic). Applied on top of selected method. |
| yarn_ramp_type | COMBO | sqrt | YaRN ramp function type for frequency blending: linear, sigmoid (smooth transition), pow2 (aggressive), or sqrt (conservative). |
| dypeopt | BOOLEAN | true | Enable Dynamic Position Extrapolation (DyPE) with timestep-dependent frequency modulation. Provides better high-resolution coherence. |
| max_pe_lengthopt | FLOAT | 641–1024 | Advanced: Max shift for the noise schedule (mu) at high resolutions. Default is 64. |
| yarn_ratioopt | FLOAT | 1.000.01–10 | YaRN scaling ratio multiplier. Higher values increase extrapolation strength for high-resolution generation. |
| yarn_beta_fastopt | FLOAT | 321–1024 | YaRN beta_fast parameter: rotation cutoff for high-frequency dimensions (32=default, lower=more extrapolation). |
| yarn_beta_slowopt | FLOAT | 21–1024 | YaRN beta_slow parameter: rotation cutoff for low-frequency dimensions (2=default, higher=less extrapolation). |
| timestep_modulationopt | BOOLEAN | false | Enable timestep-dependent theta scaling. Modulates frequency periods based on diffusion noise level. |
| timestep_period_minopt | FLOAT | 10001–1000000 | Theta period at maximum noise (t=1.0). Lower values = higher frequencies during early denoising. |
| timestep_period_maxopt | FLOAT | 100001–100000000 | Theta period at minimum noise (t=0.0). Higher values = lower frequencies during final refinement. |
| attn_ratioopt | FLOAT | 1.0000–10 | Attention scaling factor. Applies attention temperature scaling to RoPE embeddings (1.0=normal). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| Patched Model | MODEL | The Chroma model patched with DyPE. |