Skip to content

Commit

Permalink
Patch fix to match with config update/simplification in nanotron (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomwolf authored Feb 14, 2024
1 parent 30ce66d commit 6989737
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lighteval/main_nanotron.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
raise ImportError(NO_NANOTRON_ERROR_MSG)

from nanotron import distributed as dist
from nanotron.config import Config, get_config_from_file
from nanotron.config import Config, LightEvalConfig, get_config_from_file
from nanotron.logging import get_logger
from nanotron.parallel.context import ParallelContext
from nanotron.utils import local_ranks_zero_first
Expand Down Expand Up @@ -63,10 +63,7 @@ def main(
)

if lighteval_config_path:
lighteval_nanotron_config: config_cls = get_config_from_file(
lighteval_config_path, config_class=config_cls
)
lighteval_config = lighteval_nanotron_config.lighteval
lighteval_config: config_cls = get_config_from_file(lighteval_config_path, config_class=LightEvalConfig)
nanotron_config.lighteval = lighteval_config
else:
lighteval_config = nanotron_config.lighteval
Expand Down

0 comments on commit 6989737

Please sign in to comment.