Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NuoJohnChen authored Sep 14, 2024
1 parent 35c34a3 commit b6a841c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/proxy-tuning/eval/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def generate_completions(

num_return_sequences = generation_kwargs.get("num_return_sequences", 1)
model_type = model.base.config.model_type
output_path = generation_kwargs.get("output_path", "/223040239/medbase/src/proxy-tuning/outputs/gemma-7b.jsonl")
output_path = generation_kwargs.get("output_path", "../outputs/gemma-7b.jsonl")
fp = open(output_path,'w')
for i in range(0, len(prompts), batch_size):
batch_items = prompts[i:i+batch_size]
Expand Down Expand Up @@ -380,4 +380,4 @@ def dynamic_import_function(function_path):
module_path, function_name = function_path.rsplit(".", 1)
module = import_module(module_path)
function = getattr(module, function_name)
return function
return function

0 comments on commit b6a841c

Please sign in to comment.