Update run_eval.py
Browse files- run_eval.py +0 -13
run_eval.py
CHANGED
@@ -34,8 +34,6 @@ from utils import (
|
|
34 |
use_task_specific_params,
|
35 |
)
|
36 |
|
37 |
-
from evaluate_gpt import gpt_eval
|
38 |
-
|
39 |
|
40 |
logger = getLogger(__name__)
|
41 |
|
@@ -208,17 +206,6 @@ def run_generate(
|
|
208 |
if scor_path:
|
209 |
args.score_path = scor_path
|
210 |
|
211 |
-
if args.model_name[-3:] == 'gpt':
|
212 |
-
gpt_eval(
|
213 |
-
model_name_path=args.model_name,
|
214 |
-
src_txt=args.input_path,
|
215 |
-
tar_txt=args.reference_path,
|
216 |
-
gen_path=args.save_path,
|
217 |
-
scor_path=args.score_path,
|
218 |
-
batch_size=args.bs
|
219 |
-
)
|
220 |
-
return None
|
221 |
-
|
222 |
if parsed_args and verbose:
|
223 |
print(f"parsed the following generate kwargs: {parsed_args}")
|
224 |
examples = [
|
|
|
34 |
use_task_specific_params,
|
35 |
)
|
36 |
|
|
|
|
|
37 |
|
38 |
logger = getLogger(__name__)
|
39 |
|
|
|
206 |
if scor_path:
|
207 |
args.score_path = scor_path
|
208 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
if parsed_args and verbose:
|
210 |
print(f"parsed the following generate kwargs: {parsed_args}")
|
211 |
examples = [
|