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
Copy file name to clipboardExpand all lines: bigcode_eval/utils.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -308,7 +308,7 @@ def complete_code(
308
308
exceptValueErrorase:
309
309
# When the length of input_ids == max_length, the generation is the same as the input
310
310
ifstr(e).startswith(f"Input length of input_ids is {inputs.shape[1]}, but `max_length` is set to {gen_kwargs['max_length']}"):
311
-
warnings.warn(f"An error with the following message was thrown: {e}. Returning the input as the generation.")
311
+
warnings.warn(f"An error with the following message was thrown: {e}. Returning the input as the generation, for higher scores consider using a larger `max_length`")
0 commit comments