Spaces:
Sleeping
Sleeping
Commit ·
54a557e
1
Parent(s): 7f31eab
fixed measures bias of StreamingLilyletGenerator
Browse files269 unmodified lines270271272273274275276269 unmodified linespatches.append(chunk + [self.pad_id] * (self.patch_size - len(chunk)))out_text = self.patches_to_text(patches[1:])prime_ids = self.tokenizer.encode(f'[r:0/{measures}]') if measures is not None else Noneprimed = False# seed the monitor's running context/stream from the prompt patches (if any)269 unmodified lines270271272273274275276277278269 unmodified linespatches.append(chunk + [self.pad_id] * (self.patch_size - len(chunk)))out_text = self.patches_to_text(patches[1:])# 0-based marker: `y` counts measures remaining AFTER this one (patchifier:# y = total - i - 1), so `[r:0/{measures-1}]` yields exactly `measures` total.prime_ids = self.tokenizer.encode(f'[r:0/{measures - 1}]') if measures is not None and measures >= 1 else Noneprimed = False# seed the monitor's running context/stream from the prompt patches (if any)
lilyscript/generator.py+3-1