Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add test checking the offsets for an input splitted into words for different add_prefix_space and trim_offsets args #1

Closed
wants to merge 142 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
c17e7cd
Add ability to get a list of supported pipeline tasks (#14732)
codesue Dec 13, 2021
6e05bb1
Fix the perceiver docs (#14748)
LysandreJik Dec 13, 2021
8362d07
[CI/pt-nightly] switch to cuda-11.3 (#14726)
stas00 Dec 13, 2021
fc74c84
Swap TF and PT code inside two blocks (#14742)
LucienShui Dec 13, 2021
ca0b82b
Fix doc examples: cannot import name (#14698)
ydshieh Dec 13, 2021
12d9b95
Fix: change tooslow to slow (#14734)
ydshieh Dec 13, 2021
c3cd88a
Small fixes for the doc (#14751)
sgugger Dec 13, 2021
64e92ed
Update transformers metadata (#14724)
sgugger Dec 13, 2021
e4666bf
Fix name
sgugger Dec 13, 2021
6ac0fac
Mention no images added to repository (#14738)
LysandreJik Dec 13, 2021
15a9d01
Avoid using tf.tile in embeddings for TF models (#14735)
ydshieh Dec 13, 2021
971e366
Change how to load config of XLNetLMHeadModel (#14746)
josutk Dec 13, 2021
e926ea2
Improve perceiver (#14750)
NielsRogge Dec 13, 2021
7533d30
Convert Trainer doc page to MarkDown (#14753)
sgugger Dec 13, 2021
322d416
Update Table of Contents (#14755)
sgugger Dec 13, 2021
546a91a
Fixing tests for Perceiver (#14739)
Narsil Dec 14, 2021
2a606f9
Make data shuffling in `run_clm_flax.py` respect global seed (#13410)
bminixhofer Dec 14, 2021
e7ed7ff
Adding support for multiple mask tokens. (#14716)
Narsil Dec 14, 2021
851a789
Fix broken links to distillation on index page of documentation (#14722)
amitness Dec 15, 2021
fdf3ce2
[doc] performance: groups of operations by compute-intensity (#14757)
stas00 Dec 15, 2021
7e61d56
Fix the doc_build_test job (#14774)
sgugger Dec 15, 2021
a94105f
Fix preprocess_function in run_summarization_flax.py (#14769)
ydshieh Dec 15, 2021
72c6e8b
Update t5.rst (#14776)
Dec 15, 2021
48d4827
TF model cards (#14720)
Rocketknight1 Dec 15, 2021
50bc57c
Update Perceiver code examples (#14783)
NielsRogge Dec 15, 2021
aece7ba
Improve Perceiver docs (#14786)
NielsRogge Dec 15, 2021
960d8cb
Release: v4.14.0
LysandreJik Dec 15, 2021
7c9c41f
Docs for v4.14.0
LysandreJik Dec 15, 2021
c40ecfd
Move import (#14787)
sgugger Dec 15, 2021
459677a
PoC for conserving old links (#14754)
sgugger Dec 15, 2021
8010fda
Removes images to put them in a dataset (#14781)
LysandreJik Dec 16, 2021
5061a9f
Post sphinx-clean up and contributing guide updates (#14790)
sgugger Dec 16, 2021
12e1b4c
Fix the build documentation job (#14788)
sgugger Dec 16, 2021
8ae24e1
Update CONTRIBUTING.md (#14799)
kamalkraj Dec 16, 2021
465a8b8
Update CONTRIBUTING.md (#14800)
kamalkraj Dec 16, 2021
2e07180
Train step fix (#14796)
Rocketknight1 Dec 16, 2021
48463eb
Add Speaker Diarization and Verification heads (#14723)
anton-l Dec 16, 2021
b18d853
[Generate] Make generate multi-modal (#14784)
patrickvonplaten Dec 16, 2021
bef1e3e
Add WavLM (#14354)
patrickvonplaten Dec 16, 2021
d194d63
Remove datasets requirement (#14795)
LysandreJik Dec 16, 2021
c4a0fb5
[WavLM] Correct position bias computation (#14805)
patrickvonplaten Dec 16, 2021
cbf036f
Add test (#14810)
NielsRogge Dec 17, 2021
bdbe3df
[WavLM] Layerdrop is not allowed for first layer (#14811)
patrickvonplaten Dec 17, 2021
95119ad
[Generate] Correct input_ids detection (#14815)
patrickvonplaten Dec 17, 2021
ff06611
Implement head_mask for Flax BERT and other models copied from BERT (…
stancld Dec 17, 2021
0b4ea79
Trigger doc building
sgugger Dec 17, 2021
77d6c82
Convert rst to mdx bert (#14806)
LysandreJik Dec 17, 2021
c4a96ce
Wav2Vec2 meets phonemes (#14353)
patrickvonplaten Dec 17, 2021
84ea427
[ImageGPT] Deprecate pixel_values input name to input_ids (#14801)
patrickvonplaten Dec 17, 2021
091693b
[Seq2SeqTrainer] Remove model input name hack (#14802)
patrickvonplaten Dec 20, 2021
281e1fb
up (#14829)
patrickvonplaten Dec 20, 2021
cd583bd
[WavLM] Fix slow tests (#14845)
patrickvonplaten Dec 20, 2021
3883e3a
Add SD and SV heads for WavLM (#14847)
anton-l Dec 20, 2021
1531b31
Add an argument to set bucket_cap_mb for PyTorch DDP (#14756)
changlan Dec 20, 2021
1b0ca7d
Update CONTRIBUTING.md (#14835)
kamalkraj Dec 20, 2021
8a818c2
Fix dead link to benchmarks.ipynb (#14842)
DerekChia Dec 20, 2021
952a77b
[Perceiver] Skip multi-gpu tests for now (#14813)
patrickvonplaten Dec 20, 2021
b37cf7d
Add 'with torch.no_grad()' to integration test forward pass (#14821)
h-holm Dec 20, 2021
0940e9b
Add 'with torch.no_grad()' to integration test forward pass (#14820)
h-holm Dec 20, 2021
33f36c8
Add a main_input_name attribute to all models (#14803)
sgugger Dec 20, 2021
c1125dc
[doc] typo (#14849)
stas00 Dec 20, 2021
50d724e
add test arguments `add_prefix_space` and `trim_offsets` for input sp…
SaulLu Dec 20, 2021
b6ec956
[logging] implement warning_advice / TRANSFORMERS_NO_ADVISORY_WARNING…
stas00 Dec 21, 2021
2a33734
Make the onnx submodule init lazy (#14855)
sgugger Dec 21, 2021
7af80f6
Convert docstrings of modeling files (#14850)
sgugger Dec 21, 2021
b513ec8
[Bart] better error message (#14854)
patrickvonplaten Dec 21, 2021
97ec17f
Only create the model card on process 0 (#14857)
sgugger Dec 21, 2021
7ae6f07
[ASR example] Improve example + add more examples (#14848)
patrickvonplaten Dec 21, 2021
0062058
Fix the value error typo of AdamW's betas' valid values checking (#14…
dourgey Dec 21, 2021
5722d05
Add custom `stopping_criteria` and `logits_processor` to `generate` …
lvwerra Dec 21, 2021
c075fb7
Replace commit sha by commit url for update jobs (#14852)
sgugger Dec 21, 2021
033c3ed
[examples/summarization] deal with None in data records (#14816)
stas00 Dec 21, 2021
1858763
[doc porting] several docs (#14858)
stas00 Dec 21, 2021
27b3031
Mass conversion of documentation from rst to Markdown (#14866)
sgugger Dec 21, 2021
e51c7b5
Skip failing test
sgugger Dec 21, 2021
eec9c8b
Fix FLAX_MULTIPLE_CHOICE_SAMPLE typo (#14871)
mishig25 Dec 21, 2021
a6b7b47
Fixes in marian doc (#14872)
sgugger Dec 21, 2021
e846a56
Fix `FlaxMarianMTModel` return block. (#14873)
sgugger Dec 21, 2021
d0422de
Fix doc mistakes (#14874)
sgugger Dec 21, 2021
ec3567f
Convert model files from rst to mdx (#14865)
LysandreJik Dec 22, 2021
c94c1b8
update the arguments `add_prefix_space` and `trim_offsets` in `backen…
SaulLu Dec 22, 2021
824fd44
Feature/fix slow test in mluke (#14749)
ryokan0123 Dec 22, 2021
2a56edb
Updated deberta attention (#14625)
guillaume-be Dec 22, 2021
17efc80
IterableDatasetShard should use per device batch size instead of real…
SysuCharon Dec 22, 2021
e37bc57
Fix typo in error message
sgugger Dec 22, 2021
7df4b90
Fix Perceiver docs (#14879)
NielsRogge Dec 22, 2021
1045a36
Fix pytorch image classification example (#14883)
mariosasko Dec 22, 2021
13504dc
Onnx enable tasks for supported models (part 2) (#14700)
michaelbenayoun Dec 22, 2021
87a033d
Properly indent return block (#14887)
sgugger Dec 22, 2021
05fa1a7
Release: v4.15.0
patrickvonplaten Dec 22, 2021
fa39ff9
Docs for v4.16.0dev0
patrickvonplaten Dec 22, 2021
b0c7d2e
Keras metric callback (#14867)
Rocketknight1 Dec 22, 2021
207594b
Convert rst files (#14888)
sgugger Dec 22, 2021
355dc0c
Fix installation instructions for BART ONNX example (#14885)
lewtun Dec 23, 2021
4210579
Fix doc examples: ... takes no keyword arguments (#14701)
ydshieh Dec 23, 2021
d8c09c6
Fix AttributeError from PreTrainedTokenizerFast.decoder (#14691)
aphedges Dec 23, 2021
6a7b9da
Add 'with torch.no_grad()' to integration test forward pass (#14808)
h-holm Dec 23, 2021
6b655cc
Add ONNX support for MarianMT models (#14586)
lewtun Dec 23, 2021
1d65186
add custom stopping criteria to human eval script (#14897)
lvwerra Dec 23, 2021
2d30443
Set `run_name` in MLflowCallback (#14894)
yangdong02 Dec 23, 2021
8f2cc1c
Add TFCLIPModel (#13967)
ydshieh Dec 23, 2021
ef47d4f
[AutoTokenizer] Fix incorrect from pretrained (#14900)
patrickvonplaten Dec 23, 2021
ee55ea6
Update diarization and WavLM tolerances (#14902)
anton-l Dec 23, 2021
86b4007
[doc] post-porting (#14890)
stas00 Dec 23, 2021
fe4197a
[Generate] Remove attention_mask and integrate model_main_input_name …
patrickvonplaten Dec 23, 2021
f566c6e
Fix failing GPU trainer tests (#14903)
sgugger Dec 23, 2021
676643c
Better logic for getting tokenizer config in AutoTokenizer (#14906)
sgugger Dec 23, 2021
4158106
[doc] install - add jax (#14912)
stas00 Dec 23, 2021
1168299
[WavLM] fix wavlm docs (#14910)
patrickvonplaten Dec 23, 2021
705ca7f
Fix Perceiver docs (#14917)
Sanster Dec 24, 2021
b058490
ChunkPipeline (batch_size enabled on `zero-cls` and `qa` pipelines. (…
Narsil Dec 27, 2021
501307b
Add `ElectraForCausalLM` -> Enable Electra encoder-decoder model (#14…
stancld Dec 27, 2021
03885a3
fix to issue #14833 in data_collator - consider no labels (#14930)
kleinay Dec 27, 2021
c113827
Fix duplicate call to save_checkpoint when using deepspeed (#14946)
MihaiBalint Dec 27, 2021
87e6e4f
Doc styler v2 (#14950)
sgugger Dec 27, 2021
b2f5002
Convert last rst file (#14952)
sgugger Dec 27, 2021
133c5e4
[doc] consistent True/False/None default format (#14951)
stas00 Dec 27, 2021
e13f72f
[doc] :obj: hunt (#14954)
stas00 Dec 27, 2021
b5e2b18
Doc styler examples (#14953)
sgugger Dec 28, 2021
2c5597f
Style
sgugger Dec 28, 2021
10fd4fa
[doc] :class: hunt (#14955)
stas00 Dec 28, 2021
1c12191
Add Speech Seq2Seq Training script (#14792)
patrickvonplaten Dec 28, 2021
1e847b4
[WavLM] give model for precision (#14958)
patrickvonplaten Dec 28, 2021
f80775d
Update README.md (#14965)
patrickvonplaten Dec 28, 2021
1bfa347
[Tests] Speed up tokenizer tests (#14964)
patrickvonplaten Dec 28, 2021
600496f
[Wav2Vec2] Rename model's feature extractor to feature encoder (#14959)
patrickvonplaten Dec 28, 2021
04cddaf
refactor: replace `assert` with `ValueError` (#14970)
jaketae Dec 29, 2021
d1ba56d
remove absl workaround as it's no longer needed (#14909)
stas00 Dec 29, 2021
d7d60df
Fixing a pathological case for slow tokenizers (#14981)
Narsil Dec 30, 2021
a139288
[AutoProcessor] Correct AutoProcessor and automatically add processor…
patrickvonplaten Dec 30, 2021
c043ce6
[Generate] correct encoder_outputs are passed without attention_mask …
patrickvonplaten Dec 30, 2021
f8a989c
Adding `num_return_sequences` support for text2text generation. (#14988)
Narsil Dec 30, 2021
08cb571
Enabling `tokenizers` upgrade. (#14941)
Narsil Dec 30, 2021
e68c375
Allow training to resume even if RNG states are not properly loaded (…
sgugger Dec 30, 2021
8f6373c
Map model_type and doc pages names (#14944)
sgugger Jan 3, 2022
8c2618e
Fixing t2t pipelines lists outputs. (#15008)
Narsil Jan 3, 2022
d33dc79
Improve truncation_side (#14947)
Narsil Jan 3, 2022
38f95d1
Large audio chunking for the existing ASR pipeline (#14896)
anton-l Jan 3, 2022
0b4c3a1
fix missing import (#15016)
ydshieh Jan 3, 2022
dbac889
[Tests] Correct Wav2Vec2 & WavLM tests (#15015)
patrickvonplaten Jan 3, 2022
f2ab218
Update parallelism.mdx (#15013)
hyunwoongko Jan 3, 2022
ddc94b0
Merge branch 'master' into add-roberta-test-split-into-words
SaulLu Jan 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 14 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
keys:
- v0.4-torch_and_tf-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng
- run: pip install --upgrade pip
- run: pip install .[sklearn,tf-cpu,torch,testing,sentencepiece,torch-speech,vision]
- run: pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.10.0+cpu.html
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
keys:
- v0.4-torch_and_tf-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng
- run: pip install --upgrade pip
- run: pip install .[sklearn,tf-cpu,torch,testing,sentencepiece,torch-speech,vision]
- run: pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.10.0+cpu.html
Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
keys:
- v0.4-torch_and_flax-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng
- run: pip install --upgrade pip
- run: pip install .[sklearn,flax,torch,testing,sentencepiece,torch-speech,vision]
- run: pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.10.0+cpu.html
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
keys:
- v0.4-torch_and_flax-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng
- run: pip install --upgrade pip
- run: pip install .[sklearn,flax,torch,testing,sentencepiece,torch-speech,vision]
- run: pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.10.0+cpu.html
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
keys:
- v0.4-torch-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng
- run: pip install --upgrade pip
- run: pip install .[sklearn,torch,testing,sentencepiece,torch-speech,vision,timm]
- run: pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.10.0+cpu.html
Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:
keys:
- v0.4-torch-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng
- run: pip install --upgrade pip
- run: pip install .[sklearn,torch,testing,sentencepiece,torch-speech,vision,timm]
- run: pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.10.0+cpu.html
Expand Down Expand Up @@ -284,7 +284,7 @@ jobs:
keys:
- v0.4-tf-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng
- run: pip install --upgrade pip
- run: pip install .[sklearn,tf-cpu,testing,sentencepiece,tf-speech,vision]
- run: pip install tensorflow_probability
Expand Down Expand Up @@ -320,7 +320,7 @@ jobs:
keys:
- v0.4-tf-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng
- run: pip install --upgrade pip
- run: pip install .[sklearn,tf-cpu,testing,sentencepiece,tf-speech,vision]
- run: pip install tensorflow_probability
Expand Down Expand Up @@ -351,7 +351,7 @@ jobs:
keys:
- v0.4-flax-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng
- run: pip install --upgrade pip
- run: pip install .[flax,testing,sentencepiece,flax-speech,vision]
- run: pip install https://github.com/kpu/kenlm/archive/master.zip
Expand Down Expand Up @@ -386,7 +386,7 @@ jobs:
keys:
- v0.4-flax-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng
- run: pip install --upgrade pip
- run: pip install .[flax,testing,sentencepiece,vision,flax-speech]
- run: pip install https://github.com/kpu/kenlm/archive/master.zip
Expand Down Expand Up @@ -417,7 +417,7 @@ jobs:
keys:
- v0.4-torch-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng
- run: pip install --upgrade pip
- run: pip install .[sklearn,torch,testing,sentencepiece,torch-speech,vision,timm]
- run: pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.10.0+cpu.html
Expand Down Expand Up @@ -454,7 +454,7 @@ jobs:
keys:
- v0.4-torch-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng
- run: pip install --upgrade pip
- run: pip install .[sklearn,torch,testing,sentencepiece,torch-speech,vision,timm]
- run: pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.10.0+cpu.html
Expand Down Expand Up @@ -579,7 +579,7 @@ jobs:
keys:
- v0.4-torch_examples-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng
- run: pip install --upgrade pip
- run: pip install .[sklearn,torch,sentencepiece,testing,torch-speech]
- run: pip install -r examples/pytorch/_tests_requirements.txt
Expand Down Expand Up @@ -614,7 +614,7 @@ jobs:
keys:
- v0.4-torch_examples-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng
- run: pip install --upgrade pip
- run: pip install .[sklearn,torch,sentencepiece,testing,torch-speech]
- run: pip install -r examples/pytorch/_tests_requirements.txt
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/build_doc_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ jobs:

- name: Setup environment
run: |
pip install --upgrade pip
sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev

pip install git+https://github.com/huggingface/doc-builder
pip install git+https://github.com/huggingface/transformers#egg=transformers[dev]
pip install .[dev]

export TORCH_VERSION=$(python -c "from torch import version; print(version.__version__.split('+')[0])")
pip install torch-scatter -f https://data.pyg.org/whl/torch-${TORCH_VERSION}+cpu.html
Expand All @@ -46,4 +47,4 @@ jobs:

- name: Make documentation
run: |
doc-builder build transformers ./transformers/docs/source
doc-builder build transformers ./docs/source
11 changes: 7 additions & 4 deletions .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- doc-builder*
- v*-release

jobs:
build_and_package:
Expand Down Expand Up @@ -45,8 +46,10 @@ jobs:
run: |
sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev

pip install git+https://github.com/huggingface/doc-builder@add_install_cell
pip install git+https://github.com/huggingface/transformers#egg=transformers[dev]
pip install git+https://github.com/huggingface/doc-builder
cd transformers
pip install .[dev]
cd ..

export TORCH_VERSION=$(python -c "from torch import version; print(version.__version__.split('+')[0])")
pip install torch-scatter -f https://data.pyg.org/whl/torch-${TORCH_VERSION}+cpu.html
Expand Down Expand Up @@ -81,7 +84,7 @@ jobs:
cd doc-builder
if [[ `git status --porcelain` ]]; then
git add build
git commit -m "Updated with commit ${{ github.sha }}"
git commit -m "Updated with commit ${{ github.sha }} \n\nSee: https://github.com/huggingface/transformers/commit/${{ github.sha }}"
git push origin main
else
echo "No diff in the documentation."
Expand All @@ -91,7 +94,7 @@ jobs:
cd notebooks
if [[ `git status --porcelain` ]]; then
git add transformers_doc
git commit -m "Updated Transformer doc notebooks with commit ${{ github.sha }}"
git commit -m "Updated Transformer doc notebooks with commit ${{ github.sha }} \n\nSee: https://github.com/huggingface/transformers/commit/${{ github.sha }}"
git push origin master
else
echo "No diff in the notebooks."
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/self-nightly-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run_all_tests_torch_gpu:
runs-on: [self-hosted, docker-gpu, single-gpu]
container:
image: pytorch/pytorch:1.9.0-cuda11.1-cudnn8-runtime
image: pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
steps:
- name: Launcher docker
Expand All @@ -36,7 +36,7 @@ jobs:
apt -y update && apt install -y libsndfile1-dev git
pip install --upgrade pip
pip install .[integrations,sklearn,testing,onnxruntime,sentencepiece,torch-speech,vision,timm]
pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu111/torch_nightly.html -U
pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu113/torch_nightly.html -U

- name: Are GPUs recognized by our DL frameworks
run: |
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
run_all_tests_torch_multi_gpu:
runs-on: [self-hosted, docker-gpu, multi-gpu]
container:
image: pytorch/pytorch:1.9.0-cuda11.1-cudnn8-runtime
image: pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
steps:
- name: Launcher docker
Expand All @@ -103,7 +103,7 @@ jobs:
apt -y update && apt install -y libsndfile1-dev git
pip install --upgrade pip
pip install .[integrations,sklearn,testing,onnxruntime,sentencepiece,torch-speech,vision,timm]
pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu111/torch_nightly.html -U
pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu113/torch_nightly.html -U

- name: Are GPUs recognized by our DL frameworks
run: |
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
run: |
apt -y update && apt install -y libaio-dev
pip install --upgrade pip
pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu111/torch_nightly.html -U
pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu113/torch_nightly.html -U
pip install .[testing,deepspeed]
pip install git+https://github.com/microsoft/DeepSpeed

Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
run: |
apt -y update && apt install -y libaio-dev
pip install --upgrade pip
pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu111/torch_nightly.html -U
pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu113/torch_nightly.html -U
rm -rf ~/.cache/torch_extensions/ # shared between conflicting builds
pip install .[testing,fairscale]
pip install git+https://github.com/microsoft/DeepSpeed # testing bleeding edge
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/self-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Install dependencies
run: |
apt -y update && apt install -y software-properties-common && apt -y update && add-apt-repository -y ppa:git-core/ppa && apt -y update && apt install -y git
apt install -y libsndfile1-dev
apt install -y libsndfile1-dev espeak-ng
pip install --upgrade pip
pip install .[sklearn,testing,onnxruntime,sentencepiece,torch-speech,vision,timm]
pip install https://github.com/kpu/kenlm/archive/master.zip
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
steps:
- name: Install dependencies
run: |
apt -y update && apt install -y software-properties-common && apt -y update && add-apt-repository -y ppa:git-core/ppa && apt -y update && apt install -y git
apt -y update && apt install -y software-properties-common && apt -y update && add-apt-repository -y ppa:git-core/ppa && apt -y update && apt install -y git espeak-ng
pip install --upgrade "jax[cuda111]" -f https://storage.googleapis.com/jax-releases/jax_releases.html
pip install --upgrade pip
pip install .[sklearn,testing,sentencepiece,flax,flax-speech,vision]
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
# steps:
# - name: Install dependencies
# run: |
# apt -y update && apt install -y software-properties-common && apt -y update && add-apt-repository -y ppa:git-core/ppa && apt -y update && apt install -y git
# apt -y update && apt install -y software-properties-common && apt -y update && add-apt-repository -y ppa:git-core/ppa && apt -y update && apt install -y git espeak-ng
# pip install --upgrade pip
# pip install .[sklearn,testing,onnxruntime,sentencepiece,tf-speech]
# pip install https://github.com/kpu/kenlm/archive/master.zip
Expand Down Expand Up @@ -199,8 +199,8 @@ jobs:
steps:
- name: Install dependencies
run: |
apt -y update && apt install -y software-properties-common && apt -y update && add-apt-repository -y ppa:git-core/ppa && apt -y update && apt install -y git
apt install -y libsndfile1-dev
apt -y update && apt install -y software-properties-common && apt -y update && add-apt-repository -y ppa:git-core/ppa && apt -y update && apt install -y git espeak-ng
apt install -y libsndfile1-dev espeak-ng
pip install --upgrade pip
pip install .[sklearn,testing,onnxruntime,sentencepiece,torch-speech,vision,timm]
pip install https://github.com/kpu/kenlm/archive/master.zip
Expand Down Expand Up @@ -255,7 +255,7 @@ jobs:
# steps:
# - name: Install dependencies
# run: |
# apt -y update && apt install -y software-properties-common && apt -y update && add-apt-repository -y ppa:git-core/ppa && apt -y update && apt install -y git
# apt -y update && apt install -y software-properties-common && apt -y update && add-apt-repository -y ppa:git-core/ppa && apt -y update && apt install -y git espeak-ng
# pip install --upgrade "jax[cuda111]" -f https://storage.googleapis.com/jax-releases/jax_releases.html
# pip install --upgrade pip
# pip install .[sklearn,testing,sentencepiece,flax,flax-speech,vision]
Expand Down Expand Up @@ -312,7 +312,7 @@ jobs:
# steps:
# - name: Install dependencies
# run: |
# apt -y update && apt install -y software-properties-common && apt -y update && add-apt-repository -y ppa:git-core/ppa && apt -y update && apt install -y git
# apt -y update && apt install -y software-properties-common && apt -y update && add-apt-repository -y ppa:git-core/ppa && apt -y update && apt install -y git espeak-ng
# pip install --upgrade pip
# pip install .[sklearn,testing,onnxruntime,sentencepiece,tf-speech]
# pip install https://github.com/kpu/kenlm/archive/master.zip
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/self-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- name: Install dependencies
run: |
apt -y update && apt install -y libsndfile1-dev git
apt -y update && apt install -y libsndfile1-dev git espeak-ng
pip install --upgrade pip
pip install .[integrations,sklearn,testing,onnxruntime,sentencepiece,torch-speech,vision,timm]
pip install https://github.com/kpu/kenlm/archive/master.zip
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:

- name: Install dependencies
run: |
apt -y update && apt install -y libsndfile1-dev git
apt -y update && apt install -y libsndfile1-dev git espeak-ng
pip install --upgrade pip
pip install .[sklearn,testing,onnx,sentencepiece,tf-speech,vision]
pip install https://github.com/kpu/kenlm/archive/master.zip
Expand Down Expand Up @@ -237,7 +237,7 @@ jobs:

- name: Install dependencies
run: |
apt -y update && apt install -y libsndfile1-dev git
apt -y update && apt install -y libsndfile1-dev git espeak-ng
pip install --upgrade pip
pip install .[integrations,sklearn,testing,onnxruntime,sentencepiece,torch-speech,vision,timm]
pip install https://github.com/kpu/kenlm/archive/master.zip
Expand Down Expand Up @@ -290,7 +290,7 @@ jobs:

- name: Install dependencies
run: |
apt -y update && apt install -y libsndfile1-dev git
apt -y update && apt install -y libsndfile1-dev git espeak-ng
pip install --upgrade pip
pip install .[sklearn,testing,onnx,sentencepiece,tf-speech,vision]
pip install https://github.com/kpu/kenlm/archive/master.zip
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/update_metdata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Update Transformers metadata

on:
push:
branches:
- master
- update_transformers_metadata

jobs:
build_and_package:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v2

- name: Loading cache.
uses: actions/cache@v2
id: cache
with:
path: ~/.cache/pip
key: v1-metadata
restore-keys: |
v1-metadata-${{ hashFiles('setup.py') }}
v1-metadata

- name: Setup environment
run: |
pip install git+https://github.com/huggingface/transformers#egg=transformers[dev]

- name: Update metadata
run: |
python utils/update_metadata.py --token ${{ secrets.SYLVAIN_HF_TOKEN }} --commit_sha ${{ github.sha }}

Loading