Shaltiel commited on
Commit
d0d5565
·
1 Parent(s): 398ca01

Fixed cleanup + increased translation

Browse files
src/backend/run_eval_suite_lighteval.py CHANGED
@@ -72,6 +72,9 @@ def run_evaluation(eval_request: EvalRequest, task_names: str, batch_size: int,
72
  args.model_config['model']['base_params']['reuse_existing'] = True
73
  model_config = create_model_config(args=args, accelerator=accelerator)
74
  model, _ = load_model(config=model_config, env_config=env_config)
 
 
75
  model.cleanup()
 
76
 
77
  return results
 
72
  args.model_config['model']['base_params']['reuse_existing'] = True
73
  model_config = create_model_config(args=args, accelerator=accelerator)
74
  model, _ = load_model(config=model_config, env_config=env_config)
75
+ print('Cleaning up')
76
+ model.reuse_existing = False # force it to clean up
77
  model.cleanup()
78
+ results = None
79
 
80
  return results
src/custom_tasks/translation_task.py CHANGED
@@ -52,5 +52,5 @@ translation_task = LightevalTaskConfig(
52
  evaluation_splits=["en2he", "he2en"],
53
  metric=['sentence_bleu'],
54
  stop_sequence=['\n'],
55
- generation_size=220
56
  )
 
52
  evaluation_splits=["en2he", "he2en"],
53
  metric=['sentence_bleu'],
54
  stop_sequence=['\n'],
55
+ generation_size=256
56
  )