Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
419 commits
Select commit Hold shift + click to select a range
29a59f9
Generate: general TF XLA constrastive search are now slow tests (#20277)
gante Nov 17, 2022
4c732a3
Fixing the doctests failures. (#20294)
Narsil Nov 17, 2022
5aff383
set the default cache_enable to True, aligned with the default value …
sywangyi Nov 17, 2022
f26e427
Add docstrings for canine model (#19457)
raghavanone Nov 17, 2022
1a6d6e4
Add AutoBackbone + ResNetBackbone (#20229)
NielsRogge Nov 17, 2022
b132b80
Add missing report button for Example test (#20293)
ydshieh Nov 17, 2022
ba23a07
refactor test (#20300)
younesbelkada Nov 17, 2022
1c2b2b3
[Tiny model creation] deal with `ImageProcessor` (#20298)
ydshieh Nov 17, 2022
7a63702
Fix blender bot missleading doc (#20301)
ArthurZucker Nov 18, 2022
4bb1eac
remove two tokens that should not be suppressed (#20302)
ArthurZucker Nov 18, 2022
7bb727a
[ASR Examples] Update README for Whisper (#20230)
sanchit-gandhi Nov 18, 2022
baca2c1
Add padding image transformation (#19838)
amyeroberts Nov 18, 2022
90e95e1
Pin TensorFlow (#20313)
sgugger Nov 18, 2022
e35c976
Pin to the right version...
sgugger Nov 18, 2022
e2bd841
Also pin TensorFlow CPU
sgugger Nov 18, 2022
70a1123
Add AnyPrecisionAdamW optimizer (#18961)
atturaioe Nov 18, 2022
5d2c1db
[Proposal] Breaking change `zero-shot-object-detection` for impro…
Narsil Nov 18, 2022
78e64cf
Fix flakey test with seed (#20318)
muellerzr Nov 18, 2022
0e7bea9
Pin TF 2.10.1 for Push CI (#20319)
ydshieh Nov 18, 2022
56f5ce0
Remove double brackets (#20307)
stevhliu Nov 18, 2022
6716752
TF: future proof our keras imports (#20317)
gante Nov 18, 2022
5bf1f59
Add Neighborhood Attention Transformer (NAT) and Dilated NAT (DiNAT) …
alihassanijr Nov 18, 2022
d966c6f
organize pipelines by modality (#20306)
stevhliu Nov 18, 2022
aa6beaa
Fix torch device issues (#20304)
ydshieh Nov 21, 2022
713f136
Generate: add generation config class (#20218)
gante Nov 21, 2022
82ceaa9
translate zh quicktour(#20095) (#20181)
bfss Nov 21, 2022
89e57ea
Add Spanish translation of serialization.mdx (#20245)
donelianc Nov 21, 2022
0266ccc
Add LayerScale to NAT/DiNAT (#20325)
alihassanijr Nov 21, 2022
86e73c1
[Switch Transformers] Fix failing slow test (#20346)
younesbelkada Nov 21, 2022
fe6367d
fix: "BigSicence" typo in docs (#20331)
rajrajhans Nov 21, 2022
b9d8426
add MobileNetV1 model (#17799)
hollance Nov 21, 2022
785a276
Generate: `model_kwargs` can also be an input to `prepare_inputs_for_…
gante Nov 21, 2022
34e2123
Update Special Language Tokens for PLBART (#19980)
jordiclive Nov 21, 2022
76a9e02
Add resources (#20296)
NielsRogge Nov 21, 2022
d7d9abe
Enhance HfArgumentParser functionality and ease of use (#20323)
konstantinjdobler Nov 21, 2022
b84b1a4
Add Audio Spectogram Transformer (#19981)
NielsRogge Nov 21, 2022
25f9f54
Add inference section to task guides (#18781)
stevhliu Nov 21, 2022
4f64be7
Fix toctree for Section 3 in Spanish Documentation (#20360)
donelianc Nov 21, 2022
82216f8
Generate: shorter XLA contrastive search tests (#20354)
gante Nov 22, 2022
66c8000
revert `keys_to_ignore` for M2M100 (#20381)
younesbelkada Nov 22, 2022
822ed4a
add `accelerate` support for `ESM` (#20379)
younesbelkada Nov 22, 2022
7dcaa83
Bump pillow in /examples/research_projects/decision_transformer (#20378)
dependabot[bot] Nov 22, 2022
b36de61
Skip failing test
sgugger Nov 22, 2022
053998a
Fix nightly runs (#20352)
sgugger Nov 22, 2022
c7926e0
Optimizes DonutProcessor token2json method for speed (#20283)
michaelnation26 Nov 22, 2022
5c595e8
Indicate better minimal version of PyTorch in big model inference (#2…
sgugger Nov 22, 2022
c687e75
Improve backbone (#20380)
NielsRogge Nov 22, 2022
4242739
Fix longformer onnx broken export (#20292)
fxmarty Nov 22, 2022
dc27bf0
Use tiny models for ONNX tests - text modality (#20333)
lewtun Nov 22, 2022
08cae53
[ESM] fix `accelerate` tests for esmfold (#20387)
younesbelkada Nov 22, 2022
2ef4552
Generate: fix plbart generation tests (#20391)
gante Nov 22, 2022
35073be
[bloom] convert script tweaks (#18593)
stas00 Nov 23, 2022
3cdf2e4
Fix doctest file path (#20400)
ydshieh Nov 23, 2022
6300e21
[Image Transformers] to_pil fix float edge cases (#20406)
patrickvonplaten Nov 23, 2022
5f1e0c2
make daily CI happy (#20410)
younesbelkada Nov 23, 2022
ddb08ff
fix nasty `bnb` bug (#20408)
younesbelkada Nov 23, 2022
ae63540
change the way sentinel tokens can retrived (#20373)
raghavanone Nov 23, 2022
fc8447b
[BNB] Throw `ValueError` when trying to cast or assign (#20409)
younesbelkada Nov 23, 2022
79fb3ec
Use updated `model_max_length` when saving tokenizers (#20401)
ydshieh Nov 23, 2022
4f27fe5
Add Spanish translation of pr_checks.mdx (#20339)
donelianc Nov 23, 2022
8383c67
fix device in longformer onnx path (#20419)
fxmarty Nov 23, 2022
4036c7b
Fix ModelOutput instantiation when there is only one tuple (#20416)
sgugger Nov 23, 2022
56bfaf6
`accelerate` support for `OwlViT` (#20411)
younesbelkada Nov 25, 2022
587edf3
[AnyPrecisionAdamW] test fix (#20454)
stas00 Nov 25, 2022
4aaaeee
fix `word_to_tokens` docstring format (#20450)
SaulLu Nov 25, 2022
e1ed7ba
Fix typo in FSMT Tokenizer (#20456)
kamalkraj Nov 26, 2022
54c03a4
Fix device issues in `CLIPSegModelIntegrationTest` (#20467)
ydshieh Nov 28, 2022
f369695
Fix links for `contrastive_loss` (#20455)
ydshieh Nov 28, 2022
c238536
Fix doctests for audio models (#20468)
ydshieh Nov 28, 2022
87b6d3a
Fix ESM checkpoints for tests (#20436)
Rocketknight1 Nov 28, 2022
364d09c
More TF int dtype fixes (#20384)
Rocketknight1 Nov 28, 2022
06fe148
make tensors in function build_relative_position created on proper de…
qq775294390 Nov 28, 2022
9243274
update cpu related doc (#20444)
sywangyi Nov 28, 2022
62160c5
with pytorch cpu only version. without --no_cuda, using --bf16 will t…
sywangyi Nov 28, 2022
3328867
[CLIPTokenizer] Improve warning (#20458)
patrickvonplaten Nov 28, 2022
f322573
Replace assertions with value errors on distilbert model (#20463)
JuheonChu Nov 28, 2022
43fa78b
[Doctest] Add configuration_fsmt.py (#19936)
sha016 Nov 28, 2022
f98492b
Replace assertion with ValueError exceptions in run_image_captioning_…
katiele47 Nov 28, 2022
6aefbc2
[FLAX] Add dtype to embedding for bert/bart/opt/t5 (#20340)
merrymercy Nov 28, 2022
a7ad384
Safetensors offload (#20321)
sgugger Nov 28, 2022
b880842
fix both failing RoCBert tests (#20469)
ArthurZucker Nov 28, 2022
ce4502a
[AutoBackbone] Improve API (#20407)
NielsRogge Nov 28, 2022
c5f3c32
Include image processor in add-new-model-like (#20439)
amyeroberts Nov 28, 2022
53a19cd
chore: add link to the video cls notebook. (#20386)
sayakpaul Nov 28, 2022
88c5dda
add timeout option for deepspeed engine (#20443)
henghuiz Nov 28, 2022
426411a
[Maskformer] Add MaskFormerSwin backbone (#20344)
NielsRogge Nov 28, 2022
6b67f5b
Extract warnings from CI artifacts (#20474)
ydshieh Nov 28, 2022
6e6c78e
Add Donut image processor (#20425)
amyeroberts Nov 29, 2022
acd32ce
Fix torch meshgrid warnings (#20475)
fxmarty Nov 29, 2022
a770c67
Fix init import_structure sorting (#20477)
sgugger Nov 29, 2022
f513330
extract warnings in GH workflows (#20487)
ydshieh Nov 29, 2022
afc47ad
add in layer gpt2 tokenizer (#20421)
piEsposito Nov 29, 2022
d4fcef7
Replace assert statements with raise exceptions (#20478)
miyu386 Nov 29, 2022
c445dbf
fixed small typo (#20490)
sandeepgadhwal Nov 29, 2022
64fc338
Fix documentation code to import facebook/detr-resnet-50 model (#20491)
JuanFKurucz Nov 29, 2022
6aa8f88
Fix disk offload for full safetensors checkpoints (#20497)
sgugger Nov 29, 2022
9961d33
[modelcard] Check for IterableDataset (#20495)
sanchit-gandhi Nov 30, 2022
fc5b925
[modelcard] Set model name if empty (#20496)
sanchit-gandhi Nov 30, 2022
929ea58
Add segmentation + object detection image processors (#20160)
amyeroberts Nov 30, 2022
1cd75d6
remove `attention_mask` truncation in whisper (#20488)
ydshieh Nov 30, 2022
7de8718
Make `add_special_tokens` more clear (#20424)
ydshieh Nov 30, 2022
bffd68c
[OPT/Galactica] Load large `galactica` models (#20390)
younesbelkada Nov 30, 2022
3fd9af8
Support extraction of both train and eval XLA graphs (#20492)
jeffhataws Nov 30, 2022
42c7df0
fix ipex+fp32 jit trace error in ipex 1.13 (#20504)
sywangyi Nov 30, 2022
579e73d
Expected output for the test changed (#20493)
ArthurZucker Nov 30, 2022
96bc441
Fix TF nightly tests (#20507)
Rocketknight1 Nov 30, 2022
8de532f
Update doc examples feature extractor -> image processor (#20501)
amyeroberts Nov 30, 2022
8586ebe
Fix Typo in Docs for GPU (#20509)
julianpollmann Nov 30, 2022
0140201
Repurpose torchdynamo training args towards torch._dynamo (#20498)
sgugger Nov 30, 2022
436bd20
Fix minimum version for device_map (#20489)
sgugger Nov 30, 2022
cbddaa9
Add Chinese-CLIP implementation (#20368)
yangapku Nov 30, 2022
b0e44f3
Fix style
sgugger Nov 30, 2022
1eb5f80
Update `AutomaticSpeechRecognitionPipeline` doc example (#20512)
ydshieh Nov 30, 2022
473cab0
Add `natten` for CI (#20511)
ydshieh Nov 30, 2022
d485617
Fix Data2VecTextForCasualLM example code documentation (#20510)
JuanFKurucz Nov 30, 2022
984369c
Add some warning for Dynamo and enable TF32 when it's set (#20515)
sgugger Nov 30, 2022
e335df6
[modelcard] Update dataset tags (#20506)
sanchit-gandhi Dec 1, 2022
15c15a1
Change Doctests CI launch time (#20523)
ydshieh Dec 1, 2022
6aed6e5
Fix `PLBart` doctest (#20527)
ydshieh Dec 1, 2022
4dd3237
Fix `ConditionalDetrForSegmentation` doc example (#20531)
ydshieh Dec 1, 2022
4fa8ce9
add doc for (#20525)
younesbelkada Dec 1, 2022
7155d42
Update `ZeroShotObjectDetectionPipeline` doc example (#20528)
ydshieh Dec 1, 2022
6cbbcce
update post_process_image_guided_detection (#20521)
fcakyon Dec 1, 2022
bc60b35
QnA example: add speed metric (#20522)
sywangyi Dec 1, 2022
acb8029
Fix doctest (#20534)
NielsRogge Dec 1, 2022
4f856bb
Fix Hubert models in TFHubertModel and TFHubertForCTC documentation c…
JuanFKurucz Dec 1, 2022
1255f7b
Fix link in pipeline device map (#20517)
stevhliu Dec 1, 2022
c4b4c75
v4.26.0.dev0
sgugger Dec 1, 2022
2cfac98
fix cuda OOM by using single Prior (#20486)
ArthurZucker Dec 2, 2022
62ff7e5
[New Model] Add TimeSformer model (#18908)
fcakyon Dec 2, 2022
0101ae1
Add ESM contact prediction (#20535)
Rocketknight1 Dec 2, 2022
3378539
flan-t5.mdx: fix link to large model (#20555)
szhublox Dec 2, 2022
da72950
Fix torch device issues (#20584)
ydshieh Dec 5, 2022
5b1f623
Fix flax GPT-J-6B linking model in tests (#20556)
JuanFKurucz Dec 5, 2022
f6ab014
[Vision] fix small nit on `BeitDropPath` layers (#20587)
younesbelkada Dec 5, 2022
4edc583
Fix repo consistency
sgugger Dec 5, 2022
9b050fd
Install `natten` with CUDA version (#20546)
ydshieh Dec 5, 2022
ed85ef5
Add entries to `FEATURE_EXTRACTOR_MAPPING_NAMES` (#20551)
ydshieh Dec 5, 2022
ea4fc67
Cleanup some config attributes (#20554)
ydshieh Dec 5, 2022
911d21f
[Whisper] Move decoder id method to tokenizer (#20589)
sanchit-gandhi Dec 5, 2022
e106bcb
Add `require_torch` to 2 pipeline tests (#20585)
ydshieh Dec 5, 2022
bc7e172
Install `tensorflow_probability` for TF pipeline CI (#20586)
ydshieh Dec 5, 2022
b549696
Add BioGPT (#20420)
kamalkraj Dec 5, 2022
36bf4a6
Ci-whisper-asr (#20588)
ArthurZucker Dec 5, 2022
63d622d
cross platform from_pretrained (#20538)
ArthurZucker Dec 5, 2022
ea5ce1d
Make convert_to_onnx runable as script again (#20009)
mcernusca Dec 5, 2022
1010508
ESM openfold_utils type hints (#20544)
Dec 5, 2022
e3d99ba
Add RemBERT ONNX config (#20520)
hchings Dec 5, 2022
6c4c1bb
Fix link to Swin Model contributor novice03 (#20557)
JuanFKurucz Dec 5, 2022
737c697
Fix link to swin transformers v2 microsoft model (#20558)
JuanFKurucz Dec 5, 2022
37b7f12
Fix link to table transformer detection microsoft model (#20560)
JuanFKurucz Dec 5, 2022
d4011a4
clean up unused `classifier_dropout` in config (#20596)
ydshieh Dec 5, 2022
4db864d
Fix whisper and speech to text doc (#20595)
ArthurZucker Dec 5, 2022
8215fb4
Replace `set-output` by `$GITHUB_OUTPUT` (#20547)
ydshieh Dec 5, 2022
53d93ae
[Vision] `.to` function for ImageProcessors (#20536)
younesbelkada Dec 5, 2022
11c904d
[Whisper] Fix decoder ids methods (#20599)
sanchit-gandhi Dec 5, 2022
e9f100c
Add-whisper-conversion (#20600)
ArthurZucker Dec 5, 2022
a37d710
README in Hindi 🇮🇳 (#20097)
pacman100 Dec 5, 2022
2dc7784
Fix code sample in preprocess (#20561)
stevhliu Dec 5, 2022
87a9039
Split autoclasses on modality (#20559)
stevhliu Dec 5, 2022
2a1c77a
Fix test for file not found (#20604)
sgugger Dec 5, 2022
42180af
Rework the pipeline tutorial (#20437)
Narsil Dec 6, 2022
ff40a03
Documentation fixes (#20607)
samuelzxu Dec 6, 2022
2643822
Adding anchor links to Hindi README (#20606)
pacman100 Dec 6, 2022
340c3b9
exclude jit time from the speed metric calculation of evaluation and …
sywangyi Dec 6, 2022
248ea71
Check if docstring is None before formating it (#20592)
xxyzz Dec 6, 2022
fa694b4
updating T5 and BART models to support Prefix Tuning (#20601)
pacman100 Dec 6, 2022
6750938
Repo consistency
sgugger Dec 6, 2022
d90d85b
Fix `AutomaticSpeechRecognitionPipelineTests.run_pipeline_test` (#20597)
ydshieh Dec 6, 2022
655a194
Ci-jukebox (#20613)
ArthurZucker Dec 6, 2022
c6ec20e
Update some GH action versions (#20537)
ydshieh Dec 6, 2022
7972297
Fix dtype of weights in from_pretrained when device_map is set (#20602)
sgugger Dec 6, 2022
e925cd5
add missing is_decoder param (#20631)
stevhliu Dec 6, 2022
fadca52
Fix link to speech encoder decoder model in speech recognition readme…
JuanFKurucz Dec 6, 2022
ac0ee24
Fix `natten` installation in docker file (#20632)
ydshieh Dec 6, 2022
9b472d3
Clip floating point constants to bf16 range to avoid inf conversion (…
sangeethabal Dec 6, 2022
910fc7f
Pin TensorFlow to the next release (#20635)
sgugger Dec 6, 2022
138cca0
[MaskFormer] Add support for ResNet backbone (#20483)
NielsRogge Dec 7, 2022
83c31ec
Add BiT + ViT hybrid (#20550)
NielsRogge Dec 7, 2022
b31287d
[Trainer] add error when passing `8bit`models (#20651)
younesbelkada Dec 7, 2022
6d749c4
[`ViTHybrid`] + [`BiT`] cleaner `__init__` (#20649)
younesbelkada Dec 7, 2022
9ed699e
Update summarization `run_pipeline_test` (#20623)
ydshieh Dec 7, 2022
d9e2542
pin TF 2.11 in docker files (#20642)
ydshieh Dec 7, 2022
1770d9a
Speed up git-lfs detection on error (#20641)
xloem Dec 7, 2022
4e86af8
Updated Trainer args typing (#20655)
julianmack Dec 7, 2022
7e6d7a6
Add `dpt-hybrid` support (#20645)
younesbelkada Dec 7, 2022
8ffc9c1
[Whisper] Fix forced decoder ids (#20652)
sanchit-gandhi Dec 7, 2022
c61e830
Add TFBartForSequenceClassification (#20570)
uglyboxer Dec 7, 2022
d4aa766
run_speech_recognition_seq2seq.py: add cache_dir param to dataset (#2…
eschmidbauer Dec 7, 2022
67e1953
[`BiT`] Small patch fix (#20657)
younesbelkada Dec 8, 2022
44a868b
Fix gpt2 fp16 training when tracing is enabled (#20656)
JingyaHuang Dec 8, 2022
486a165
Fix load from PT-formatted checkpoint in composite TF models (#20661)
sgugger Dec 8, 2022
254c612
Update the list of contributors to reflect current organization (#20603)
sgugger Dec 8, 2022
b66c3d7
Fix expected values for TF-ESM tests (#20680)
Rocketknight1 Dec 8, 2022
f3bd7fe
Add `BackboneMixin` (#20660)
ydshieh Dec 8, 2022
c60d369
Bump certifi in /examples/research_projects/lxmert (#20672)
dependabot[bot] Dec 8, 2022
672c74b
Bump certifi in /examples/research_projects/decision_transformer (#20…
dependabot[bot] Dec 8, 2022
af927c7
Bump certifi in /examples/research_projects/visual_bert (#20673)
dependabot[bot] Dec 8, 2022
b27e801
Migrate torchdynamo to torch.compile (#20634)
sgugger Dec 8, 2022
5ff084f
Whilelist Transformers private method in DummyObject (#20681)
sgugger Dec 8, 2022
074306d
[`ViTHybrid`] Fix `accelerate` slow tests (#20679)
younesbelkada Dec 8, 2022
87b2076
Enable bf16 option for XLA devices (#20684)
jeffhataws Dec 8, 2022
cad0c65
Fix CIs for PyTorch 1.13 (#20686)
ydshieh Dec 8, 2022
7cc4588
Fix donut image processor (#20625)
amyeroberts Dec 8, 2022
e878528
Added missing `test_tokenization_led` (#20568)
IMvision12 Dec 8, 2022
bbc4928
Add deprecation warning when image FE instantiated (#20427)
amyeroberts Dec 8, 2022
df63458
Add video classification pipeline (#20151)
nateraw Dec 8, 2022
feed8ec
[Backbones] Improve out features (#20675)
NielsRogge Dec 9, 2022
bd395f7
Change transformers.onnx to use optimum.exporters.onnx (#20529)
michaelbenayoun Dec 9, 2022
60fae5e
skip `test_multi_gpu_data_parallel_forward` for `MaskFormerSwinModelT…
ydshieh Dec 9, 2022
af23b08
Vision processors - replace FE with IPs (#20590)
amyeroberts Dec 9, 2022
ef579a8
Replace FE references (#20702)
amyeroberts Dec 9, 2022
b6979f7
[`ViTHybrid`] fix last `accelerate` slow test (#20705)
younesbelkada Dec 9, 2022
2151285
Fix rendering issue in quicktour (#20708)
sgugger Dec 9, 2022
98df7e5
Made LUKE Tokenizer independent from RoBERTa (#20720)
salvo96 Dec 12, 2022
fad625d
Spanish translation of asr.mdx and add_new_pipeline.mdx (#20569)
alceballosa Dec 12, 2022
b98370a
Add `accelerate` support for LongT5 models (#20341)
pszemraj Dec 12, 2022
c08b449
Fix `AutoModelTest.test_model_from_pretrained` (#20730)
ydshieh Dec 12, 2022
ec19a0e
Adding ValueError when imcompatible parameters are used. (#20729)
Narsil Dec 12, 2022
7b023fc
Add type hints for Whisper models (#20396)
donelianc Dec 12, 2022
9b60888
Very small edit to change name to OpenAI GPT (#20722)
stanleycai95 Dec 12, 2022
9a8df40
fsdp fix (#20719)
pacman100 Dec 12, 2022
1a0e651
Spanish translation of the file debugging.mdx (#20566)
SimplyJuanjo Dec 12, 2022
3f78943
Convert tokenizer outputs for Keras in doc example (#20732)
Rocketknight1 Dec 12, 2022
fe239d7
Clarify return_tensor and return_text parameters (#20662)
stevhliu Dec 12, 2022
4d682a6
Add vision requirement to image transforms (#20712)
amyeroberts Dec 12, 2022
0e3bb1e
Add gpt-sw3 model to transformers (#20209)
ekgren Dec 12, 2022
ed58694
Add a progress bar for large model loading (#20713)
sgugger Dec 12, 2022
71c6e75
Disambiguate test for required_input in tokenization base file. (#20731)
sgugger Dec 12, 2022
fc1a8e8
Add decorator for flaky Donut tests (#20739)
amyeroberts Dec 12, 2022
7896580
rename `layoutlm_job` to `exotic_models_job` (#20736)
ydshieh Dec 12, 2022
214bb6f
Update CI to torch 1.13.0 (#20687)
ydshieh Dec 12, 2022
ff0be4d
Add `keep_in_fp32_modules` support (#20683)
younesbelkada Dec 13, 2022
f4d4d5f
Change a logic in pipeline test regarding TF (#20710)
ydshieh Dec 13, 2022
edecaeb
Fix AdamWeightDecay for TF 2.11 (#20735)
Rocketknight1 Dec 13, 2022
6b27a46
in the resize() function in image_transforms.py, the line 267: (#20728)
dhansmair Dec 13, 2022
bb528c5
[NAT, DiNAT] Add backbone class (#20654)
NielsRogge Dec 13, 2022
ccf278c
Add docs xlm roberta (#20742)
hazrulakmal Dec 13, 2022
19c41e9
Fixing the pipeline tutorial test (#20746)
Narsil Dec 13, 2022
edaa863
Uninstall `torch_tensorrt` in `DeepSpeed` CI image for now (#20758)
ydshieh Dec 13, 2022
3274267
Remove image_transforms functions from init (#20704)
amyeroberts Dec 14, 2022
4c87485
Fix missing `()` in some usage of `is_flaky` (#20749)
ydshieh Dec 14, 2022
513d90a
[Tests] Improve test_attention_outputs (#20701)
NielsRogge Dec 14, 2022
d3e8444
Fix attribute error problem (#20765)
fjklqq Dec 14, 2022
ce40ff2
[CI-Test] Fixes but also skips the mT5 tests (#20755)
ArthurZucker Dec 14, 2022
07e7deb
Replaces xxx_required with requires_backends (#20715)
amyeroberts Dec 14, 2022
9e57892
Install `torch-tensorrt 1.3.0` for DeepSpeed CI (#20764)
ydshieh Dec 14, 2022
032c6c0
Add Swin backbone (#20769)
NielsRogge Dec 14, 2022
17e997c
Even more validation. (#20762)
Narsil Dec 15, 2022
c583e1d
Install vision for TF pipeline tests (#20771)
ydshieh Dec 15, 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
  •  
  •  
  •  
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ jobs:
key: v0.5-code_quality-{{ checksum "setup.py" }}
paths:
- '~/.cache/pip'
- run:
name: Show installed libraries and their versions
command: pip freeze | tee installed.txt
- store_artifacts:
path: ~/transformers/installed.txt
- run: black --check --preview examples tests src utils
- run: isort --check-only examples tests src utils
- run: python utils/custom_init_isort.py --check_only
Expand Down Expand Up @@ -145,6 +150,11 @@ jobs:
key: v0.5-repository_consistency-{{ checksum "setup.py" }}
paths:
- '~/.cache/pip'
- run:
name: Show installed libraries and their versions
command: pip freeze | tee installed.txt
- store_artifacts:
path: ~/transformers/installed.txt
- run: python utils/check_copies.py
- run: python utils/check_table.py
- run: python utils/check_dummies.py
Expand Down
31 changes: 18 additions & 13 deletions .circleci/create_circleci_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
COMMON_ENV_VARIABLES = {"OMP_NUM_THREADS": 1, "TRANSFORMERS_IS_CI": True, "PYTEST_TIMEOUT": 120}
COMMON_PYTEST_OPTIONS = {"max-worker-restart": 0, "dist": "loadfile", "s": None}
DEFAULT_DOCKER_IMAGE = [{"image": "cimg/python:3.7.12"}]
TORCH_SCATTER_INSTALL = "pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.12.0+cpu.html"


@dataclass
Expand Down Expand Up @@ -91,6 +90,8 @@ def to_dict(self):
}
}
)
steps.append({"run": {"name": "Show installed libraries and their versions", "command": "pip freeze | tee installed.txt"}})
steps.append({"store_artifacts": {"path": "~/transformers/installed.txt"}})

all_options = {**COMMON_PYTEST_OPTIONS, **self.pytest_options}
pytest_flags = [f"--{key}={value}" if value is not None else f"-{key}" for key, value in all_options.items()]
Expand Down Expand Up @@ -125,7 +126,6 @@ def job_name(self):
"git lfs install",
"pip install --upgrade pip",
"pip install .[sklearn,tf-cpu,torch,testing,sentencepiece,torch-speech,vision]",
TORCH_SCATTER_INSTALL,
"pip install tensorflow_probability",
"pip install git+https://github.com/huggingface/accelerate",
],
Expand All @@ -141,7 +141,6 @@ def job_name(self):
"sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng",
"pip install --upgrade pip",
"pip install .[sklearn,flax,torch,testing,sentencepiece,torch-speech,vision]",
TORCH_SCATTER_INSTALL,
"pip install git+https://github.com/huggingface/accelerate",
],
marker="is_pt_flax_cross_test",
Expand All @@ -155,7 +154,6 @@ def job_name(self):
"sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng time",
"pip install --upgrade pip",
"pip install .[sklearn,torch,testing,sentencepiece,torch-speech,vision,timm]",
TORCH_SCATTER_INSTALL,
"pip install git+https://github.com/huggingface/accelerate",
],
pytest_num_workers=3,
Expand Down Expand Up @@ -190,8 +188,7 @@ def job_name(self):
install_steps=[
"sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng",
"pip install --upgrade pip",
"pip install .[sklearn,torch,testing,sentencepiece,torch-speech,vision,timm]",
TORCH_SCATTER_INSTALL,
"pip install .[sklearn,torch,testing,sentencepiece,torch-speech,vision,timm,video]",
],
pytest_options={"rA": None},
tests_to_run="tests/pipelines/"
Expand All @@ -202,7 +199,7 @@ def job_name(self):
"pipelines_tf",
install_steps=[
"pip install --upgrade pip",
"pip install .[sklearn,tf-cpu,testing,sentencepiece]",
"pip install .[sklearn,tf-cpu,testing,sentencepiece,vision]",
"pip install tensorflow_probability",
],
pytest_options={"rA": None},
Expand Down Expand Up @@ -301,8 +298,8 @@ def job_name(self):
)


layoutlm_job = CircleCIJob(
"layoutlmv2_and_v3",
exotic_models_job = CircleCIJob(
"exotic_models",
install_steps=[
"sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev",
"pip install --upgrade pip",
Expand All @@ -311,8 +308,12 @@ def job_name(self):
"pip install 'git+https://github.com/facebookresearch/detectron2.git'",
"sudo apt install tesseract-ocr",
"pip install pytesseract",
"pip install natten",
],
tests_to_run=[
"tests/models/*layoutlmv*",
"tests/models/*nat",
],
tests_to_run="tests/models/*layoutlmv*",
pytest_num_workers=1,
pytest_options={"durations": 100},
)
Expand All @@ -322,7 +323,7 @@ def job_name(self):
"repo_utils",
install_steps=[
"pip install --upgrade pip",
"pip install .[all,quality,testing]",
"pip install .[quality,testing]",
],
parallelism=None,
pytest_num_workers=1,
Expand All @@ -339,7 +340,7 @@ def job_name(self):
custom_tokenizers_job,
hub_job,
onnx_job,
layoutlm_job,
exotic_models_job,
]
EXAMPLES_TESTS = [
examples_torch_job,
Expand Down Expand Up @@ -384,7 +385,11 @@ def create_circleci_config(folder=None):

if len(jobs) > 0:
config = {"version": "2.1"}
config["parameters"] = {"tests_to_run": {"type": "string", "default": test_list}}
config["parameters"] = {
# Only used to accept the parameters from the trigger
"nightly": {"type": "boolean", "default": False},
"tests_to_run": {"type": "string", "default": test_list},
}
config["jobs"] = {j.job_name: j.to_dict() for j in jobs}
config["workflows"] = {"version": 2, "run_tests": {"jobs": [j.job_name for j in jobs]}}
with open(os.path.join(folder, "generated_config.yml"), "w") as f:
Expand Down
73 changes: 34 additions & 39 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,58 +17,53 @@ body:
description: |
Your issue will be replied to more quickly if you can figure out the right person to tag with @
If you know how to use git blame, that is the easiest way, otherwise, here is a rough guide of **who to tag**.

All issues are read by one of the core maintainers, so if you don't know who to tag, just leave this blank and
a core maintainer will ping the right person.

Please tag fewer than 3 people.

Models:

- ALBERT, BERT, XLM, DeBERTa, DeBERTa-v2, ELECTRA, MobileBert, SqueezeBert: `@LysandreJik`
- T5, Pegasus, EncoderDecoder: `@patrickvonplaten`
- Blenderbot, MBART, BART, Marian, Pegasus: `@patil-suraj`
- Reformer, TransfoXL, XLNet, FNet: `@patrickvonplaten`
- Longformer, BigBird: `@ydshieh`
- FSMT: `@stas00`
- Funnel: `@sgugger`
- GPT-2, GPT: `@patil-suraj`, `@patrickvonplaten`, `@LysandreJik`
- RAG, DPR: `@patrickvonplaten`, `@lhoestq`
- TensorFlow: `@Rocketknight1`
- JAX/Flax: `@patil-suraj`
- TAPAS, LayoutLM, LayoutLMv2, LUKE, ViT, BEiT, DEiT, DETR, CANINE: `@NielsRogge`
- GPT-Neo, GPT-J, CLIP: `@patil-suraj`
- Wav2Vec2, HuBERT, UniSpeech, UniSpeechSAT, SEW, SEW-D: `@patrickvonplaten`, `@anton-l`
- SpeechEncoderDecoder, Speech2Text, Speech2Text2: `@sanchit-gandhi`, `@patrickvonplaten`, `@anton-l`

If the model isn't in the list, ping `@LysandreJik` who will redirect you to the correct contributor.

- text models: @ArthurZucker and @younesbelkada
- vision models: @amyeroberts and @NielsRogge
- speech models: @sanchit-gandhi

Library:
- Benchmarks: `@patrickvonplaten`
- Deepspeed: `@stas00`
- Ray/raytune: `@richardliaw`, `@amogkam`
- Text generation: `@patrickvonplaten`, `@Narsil`, `@gante`
- Tokenizers: `@SaulLu`
- Trainer: `@sgugger`
- Pipelines: `@Narsil`
- Speech: `@patrickvonplaten`, `@anton-l`, `@sanchit-gandhi`
- Vision: `@NielsRogge`, `@sgugger`

Documentation: `@sgugger`, `@stevhliu`


- flax: @sanchit-gandhi
- generate: @gante
- pipelines: @Narsil
- tensorflow: @gante and @Rocketknight1
- tokenizers: @ArthurZucker
- trainer: @sgugger

Integrations:

- deepspeed: @stas00
- ray/raytune: @richardliaw, @amogkam

Documentation: @sgugger and @stevhliu

Model hub:

- for issues with a model, report at https://discuss.huggingface.co/ and tag the model's creator.

HF projects:


- accelerate: [different repo](https://github.com/huggingface/accelerate)
- datasets: [different repo](https://github.com/huggingface/datasets)
- diffusers: [different repo](https://github.com/huggingface/diffusers)
- rust tokenizers: [different repo](https://github.com/huggingface/tokenizers)

Maintained examples (not research project or legacy):

- Flax: @sanchit-gandhi
- PyTorch: @sgugger
- TensorFlow: @Rocketknight1

Examples:

- maintained examples (not research project or legacy): `@sgugger`, `@patil-suraj`

For research projetcs, please ping the contributor directly. For example, on the following projects:
Research projects are not maintained and should be taken as is.

- research_projects/bert-loses-patience: `@JetRunner`
- research_projects/distillation: `@VictorSanh`
placeholder: "@Username ..."

- type: checkboxes
Expand Down
46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/i18n.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: 🌐 Translating a new language?
about: Start a new translation effort in your language
title: '[i18n-<languageCode>] Translating docs to <languageName>'
labels: WIP
assignees: ''

---

<!--
Note: Please search to see if an issue already exists for the language you are trying to translate.
-->

Hi!

Let's bring the documentation to all the <languageName>-speaking community 🌐 (currently 0 out of 267 complete)

Who would want to translate? Please follow the 🤗 [TRANSLATING guide](https://github.com/huggingface/transformers/blob/main/docs/TRANSLATING.md). Here is a list of the files ready for translation. Let us know in this issue if you'd like to translate any, and we'll add your name to the list.

Some notes:

* Please translate using an informal tone (imagine you are talking with a friend about transformers 🤗).
* Please translate in a gender-neutral way.
* Add your translations to the folder called `<languageCode>` inside the [source folder](https://github.com/huggingface/transformers/tree/main/docs/source).
* Register your translation in `<languageCode>/_toctree.yml`; please follow the order of the [English version](https://github.com/huggingface/transformers/blob/main/docs/source/en/_toctree.yml).
* Once you're finished, open a pull request and tag this issue by including #issue-number in the description, where issue-number is the number of this issue. Please ping @ArthurZucker, @sgugger for review.
* 🙋 If you'd like others to help you with the translation, you can also post in the 🤗 [forums](https://discuss.huggingface.co/).

## Get Started section

- [ ] [index.mdx](https://github.com/huggingface/transformers/blob/main/docs/source/en/index.mdx) https://github.com/huggingface/transformers/pull/20180
- [ ] [quicktour.mdx](https://github.com/huggingface/transformers/blob/main/docs/source/en/quicktour.mdx) (waiting for initial PR to go through)
- [ ] [installation.mdx](https://github.com/huggingface/transformers/blob/main/docs/source/en/installation.mdx).

## Tutorial section
- [ ] [pipeline_tutorial.mdx](https://github.com/huggingface/transformers/blob/main/docs/source/en/pipeline_tutorial.mdx)
- [ ] [autoclass_tutorial.mdx](https://github.com/huggingface/transformers/blob/master/docs/source/autoclass_tutorial.mdx)
- [ ] [preprocessing.mdx](https://github.com/huggingface/transformers/blob/main/docs/source/en/preprocessing.mdx)
- [ ] [training.mdx](https://github.com/huggingface/transformers/blob/main/docs/source/en/training.mdx)
- [ ] [accelerate.mdx](https://github.com/huggingface/transformers/blob/main/docs/source/en/accelerate.mdx)
- [ ] [model_sharing.mdx](https://github.com/huggingface/transformers/blob/main/docs/source/en/model_sharing.mdx)
- [ ] [multilingual.mdx](https://github.com/huggingface/transformers/blob/main/docs/source/en/multilingual.mdx)

<!--
Keep on adding more as you go 🔥
-->
37 changes: 19 additions & 18 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,36 +39,37 @@ members/contributors who may be interested in your PR.

Models:

- albert, bert, xlm: @LysandreJik
- blenderbot, bart, marian, pegasus, encoderdecoder, t5: @patrickvonplaten, @patil-suraj
- longformer, reformer, transfoxl, xlnet: @patrickvonplaten
- fsmt: @stas00
- funnel: @sgugger
- gpt2: @patrickvonplaten, @LysandreJik
- rag: @patrickvonplaten, @lhoestq
- tensorflow: @LysandreJik
- text models: @ArthurZucker and @younesbelkada
- vision models: @amyeroberts and @NielsRogge
- speech models: @sanchit-gandhi

Library:

- benchmarks: @patrickvonplaten
- flax: @sanchit-gandhi
- generate: @gante
- pipelines: @Narsil
- tensorflow: @gante and @Rocketknight1
- tokenizers: @ArthurZucker
- trainer: @sgugger

Integrations:

- deepspeed: @stas00
- ray/raytune: @richardliaw, @amogkam
- text generation: @patrickvonplaten
- tokenizers: @n1t0, @LysandreJik
- trainer: @sgugger
- pipelines: @LysandreJik

Documentation: @sgugger
Documentation: @sgugger and @stevhliu

HF projects:

- accelerate: [different repo](https://github.com/huggingface/accelerate)
- datasets: [different repo](https://github.com/huggingface/datasets)
- diffusers: [different repo](https://github.com/huggingface/diffusers)
- rust tokenizers: [different repo](https://github.com/huggingface/tokenizers)

Examples:
Maintained examples (not research project or legacy):

- maintained examples (not research project or legacy): @sgugger, @patil-suraj
- research_projects/bert-loses-patience: @JetRunner
- research_projects/distillation: @VictorSanh
- Flax: @sanchit-gandhi
- PyTorch: @sgugger
- TensorFlow: @Rocketknight1

-->
4 changes: 2 additions & 2 deletions .github/workflows/add-model-like.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: "Add new model like template tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install dependencies
run: |
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:

- name: Test suite reports artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: run_all_tests_new_models_test_reports
path: reports/tests_new_models
Loading