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

launch lighteval using lighteval --args #152

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Conversation

NathanHB
Copy link
Member

@NathanHB NathanHB commented Apr 10, 2024

  • removes uneeded script files to launch lighteval
  • moves parsers function to lighteval.commands.parsers
  • creates a lighteval cli executable with 3 subcommands (list-tasks, nanotron, accelerate)

how to use:

with nanotron

nothing changes except for the use of the cli executable

 lighteval nanotron  {nanotron args}

with accelerate

accelerate args now need to be passed to the lighteval script.

accelerate launch --multi_gpu --num_processes=8 -m \
lighteval accelerate \
--model_args "pretrained=gpt2,dtype=float16" \
--tasks "original|mmlu:anatomy|0|0" \
--override_batch_size 1  \
--output_dir="tmp/" \
--max_samples 1 \
--use_chat_template

@NathanHB NathanHB marked this pull request as ready for review April 22, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant