- 30 Jul, 2020 2 commits
-
-
Oren Amsalem authored
a = tokenizer.encode("we got a <extra_id_99>", return_tensors='pt',add_special_tokens=True) print(a) >tensor([[ 62, 530, 3, 9, 32000]]) a = tokenizer.encode("we got a <extra_id_100>", return_tensors='pt',add_special_tokens=True) print(a) >tensor([[ 62, 530, 3, 9, 3, 2, 25666, 834, 23, 26, 834, 2915, 3155]]) -
Stas Bekman authored
-
- 29 Jul, 2020 9 commits
-
-
Julien Plu authored
* Fully rework training/prediction loops * fix method name * Fix variable name * Fix property name * Fix scope * Fix method name * Fix tuple index * Fix tuple index * Fix indentation * Fix variable name * fix eval before log * Add drop remainder for test dataset * Fix step number + fix logging datetime * fix eval loss value * use global step instead of step + fix logging at step 0 * Fix logging datetime * Fix global_step usage * Fix breaking loop + logging datetime * Fix step in prediction loop * Fix step breaking * Fix train/test loops * Force TF at least 2.2 for the trainer * Use assert_cardinality to facilitate the dataset size computation * Log steps per epoch * Make tfds compliant with TPU * Make tfds compliant with TPU * Use TF dataset enumerate instead of the Python one * revert previous commit * Fix data_dir * Apply style * rebase on master * Address Sylvain's comments * Address Sylvain's and Lysandre comments * Trigger CI * Remove unused import
-
Lysandre Debut authored
* Test TF Flaubert + Add {XLM, Flaubert}{TokenClassification, MultipleChoice} models and tests * AutoModels Tiny tweaks * Style * Final changes before merge * Re-order for simpler review * Final fixes * Addressing @sgugger's comments * Test MultipleChoice -
Sylvain Gugger authored
* Use google style to document properties * Update src/transformers/configuration_utils.py Co-authored-by:
Lysandre Debut <lysandre@huggingface.co> Co-authored-by:
Lysandre Debut <lysandre@huggingface.co>
-
Julien Plu authored
-
Lysandre Debut authored
-
Timo Moeller authored
* Add xlm-r QA model card * Add tags
-
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>
-
Sylvain Gugger authored
-
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>
-
- 28 Jul, 2020 21 commits
-
-
Sam Shleifer authored
-
Sam Shleifer authored
-
Sam Shleifer authored
-
Sam Shleifer authored
-
Joe Davison authored
-
Lysandre Debut authored
-
Sam Shleifer authored
-
Tanmay Thakur authored
-
Sylvain Gugger authored
* Fix #6092 * Format
-
Manuel Romero authored
-
Clement authored
-
Sylvain Gugger authored
* Make all data collators accept dict * Style
-
Sam Shleifer authored
Co-authored-by:
Julien Chaumond <chaumond@gmail.com> Co-authored-by:
Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Co-authored-by:
Lysandre Debut <lysandre@huggingface.co> Co-authored-by:
Teven <teven.lescao@gmail.com>
-
Stas Bekman authored
* add a link to README.md * Update README.md
-
Pavel Soriano authored
-
Sam Shleifer authored
* MBART: support summarization tasks * fix test * Style * add tokenizer test
-
Tanmay Thakur authored
Signed-off-by:lordtt13 <thakurtanmay72@yahoo.com>
-
Andrés Felipe Cruz authored
* Moving rom transformers statements to relative imports in some files under src/ * Import order Co-authored-by:Lysandre Debut <lysandre@huggingface.co>
-
Lysandre Debut authored
-
Sam Shleifer authored
-
Sam Shleifer authored
-
- 27 Jul, 2020 8 commits
-
-
Sam Shleifer authored
-
sgugger authored
-
Ramsri Goutham Golla authored
Adding model card - readme
-
Sylvain Gugger authored
-
Sam Shleifer authored
-
Sam Shleifer authored
-
Suraj Patil authored
* use new AutoModel classed * make style and quality
-
Cola authored
-