You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""DRFAT: A minimal buffer strategy that buffers chunks and yields them when the buffer is full."""
41
+
classRollingBuffer(BufferStrategy):
42
+
"""A minimal buffer strategy that buffers chunks and yields them when the buffer is full.
39
43
40
-
# - **chunk_size (X)**: This would correspond to the number of tokens in each chunk processed by the `streaming_handler`.
41
-
# - **max_validation_length (N)**: This would correspond to the `look_back_size` parameter in the code, representing the maximum number of lookback chunks.
42
-
#
43
-
# In the code:
44
-
# - `window_size` represents the number of chunks to process in each window.
45
-
# - `look_back_size` represents the number of previous chunks to include in the window for context.
44
+
Args:
45
+
buffer_context_size (int): The number of tokens carried over from the previous chunk to provide context for continuity in processing.
46
+
buffer_chunk_size (int): The number of tokens in each processing chunk. This is the size of the token block on which output rails are applied.
0 commit comments