Giter Club home page Giter Club logo

Comments (3)

lewtun avatar lewtun commented on May 14, 2024

Thanks for reporting this bug @axsaucedo ! We have a fix in #162 that should solve the issue :)

Regarding your question:

For completeness I am getting the notice The model 'ORTModelForCausalLM' is not supported for text-generation. - is that expected or does that suggest my transformers/hugging-face library is also not compatible with the latest live branch of optimum?

This is indeed expected because we're wrapping the pipeline() function from transformers which is only aware of the model classes in that library. We will have a look at providing a better warning for users, so thanks for flagging this!

We'll also look at adding support to set the target device in the transformers.pipeline() function by adding a ORTModel.to() method :)

from optimum.

axsaucedo avatar axsaucedo commented on May 14, 2024

Thank you for the fast turnaround @lewtun - I just tested it and works perfectly. Also thank you for the clarification on the warning, makes sense - I have added #163 for context.

I still cannot define device=X in the pipeline parametres, however I can confirm that it runs automatically in GPU, so it's not necessary. Would it still be required to ensure that the ORT models support the to(...) as well as other params like config? It's not currently a blocker from our side but just wanted to highlight.

from optimum.

lewtun avatar lewtun commented on May 14, 2024

I still cannot define device=X in the pipeline parametres, however I can confirm that it runs automatically in GPU, so it's not necessary. Would it still be required to ensure that the ORT models support the to(...) as well as other params like config? It's not currently a blocker from our side but just wanted to highlight.

Yes, currently the device arg can't be set in the pipeline() function for ORTModelForXxx classes - it's on our TODO list and will hopefully be added soon :)

And thanks for opening a new issue about the warning - that really helps for tracking!

from optimum.

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.