Closed rahimikia closed 2 years ago
Running to_hf_weights.py returns this error. Even to_hf_weights.py --help.
to_hf_weights.py
to_hf_weights.py --help
File "to_hf_weights.py", line 78 input_ckpt: Union[FluidPath, str], ^ SyntaxError: invalid syntax
This is also valid for other files too (like device_train.py):
File "device_train.py", line 58 with open(f"gs://{bucket}/{path}/meta.json", "r") as f: ^ SyntaxError: invalid syntax
It looks like your python version is too old, try using python 3.7 or later
Running
to_hf_weights.py
returns this error. Evento_hf_weights.py --help
.This is also valid for other files too (like device_train.py):