Git Product home page Git Product logo

Comments (6)

danieldk avatar danieldk commented on May 18, 2024 1

Thanks for the feature request! This sounds like a very useful feature and would be simple to add. We'll add it to our todo list.

from curated-transformers.

honnibal avatar honnibal commented on May 18, 2024

If there's an easy way to also support loading from a byte string, I'd see that as desirable too 🙂

I get that it might not be so easy though, depending on the way PyTorch does things.

from curated-transformers.

danieldk avatar danieldk commented on May 18, 2024

If there's an easy way to also support loading from a byte string, I'd see that as desirable too 🙂

I get that it might not be so easy though, depending on the way PyTorch does things.

We could definitely support that. But we still need to hash out how we want to serialize the model hyperparameters (outside TorchScript/ONNX/etc.). What we had in mind now is generating configuration json that it compatible with HF transformers. We could then serialize the config + state dict to a byte string.

from curated-transformers.

danieldk avatar danieldk commented on May 18, 2024

@bilelomrani1 the main branch now supports this, so if you want to give it a spin:

https://curated-transformers.readthedocs.io/en/latest/encoders.html#curated_transformers.models.AutoEncoder.download_to_cache

from curated-transformers.

bilelomrani1 avatar bilelomrani1 commented on May 18, 2024

Thank you @shadeMe @danieldk this works exactly as intended! I leave the issue open if you want to track the status for loading from a byte string here but feel free to close, as this solves my issue.

from curated-transformers.

danieldk avatar danieldk commented on May 18, 2024

Thanks for the suggestion and for testing 👍.

from curated-transformers.

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.