Commit d96b991d authored by Jonathan Tow's avatar Jonathan Tow
Browse files

Add `Random` argument to `write_out` `fewshot_context`

parent 7ff58fe1
......@@ -22,8 +22,9 @@ def parse_args():
def main():
args = parse_args()
random.seed(args.seed)
np.random.seed(args.seed)
rnd = random.Random()
rnd.seed(args.seed)
if args.tasks == "all_tasks":
task_names = tasks.ALL_TASKS
......@@ -53,6 +54,7 @@ def main():
doc=doc,
provide_description=args.provide_description,
num_fewshot=args.num_fewshot,
rnd=rnd
)
f.write(ctx + "\n")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment