Nodes/ComfyUI-Chroma-RoPE/Chroma RoPE Patch
ComfyUI Node

Chroma RoPE Patch

Applies YaRN, p-RoPE, DyPE and other RoPE modifications to Chroma/FLUX models for high-resolution generation.

By Clybius·Created 3 months ago·Updated 3 months ago· 1
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)

NameTypeDefaultDescription
modelMODELThe Chroma model to patch with DyPE.
methodCOMBOyarn_freq_stretchPosition encoding extrapolation method (YARN Frequency Stretch recommended).
rope_percentageFLOAT1.000–1p-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_typeCOMBOsqrtYaRN ramp function type for frequency blending: linear, sigmoid (smooth transition), pow2 (aggressive), or sqrt (conservative).
dypeoptBOOLEANtrueEnable Dynamic Position Extrapolation (DyPE) with timestep-dependent frequency modulation. Provides better high-resolution coherence.
max_pe_lengthoptFLOAT641–1024Advanced: Max shift for the noise schedule (mu) at high resolutions. Default is 64.
yarn_ratiooptFLOAT1.000.01–10YaRN scaling ratio multiplier. Higher values increase extrapolation strength for high-resolution generation.
yarn_beta_fastoptFLOAT321–1024YaRN beta_fast parameter: rotation cutoff for high-frequency dimensions (32=default, lower=more extrapolation).
yarn_beta_slowoptFLOAT21–1024YaRN beta_slow parameter: rotation cutoff for low-frequency dimensions (2=default, higher=less extrapolation).
timestep_modulationoptBOOLEANfalseEnable timestep-dependent theta scaling. Modulates frequency periods based on diffusion noise level.
timestep_period_minoptFLOAT10001–1000000Theta period at maximum noise (t=1.0). Lower values = higher frequencies during early denoising.
timestep_period_maxoptFLOAT100001–100000000Theta period at minimum noise (t=0.0). Higher values = lower frequencies during final refinement.
attn_ratiooptFLOAT1.0000–10Attention scaling factor. Applies attention temperature scaling to RoPE embeddings (1.0=normal).

Outputs (1)

NameTypeDescription
Patched ModelMODELThe Chroma model patched with DyPE.