Open jerermyyoung opened 1 year ago
if you use pytorch 2.0, please make sure your version is not earlier than https://github.com/dptech-corp/Uni-Core/tree/91ebaa0a73ac7ef52b57e9e8f6ddf22e32eb3c2e
open the file called options.py (probably dir : ~/miniconda3/envs/unicore/lib/python3.10/site-packages/unicore/options.py)
replace the '--local_rank' to '--local-rank' : group.add_argument('--device-id', '--local-rank', default=0, type=int, help='which GPU to use (usually configured automatically)')
I tried to run the fine-tuning script provided in Uni-Mol (pasted here for easy reference).
However, I encountered the following error:
and the argument --local-rank does not even appear in Uni-Core. I am using PyTorch 2.0, and the log also warns me that:
It confuses me whether it means Uni-Core does not support PyTorch 2.0 (which seems not likely), or is there another problem?