pytorch / torchtune

PyTorch native finetuning library
https://pytorch.org/torchtune/main/
BSD 3-Clause "New" or "Revised" License
4.37k stars 446 forks source link

Torchtune no command 'run' #2001

Closed tginart closed 1 week ago

tginart commented 1 week ago
(torchtune) aginart@ip-10-1-78-193:~/dev/fun_projects/generation_projects$ tune run --nproc_per_node 8 full_finetune_distributed --config torchtune/recipes/configs/qwen2_5/1_5B_full.yaml 
Usage: tune [OPTIONS] COMMAND [ARGS]...
Try 'tune --help' for help.

Error: No such command 'run'.

Seems like a bug.

felipemello1 commented 1 week ago

can you check your environment? This happened to me when i did NOT have torchtune installed. I think that "tune" is also used by some other library. To be sure you can run tune --help and see what it says.

tginart commented 1 week ago

Nice, yeah, I think a subsequent install overrode tune. A clean environment solved this. Thanks.