Comments (2)
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.
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)
- Mixtral quantization hard-freezes Python HOT 4
- Xenova mbart-large-50-many-to-many-mmt conversion is not translating. HOT 2
- TextStreamer not supported for ORTCausalLM? HOT 1
- Whisper-v3 ValueError: Transformers now supports natively BetterTransformer optimizations
- Bitsandbytes integration in ORTModelForCausalLM.from_pretrained()
- the onnx in optimum can not accelerate the speed of batch feature extraction. HOT 3
- task text-classification to be supported in the ONNX export for bart HOT 2
- Assistant model in generate method
- GPTQQuantizer hard coded the device to 0 HOT 2
- ONNX support for Mixtral text-classification HOT 1
- export `audio-classification` model based on OpenAI whisper model to other formats HOT 1
- KeyError: 'last_hidden_state' HOT 1
- Non-pinned Transformers Version Incompatability HOT 2
- ORTStableDiffusionXLPipeline sdxl onnx fp16 unet load error
- ORTModelForCausalLM inference fails (after converting transformer to ONNX) HOT 4
- optimum-cli export neuron failed for 'meta-llama/Llama-2-13b-hf' HOT 2
- Issue in Quantizer decoeder_model_merged.onnx of MT5 HOT 2
- OVModelForWhisper cannot extract word level timestamps HOT 2
- Optimum CLI export to ONNX fails for MPNET based sentence-transformers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optimum.