litgpt icon indicating copy to clipboard operation
litgpt copied to clipboard

argument subcommand: invalid choice: 'evaluate'

Open Gooooooogo opened this issue 1 year ago • 1 comments

when I run: 'litgpt evaluate --checkpoint_dir checkpoints/microsoft/phi-2/ --batch_size 4 --out_dir evaluate_model'

It has a problem: Error: argument subcommand: invalid choice: 'evaluate' (choose from 'download', 'chat', 'finetune', 'pretrain', 'generate', 'convert', 'merge_lora')

Gooooooogo avatar Apr 10 '24 17:04 Gooooooogo

Hm, that's a weird one. I am wondering if you are perhaps using an older version of litgpt? Because evaluate was just added last week.

rasbt avatar Apr 10 '24 17:04 rasbt

Just following up on this, have you been able to run it?

Until the PyPI package is updated in the next few days, I recommend installing it from the GitHub repository directly:

git clone https://github.com/Lightning-AI/litgpt
cd litgpt
pip install -e '.[all]'

Please let us know in case there are any follow up questions or issues.

rasbt avatar Apr 18 '24 19:04 rasbt