MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / make_disjoint_window

Function make_disjoint_window

test/general/lm_eval/utils.py:176–179  ·  view source on GitHub ↗

Takes output from get_rolling_token_windows and makes the context not overlap with the continuation

(pair)

Source from the content-addressed store, hash-verified

174
175
176def make_disjoint_window(pair):
177 """Takes output from get_rolling_token_windows and makes the context not overlap with the continuation"""
178 a, b = pair
179 return a[: len(a) - (len(b) - 1)], b
180
181
182def select_continuation_from_batch_left_padding(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected