Skip to content

Commit 1a6fa71

Browse files
committed
Fix kwarg in init
1 parent 95ede23 commit 1a6fa71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bigcode_eval/tasks/shadereval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ class FunctionGeneration(Task): #task2
125125
# `DATASET_PATH`. If there aren't specific subsets you need, leave this as `None`.
126126
DATASET_NAME = None #this will eventually be a subset for the Shadertoys dataset, but not right now
127127

128-
def __init__(self):
128+
def __init__(self, prompt="minimal"):
129129
super().__init__(
130130
# TODO: Specify the list of stop words in `stop_words` for the code generation task \
131131
# and if the evaluation requires executing the generated code in `requires_execution`.
132132
stop_words=["\nfloat ", "\nvec", "\nint", "\nvoid", "\nmat"], #new function starts... so all the keywords
133133
requires_execution=True, #we run shadercode - could that be harmful? (all in the metric)
134-
prompt="minimal", # "minimal" or "full". "minimal" is the function header and comments before/after it, "full" is the whole code up untill the function declaration ends
135134
)
135+
self.prompt = prompt # "minimal" or "full". "minimal" is the function header and comments before/after it, "full" is the whole code up untill the function declaration ends
136136

137137
def get_dataset(self):
138138
# TODO replace with subset once that is set up

0 commit comments

Comments
 (0)