- 26 Oct, 2021 1 commit
-
-
Thomas Chaigneau authored
Add Camembert to models exportable with ONNX Co-authored-by:
Thomas.Chaigneau <thomas.chaigneau@arkea.com> Co-authored-by:
Michael Benayoun <mickbenayoun@gmail.com>
-
- 06 Oct, 2021 1 commit
-
-
Sylvain Gugger authored
-
- 29 Sep, 2021 1 commit
-
-
Nishant Prabhu authored
Fix LayoutLM ONNX test error
-
- 09 Aug, 2021 1 commit
-
-
Lysandre Debut authored
* Add to ONNX docs * Add MBART example * Update docs/source/serialization.rst Co-authored-by:
Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Co-authored-by:
Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
-
- 15 Jul, 2021 1 commit
-
-
Lysandre Debut authored
-
- 08 Jul, 2021 1 commit
-
-
Funtowicz Morgan authored
* Laying down building stone for more flexible ONNX export capabilities * Ability to provide a map of config key to override before exporting. * Makes it possible to export BART with/without past keys. * Supports simple mathematical syntax for OnnxVariable.repeated * Effectively apply value override from onnx config for model * Supports export with additional features such as with-past for seq2seq * Store the output path directly in the args for uniform usage across. * Make BART_ONNX_CONFIG_* constants and fix imports. * Support BERT model. * Use tokenizer for more flexibility in defining the inputs of a model. * Add TODO as remainder to provide the batch/sequence_length as CLI args * Enable optimizations to be done on the model. * Enable GPT2 + past * Improve model validation with outputs containing nested structures * Enable Roberta * Enable Albert * Albert requires opset >= 12 * BERT-like models requires opset >= 12 * Remove double printing. * Enable XLM-Roberta * Enable DistilBERT * Disable optimization by default * Fix missing setattr when applying optimizer_features * Add value field to OnnxVariable to define constant input (not from tokenizers) * Add T5 support. * Simplify model type retrieval * Example exporting token_classification pipeline for DistilBERT. * Refactoring to package `transformers.onnx` * Solve circular dependency & __main__ * Remove unnecessary imports in `__init__` * Licences * Use @Narsil's suggestion to forward the model's configuration to the ONNXConfig to avoid interpolation. * Onnx export v2 fixes (#12388) * Tiny fixes Remove `convert_pytorch` from onnxruntime-less runtimes Correct reference to model * Style * Fix Copied from * LongFormer ONNX config. * Removed optimizations * Remvoe bad merge relicas. * Remove unused constants. * Remove some deleted constants from imports. * Fix unittest to remove usage of PyTorch model for onnx.utils. * Fix distilbert export * Enable ONNX export test for supported model. * Style. * Fix lint. * Enable all supported default models. * GPT2 only has one output * Fix bad property name when overriding config. * Added unittests and docstrings. * Disable with_past tests for now. * Enable outputs validation for default export. * Remove graph opt lvls. * Last commit with on-going past commented. * Style. * Disabled `with_past` for now * Remove unused imports. * Remove framework argument * Remove TFPreTrainedModel reference * Add documentation * Add onnxruntime tests to CircleCI * Add test * Rename `convert_pytorch` to `export` * Use OrderedDict for dummy inputs * WIP Wav2Vec2 * Revert "WIP Wav2Vec2" This reverts commit f665efb04c92525c3530e589029f0ae7afdf603e. * Style * Use OrderedDict for I/O * Style. * Specify OrderedDict documentation. * Style :) Co-authored-by:
Lysandre <lysandre.debut@reseau.eseo.fr> Co-authored-by:
Lysandre Debut <lysandre@huggingface.co>
-
- 07 Dec, 2020 1 commit
-
-
Sylvain Gugger authored
* Add copyright everywhere missing * Style
-
- 29 Nov, 2020 1 commit
-
-
Guy Rosin authored
* Fix minor typos * Additional typos * Style fix Co-authored-by:guyrosin <guyrosin@assist-561.cs.technion.ac.il>
-
- 26 Oct, 2020 1 commit
-
-
Sylvain Gugger authored
* Important files * Styling them all * Revert "Styling them all" This reverts commit 7d029395fdae8513b8281cbc2a6c239f8093503e. * Syling them for realsies * Fix syntax error * Fix benchmark_utils * More fixes * Fix modeling auto and script * Remove new line * Fixes * More fixes * Fix more files * Style * Add FSMT * More fixes * More fixes * More fixes * More fixes * Fixes * More fixes * More fixes * Last fixes * Make sphinx happy
-
- 23 Sep, 2020 1 commit
-
-
Sylvain Gugger authored
* Clean up model documentation * Formatting * Preparation work * Long lines * Main work on rst files * Cleanup all config files * Syntax fix * Clean all tokenizers * Work on first models * Models beginning * FaluBERT * All PyTorch models * All models * Long lines again * Fixes * More fixes * Update docs/source/model_doc/bert.rst Co-authored-by:
Lysandre Debut <lysandre@huggingface.co> * Update docs/source/model_doc/electra.rst Co-authored-by:
Lysandre Debut <lysandre@huggingface.co> * Last fixes Co-authored-by:
Lysandre Debut <lysandre@huggingface.co>
-
- 26 Aug, 2020 1 commit
-
-
Patrick von Platen authored
-
- 21 Aug, 2020 1 commit
-
-
Morgan Funtowicz authored
Signed-off-by:Morgan Funtowicz <funtowiczmo@gmail.com>
-
- 31 Jul, 2020 1 commit
-
-
Funtowicz Morgan authored
* Add onnxruntime transformers optimization support Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Added Optimization section in ONNX/ONNXRuntime documentation. Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Improve note reference Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Fixing imports order. Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Add warning about different level of optimization between torch and tf export. Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Address @LysandreJik wording suggestion Co-authored-by:
Lysandre Debut <lysandre@huggingface.co> * Address @LysandreJik wording suggestion Co-authored-by:
Lysandre Debut <lysandre@huggingface.co> * Always optimize model before quantization for maximum performances. Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Address comments on the documentation. Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Improve TensorFlow optimization message as suggested by @yufenglee Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Removed --optimize parameter Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Warn the user about current quantization limitation when model is larger than 2GB. Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Trigger CI for last check * Small change in print for the optimization section. Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> Co-authored-by:
Lysandre Debut <lysandre@huggingface.co>
-
- 29 Jul, 2020 2 commits
-
-
Funtowicz Morgan authored
* Added capability to quantize a model while exporting through ONNX. Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> We do not support multiple extensions Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Reformat files Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * More quality Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Ensure test_generate_identified_name compares the same object types Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Added documentation everywhere on ONNX exporter Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Use pathlib.Path instead of plain-old string Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Use f-string everywhere Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Use the correct parameters for black formatting Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Use Python 3 super() style. Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Use packaging.version to ensure installed onnxruntime version match requirements Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Fixing imports sorting order. Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Missing raise(s) Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Added quantization documentation Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Fix some spelling. Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Fix bad list header format Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co>
-
Funtowicz Morgan authored
* Move torchscript and add ONNX documentation under modle_export Signed-off-by:
Morgan Funtowicz <funtowiczmo@gmail.com> * Let's follow guidelines by the gurus: Renamed torchscript.rst to serialization.rst Signed-off-by:
Morgan Funtowicz <funtowiczmo@gmail.com> * Remove previously introduced tree element Signed-off-by:
Morgan Funtowicz <funtowiczmo@gmail.com> * WIP doc Signed-off-by:
Morgan Funtowicz <funtowiczmo@gmail.com> * ONNX documentation Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Fix invalid link Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Improve spelling Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co> * Final wording pass Signed-off-by:
Morgan Funtowicz <morgan@huggingface.co>
-
- 24 Jun, 2020 1 commit
-
-
Sylvain Gugger authored
-
- 06 Jan, 2020 2 commits
-
-
alberduris authored
-
alberduris authored
-
- 26 Sep, 2019 1 commit
-
-
thomwolf authored
-
- 05 Aug, 2019 1 commit
-
-
thomwolf authored
-
- 25 Jul, 2019 1 commit
-
-
Sukuya authored
Import fixed to pytorch_transformers else torchscript flag can't be used.
-
- 11 Jul, 2019 1 commit
-
-
LysandreJik authored
-
- 09 Jul, 2019 1 commit
-
-
LysandreJik authored
-
- 08 Jul, 2019 1 commit
-
-
LysandreJik authored
-