@@ -42,7 +42,7 @@ def nanotron(
42
42
checkpoint_config_path : Annotated [
43
43
str , Option (help = "Path to the nanotron checkpoint YAML or python config file, potentially on s3." )
44
44
],
45
- lighteval_config_path : Annotated [str , Option (help = "Path to a YAML config to be used for the evaluation." )] = None ,
45
+ lighteval_config_path : Annotated [str , Option (help = "Path to a YAML config to be used for the evaluation." )],
46
46
cache_dir : Annotated [str , Option (help = "Cache directory for datasets and models." )] = CACHE_DIR ,
47
47
):
48
48
"""
@@ -74,23 +74,8 @@ def nanotron(
74
74
skip_null_keys = True ,
75
75
)
76
76
77
- # Create or use default lighteval config
78
- if lighteval_config_path is not None :
79
- lighteval_config : LightEvalConfig = get_config_from_file (lighteval_config_path , config_class = LightEvalConfig ) # type: ignore
80
- else :
81
- # Create default config with minimal required parameters
82
- default_logging = LightEvalLoggingArgs (
83
- output_dir = "./eval_results"
84
- )
85
- default_tasks = LightEvalTasksArgs (
86
- tasks = "lighteval|agieval:aqua-rat|5|0"
87
- )
88
- default_parallelism = ParallelismArgs (dp = 1 , pp = 1 , tp = 1 )
89
- lighteval_config = LightEvalConfig (
90
- logging = default_logging ,
91
- tasks = default_tasks ,
92
- parallelism = default_parallelism
93
- )
77
+ # Load lighteval config
78
+ lighteval_config : LightEvalConfig = get_config_from_file (lighteval_config_path , config_class = LightEvalConfig ) # type: ignore
94
79
95
80
nanotron_config = FullNanotronConfig (lighteval_config , model_config )
96
81
0 commit comments