Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch fix to match with config update/simplification in nanotron #35

Merged
merged 2 commits into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading