We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bfb311 commit 3405136Copy full SHA for 3405136
aiu_fms_testing_utils/scripts/drive_paged_programs.py
@@ -195,11 +195,12 @@
195
"Using custom prompts from user, programs parameter will be ignored as it will be determined by user prompt"
196
)
197
result = []
198
- with open(DATASET_PATH, "r") as file:
+ with open(DATASET_PATH, "rb") as file:
199
for line in file:
200
- res_line = line.strip()
+ res_line = line.decode("unicode_escape").strip()
201
result.append((res_line, get_pad_size(len(tokenizer.encode(res_line)))))
202
custom_shape = (len(result), max([_[1] for _ in result]))
203
+ dprint(f"Custom shape: {custom_shape}")
204
205
def __custom_line_sampler(*args, **kwargs):
206
return_key = kwargs.get("return_key", False)
0 commit comments