How to run locally? After download the files, how to load them?
After downloading all the files listed in the Files and versions? How to load them locally?
When passing the folder name, I got the error:
ValueError: name
must be a valid filename, but is './pretrained_models/seamless-m4t-large' instead.
The code I used are:
model_path = './pretrained_models/seamless-m4t-large'
vocoder_path = './pretrained_models/vocoder'
translator = Translator(model_name_or_card=model_path,
vocoder_name_or_card=vocoder_path,
device=torch.device('cuda:0'),
dtype=None)
I also tried the following code, but no luck:
model_path = './pretrained_models/seamless-m4t-large/multitask_unity_large.pt'
vocoder_path = './pretrained_models/vocoder/vocoder_36langs.pt'
translator = Translator(model_name_or_card=model_path,
vocoder_name_or_card=vocoder_path,
device=torch.device('cuda:0'),
dtype=None)
You cannot pass a path directly. Instead you need to pass "seamlessM4T_large" (example) and than change the yaml file
There is a yaml file, e.g. "/.virtualenvs/seamlessM4T/lib/python3.10/site-packages/seamless_communication/assets/cards/seamlessM4T_large.yaml" and change the checkpoint accordingly, e.g. "checkpoint: "file://secondary/home/seamless_m4t_large/multitask_unity_large.pt""
https://github.com/facebookresearch/seamless_communication/issues/50
You cannot pass a path directly. Instead you need to pass "seamlessM4T_large" (example) and than change the yaml file
There is a yaml file, e.g. "/.virtualenvs/seamlessM4T/lib/python3.10/site-packages/seamless_communication/assets/cards/seamlessM4T_large.yaml" and change the checkpoint accordingly, e.g. "checkpoint: "file://secondary/home/seamless_m4t_large/multitask_unity_large.pt""https://github.com/facebookresearch/seamless_communication/issues/50
This works for me. Thanks a lot.