Skip to content

Commit

Permalink
Add tagging for "incomplete generations"
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipitis committed Jan 8, 2024
1 parent 805c47a commit b8f0033
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bigcode_eval/tasks/shadereval.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ def remove_last_block(self, code):
if not cut:
if '}' in code:
code = code[:code.rfind('}')] + '}'
else:
code = code + "// incomplete generation! \n"
return code

def postprocess_generation(self, generation, idx):
Expand Down

0 comments on commit b8f0033

Please sign in to comment.