Giter Club home page Giter Club logo

Comments (2)

fxmarty avatar fxmarty commented on May 28, 2024

Hi @gidzr, you should be able just to do pip install optimum and use optimum-cli export onnx --help. More details here: https://huggingface.co/docs/optimum/main/en/exporters/onnx/usage_guides/export_a_model

I believe @xenova relies on Optimum ONNX export but has its own quantization script.

Also, in order to run the optimum/exporters/onnx/convert.py script, do I need to download the full exporters folder, just the onnx folder, or can I just copy-paste the script and run that indepdently?

Normally you don't need to copy anything - if you install through pip you can just run the command above. Of course you would like do to an editable install you can clone the repo and use pip install -e ..

from optimum.

gidzr avatar gidzr commented on May 28, 2024

Hi @fxmarty, thanks kindly for that.

Yep re xenova's own export. I'll drop him a line on that. I'm currently running it as a standalone script as xenova's version includes params for --per_channel true --reduce_range true, which made a big difference on the quantisation reliability. I've had the best results with his script.

I'm sure it's on the roadmap, but would be great to see a unified package that incorporates a consistent set of arguments with all the good stuff from optimum and xenova's approaches available a separate pip module or online at https://huggingface.co/spaces/onnx/export would be great. There's definitely few different flavours of opt/quant scripting at the moment, including the in-inference model.save version. Probably a full-time project to consolidate all of these.

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.