Giter Site home page Giter Site logo

Comments (5)

efwfe avatar efwfe commented on July 16, 2024 3

~/.cache is the cache path, after the translator download all the file. cioy the file to the offline same location can reload it.
Hope this may be helpful.

from seamless_communication.

jgwinnup avatar jgwinnup commented on July 16, 2024 2

Hi - I filed a similar issue on fairseq2 facebookresearch/fairseq2#6, looks like the issue is that I was specifying an absolute path with a leading slash (e.g. checkpoint: 'file:///foo/bar/model.pth') but was asked to just use two slashes (checkpoint: 'file://foo/bar/model.pth') and that worked.

from seamless_communication.

cndn avatar cndn commented on July 16, 2024

Hey @jgwinnup - Good call, for now you could override path in asset cards e.g. https://github.com/facebookresearch/seamless_communication/blob/main/src/seamless_communication/assets/cards/seamlessM4T_large.yaml#L10, with a prefix "file://" to indicate local path.

Also paths are cached so you should only need to download it once anyway.

from seamless_communication.

jgwinnup avatar jgwinnup commented on July 16, 2024

Thanks for the pointer - when I specify a file:// URI I get the following error:

fairseq2.assets.card.AssetCardError: The value of the field 'checkpoint' of the asset card 'seamlessM4T_large' must be a valid URI, but is 'file:///foo/bar/seamless-m4t-large/multitask_unity_large.pt' instead.

I can work around this by starting up a python http.server and serve the file locally, but it would be nice to have proper file:// URI support.

from seamless_communication.

cndn avatar cndn commented on July 16, 2024

Hey @jgwinnup double checking the logic here it should work https://github.com/facebookresearch/fairseq2/blob/main/src/fairseq2/assets/download_manager.py#L132. Could you print out pathname here and see if it's expected?

from seamless_communication.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.