Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The Context Windows (Manual) node allows you to manually configure context windows for models during sampling. It creates overlapping context segments with specified length, overlap, and scheduling patterns to process data in manageable chunks while maintaining continuity between segments.

Inputs

ParameterData TypeRequiredRangeDescription
modelMODELYes-The model to apply context windows to during sampling.
context_lengthINTNo1+The length of the context window (default: 16).
context_overlapINTNo0+The overlap of the context window (default: 4).
context_scheduleCOMBONoSTATIC_STANDARD
UNIFORM_STANDARD
UNIFORM_LOOPED
BATCHED
The stride of the context window.
context_strideINTNo1+The stride of the context window; only applicable to uniform schedules (default: 1).
closed_loopBOOLEANNo-Whether to close the context window loop; only applicable to looped schedules (default: False).
fuse_methodCOMBONoPYRAMID
LIST_STATIC
The method to use to fuse the context windows (default: PYRAMID).
dimINTNo0-5The dimension to apply the context windows to (default: 0).
Parameter Constraints:
  • context_stride is only used when uniform schedules are selected
  • closed_loop is only applicable to looped schedules
  • dim must be between 0 and 5 inclusive

Outputs

Output NameData TypeDescription
modelMODELThe model with context windows applied during sampling.