facebookresearch / seamless_communication

Foundational Models for State-of-the-Art Speech and Text Translation
Other
10.53k stars 1.02k forks source link

Cannot download model #153

Closed projects-g closed 9 months ago

projects-g commented 9 months ago

I am running a Debian system, with python 3.10.8.

When I try to load the model,

translator = Translator(
    SEAMLESSM4T_MODEL_CARD_NAME,
    "vocoder_36langs",
    torch.device(device),
    dtype=torch.float32
)

I run into OS Error: Value too large for defined data type as the OS has max limits for path lengths and os.open(path) simply fails.

Thefile:// proceeds to download from the hub even if the file is physically present at the local location which I confirmed with os.path.exists.

Supplying a user given directory to download and load models would solve these problems.

projects-g commented 9 months ago

Installing the lib in editable mode fixed the problem for me