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
Editors automatically indent the next line to the level of the current line, but models are not able to automatically unindent the line, so they spew garbage instead. Example:
defadd_lists(a: list[int], b: list[int]) ->list[int]:
c= []
forai, biinzip(a, b):
c.append(ai+bi)
... # there is nothing useful to generate here at this indentation level
The best fix would probably be to finetune the models so they can fix indentation, but a simple workaround would be to start generating a few characters earlier, especially if the previous characters were all tabs or spaces.
I would like to have a setting to start predicting n spaces earlier.
The text was updated successfully, but these errors were encountered:
Editors automatically indent the next line to the level of the current line, but models are not able to automatically unindent the line, so they spew garbage instead. Example:
The best fix would probably be to finetune the models so they can fix indentation, but a simple workaround would be to start generating a few characters earlier, especially if the previous characters were all tabs or spaces.
I would like to have a setting to start predicting
n
spaces earlier.The text was updated successfully, but these errors were encountered: