File tree
2,751 files changed
+211499
-80050
lines changed- .circleci
- .github/workflows
- benchmark
- benches
- config
- utils
- docker
- transformers-all-latest-gpu
- transformers-pytorch-amd-gpu
- transformers-pytorch-deepspeed-latest-gpu
- transformers-pytorch-deepspeed-nightly-gpu
- transformers-pytorch-gpu
- transformers-quantization-latest-gpu
- docs
- source
- ar
- de
- en
- internal
- main_classes
- model_doc
- quantization
- tasks
- es
- tasks
- fr
- hi
- it
- ja
- main_classes
- model_doc
- tasks
- ko
- internal
- main_classes
- model_doc
- quantization
- tasks
- ms
- pt
- zh
- main_classes
- model_doc
- examples
- flax
- image-captioning
- language-modeling
- question-answering
- speech-recognition
- summarization
- text-classification
- token-classification
- vision
- legacy
- pytorch-lightning
- seq2seq
- metrics-monitoring
- modular-transformers
- pytorch
- audio-classification
- contrastive-image-text
- image-classification
- image-pretraining
- instance-segmentation
- language-modeling
- multiple-choice
- object-detection
- question-answering
- semantic-segmentation
- speech-pretraining
- speech-recognition
- summarization
- text-classification
- text-generation
- token-classification
- translation
- quantization
- tensorflow
- contrastive-image-text
- image-classification
- language-modeling-tpu
- language-modeling
- multiple-choice
- question-answering
- summarization
- text-classification
- token-classification
- translation
- i18n
- notebooks
- scripts
- src/transformers
- commands
- data
- distributed
- generation
- continuous_batching
- integrations
- loss
- models
- aimv2
- albert
- align
- altclip
- arcee
- aria
- audio_spectrogram_transformer
- autoformer
- auto
- aya_vision
- bamba
- bark
- bart
- beit
- bert_generation
- bert_japanese
- bert
- big_bird
- bigbird_pegasus
- biogpt
- bitnet
- bit
- blenderbot_small
- blenderbot
- blip_2
- blip
- bloom
- bridgetower
- bros
- camembert
- canine
- chameleon
- chinese_clip
- clap
- clipseg
- clip
- clvp
- codegen
- cohere2_vision
- cohere2
- cohere
- colpali
- colqwen2
- conditional_detr
- convbert
- convnextv2
- convnext
- cpmant
- csm
- ctrl
- cvt
- d_fine
- dab_detr
- dac
- data2vec
- dbrx
- deberta_v2
- deberta
- decision_transformer
- deepseek_v2
- deepseek_v3
- deepseek_vl_hybrid
- deepseek_vl
- deformable_detr
- deit
- deprecated
- deta
- efficientformer
- ernie_m
- gptsan_japanese
- graphormer
- jukebox
- mctct
- mega
- nat
- nezha
- open_llama
- qdqbert
- realm
- retribert
- speech_to_text_2
- tapex
- trajectory_transformer
- transfo_xl
- tvlt
- van
- vit_hybrid
- xlm_prophetnet
- depth_anything
- depth_pro
- detr
- dia
- diffllama
- dinat
- dinov2_with_registers
- dinov2
- dinov3_convnext
- dinov3_vit
- distilbert
- dit
- doge
- donut
- dots1
- dpr
- dpt
- efficientloftr
- efficientnet
- electra
- emu3
- encodec
- encoder_decoder
- eomt
- ernie4_5_moe
- ernie4_5
- ernie
- esm
- openfold_utils
- evolla
- exaone4
- falcon_h1
- falcon_mamba
- falcon
- fastspeech2_conformer
- flaubert
- flava
- florence2
- fnet
- focalnet
- fsmt
- funnel
- fuyu
- gemma2
- gemma3n
- gemma3
- gemma
- git
- glm4_moe
- glm4v_moe
- glm4v
- glm4
- glm
- glpn
- got_ocr2
- gpt2
- gpt_bigcode
- gpt_neox_japanese
- gpt_neox
- gpt_neo
- gpt_oss
- gpt_sw3
- gptj
- granite_speech
- granitemoehybrid
- granitemoe
- granite
- grounding_dino
- groupvit
- helium
- herbert
- hgnet_v2
- hiera
- hubert
- hunyuan_v1_dense
- hunyuan_v1_moe
- ibert
- idefics2
- idefics3
- idefics
- ijepa
- imagegpt
- informer
- instructblipvideo
- instructblip
- internvl
- jamba
- janus
- jetmoe
- kosmos2_5
- kosmos2
- kyutai_speech_to_text
- layoutlmv2
- layoutlmv3
- layoutlm
- layoutxlm
- led
- levit
- lfm2
- lightglue
- lilt
- llama4
- llama
- llava_next_video
- llava_next
- llava_onevision
- llava
- longformer
- longt5
- luke
- lxmert
- m2m_100
- mamba2
- mamba
- marian
- markuplm
- mask2former
- maskformer
- mbart
- megatron_bert
- megatron_gpt2
- metaclip_2
- mgp_str
- mimi
- minicpm_o_2_6
- minimax
- mistral3
- mistral
- mixtral
- mlcd
- mllama
- mluke
- mm_grounding_dino
- mobilebert
- mobilenet_v1
- mobilenet_v2
- mobilevitv2
- mobilevit
- modernbert_decoder
- modernbert
- moonshine
- moshi
- mpnet
- mpt
- mra
- mt5
- musicgen_melody
- musicgen
- mvp
- myt5
- nemotron
- nllb_moe
- nougat
- nystromformer
- olmo2
- olmoe
- olmo
- omdet_turbo
- oneformer
- openai
- opt
- ovis2
- owlv2
- owlvit
- paligemma
- patchtsmixer
- patchtst
- pegasus_x
- pegasus
- perceiver
- perception_lm
- persimmon
- phi3
- phi4_multimodal
- phimoe
- phi
- pix2struct
- pixtral
- plbart
- poolformer
- pop2piano
- prompt_depth_anything
- prophetnet
- pvt_v2
- pvt
- qwen2_5_omni
- qwen2_5_vl
- qwen2_audio
- qwen2_moe
- qwen2_vl
- qwen2
- qwen3_moe
- qwen3
- rag
- recurrent_gemma
- reformer
- regnet
- rembert
- resnet
- roberta_prelayernorm
- roberta
- roc_bert
- roformer
- rt_detr_v2
- rt_detr
- rwkv
- sam2_video
- sam2
- sam_hq
- sam
- seamless_m4t_v2
- seamless_m4t
- seed_oss
- segformer
- seggpt
- sew_d
- sew
- shieldgemma2
- siglip2
- siglip
- smollm3
- smolvlm
- speech_encoder_decoder
- speech_to_text
- speecht5
- splinter
- squeezebert
- stablelm
- starcoder2
- superglue
- superpoint
- swiftformer
- swin2sr
- swinv2
- swin
- switch_transformers
- t5gemma
- t5
- table_transformer
- tapas
- textnet
- time_series_transformer
- timesfm
- timesformer
- timm_backbone
- timm_wrapper
- trocr
- tvp
- udop
- umt5
- unispeech_sat
- unispeech
- univnet
- upernet
- video_llava
- videomae
- vilt
- vipllava
- vision_encoder_decoder
- vision_text_dual_encoder
- visual_bert
- vit_mae
- vit_msn
- vitdet
- vitmatte
- vitpose_backbone
- vitpose
- vits
- vit
- vivit
- vjepa2
- voxtral
- wav2vec2_bert
- wav2vec2_conformer
- wav2vec2_with_lm
- wav2vec2
- wavlm
- whisper
- x_clip
- xcodec
- xglm
- xlm_roberta_xl
- xlm_roberta
- xlm
- xlnet
- xlstm
- xmod
- yolos
- yoso
- zamba2
- zamba
- zoedepth
- onnx
- pipelines
- quantizers
- utils
- templates/adding_a_new_example_script/{{cookiecutter.directory_name}}
- tests
- commands
- deepspeed
- extended
- fixtures
- gpt_oss
- xcodec
- generation
- models
- aimv2
- albert
- align
- altclip
- arcee
- aria
- audio_spectrogram_transformer
- auto
- aya_vision
- bamba
- bark
- bart
- beit
- bert
- big_bird
- bigbird_pegasus
- biogpt
- bitnet
- blenderbot_small
- blip_2
- blip
- bloom
- bridgetower
- camembert
- chameleon
- chinese_clip
- clap
- clipseg
- clip
- clvp
- cohere2_vision
- cohere2
- cohere
- colpali
- colqwen2
- conditional_detr
- convbert
- convnext
- cpmant
- csm
- cvt
- d_fine
- dab_detr
- dac
- data2vec
- dbrx
- deepseek_v2
- deepseek_v3
- deepseek_vl_hybrid
- deepseek_vl
- deformable_detr
- deit
- depth_anything
- depth_pro
- detr
- dia
- diffllama
- dinov2
- dinov3_convnext
- dinov3_vit
- distilbert
- doge
- donut
- dots1
- dpt
- efficientloftr
- emu3
- encodec
- encoder_decoder
- eomt
- ernie4_5_moe
- ernie4_5
- ernie
- esm
- evolla
- exaone4
- falcon_h1
- falcon_mamba
- falcon
- fastspeech2_conformer
- flaubert
- flava
- florence2
- focalnet
- fuyu
- gemma2
- gemma3n
- gemma3
- gemma
- git
- glm4_moe
- glm4v_moe
- glm4v
- glm4
- glm
- glpn
- got_ocr2
- gpt2
- gpt_bigcode
- gpt_neox
- gpt_oss
- gptj
- granite_speech
- granitemoe
- granite
- grounding_dino
- groupvit
- helium
- hiera
- hubert
- hunyuan_v1_dense
- hunyuan_v1_moe
- idefics2
- idefics3
- idefics
- ijepa
- imagegpt
- instructblipvideo
- instructblip
- internvl
- jamba
- janus
- kosmos2_5
- kosmos2
- kyutai_speech_to_text
- layoutlmv2
- layoutlmv3
- layoutlm
- layoutxlm
- levit
- lfm2
- lightglue
- llama4
- llama
- llava_next_video
- llava_next
- llava_onevision
- llava
- luke
- m2m_100
- mamba2
- mamba
- marian
- markuplm
- mask2former
- maskformer
- mbart
- metaclip_2
- mgp_str
- mimi
- minimax
- mistral3
- mistral
- mixtral
- mllama
- mm_grounding_dino
- mobilebert
- mobilenet_v1
- mobilenet_v2
- mobilevitv2
- mobilevit
- modernbert_decoder
- modernbert
- moonshine
- moshi
- mpt
- musicgen_melody
- musicgen
- mvp
- nemotron
- nougat
- olmo2
- olmo
- omdet_turbo
- oneformer
- opt
- ovis2
- owlv2
- owlvit
- paligemma2
- paligemma
- pegasus
- perceiver
- perception_lm
- persimmon
- phi3
- phi4_multimodal
- phimoe
- pix2struct
- pixtral
- plbart
- poolformer
- pop2piano
- prompt_depth_anything
- prophetnet
- pvt_v2
- pvt
- qwen2_5_omni
- qwen2_5_vl
- qwen2_audio
- qwen2_moe
- qwen2_vl
- qwen2
- qwen3_moe
- qwen3
- recurrent_gemma
- regnet
- resnet
- roberta
- rt_detr_v2
- rt_detr
- rwkv
- sam2_video
- sam2
- sam_hq
- sam
- seamless_m4t_v2
- seamless_m4t
- seed_oss
- segformer
- seggpt
- sew_d
- sew
- shieldgemma2
- siglip2
- siglip
- smollm3
- smolvlm
- speech_encoder_decoder
- speech_to_text
- speecht5
- splinter
- stablelm
- starcoder2
- superglue
- superpoint
- swiftformer
- swin2sr
- swinv2
- swin
- switch_transformers
- t5gemma
- t5
- tapas
- textnet
- timesformer
- timm_backbone
- timm_wrapper
- trocr
- tvp
- udop
- unispeech_sat
- unispeech
- univnet
- upernet
- video_llava
- videomae
- vilt
- vipllava
- vision_encoder_decoder
- vision_text_dual_encoder
- visual_bert
- vit_mae
- vitmatte
- vitpose_backbone
- vitpose
- vits
- vit
- vivit
- vjepa2
- voxtral
- wav2vec2_bert
- wav2vec2_conformer
- wav2vec2_with_lm
- wav2vec2
- wavlm
- whisper
- x_clip
- xcodec
- xglm
- xlm_roberta
- xlstm
- zamba2
- zamba
- zoedepth
- optimization
- peft_integration
- pipelines
- quantization
- aqlm_integration
- autoawq
- autoround
- bnb
- compressed_tensors_integration
- fp_quant_integration
- ggml
- gptq
- hqq
- mxfp4
- quanto_integration
- quark_integration
- spqr_integration
- torchao_integration
- repo_utils/modular
- sagemaker/scripts/pytorch
- tensor_parallel
- tokenization
- trainer
- utils
- utils
- test_module
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
2,751 files changed
+211499
-80050
lines changedLines changed: 8 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
112 |
| - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
113 | 115 |
| |
114 | 116 |
| |
115 | 117 |
| |
| |||
213 | 215 |
| |
214 | 216 |
| |
215 | 217 |
| |
216 |
| - | |
| 218 | + | |
217 | 219 |
| |
218 | 220 |
| |
219 | 221 |
| |
| |||
250 | 252 |
| |
251 | 253 |
| |
252 | 254 |
| |
253 |
| - | |
| 255 | + | |
254 | 256 |
| |
255 | 257 |
| |
256 | 258 |
| |
| |||
259 | 261 |
| |
260 | 262 |
| |
261 | 263 |
| |
262 |
| - | |
| 264 | + | |
263 | 265 |
| |
264 | 266 |
| |
265 | 267 |
| |
| |||
273 | 275 |
| |
274 | 276 |
| |
275 | 277 |
| |
276 |
| - | |
277 | 278 |
| |
278 | 279 |
| |
279 | 280 |
| |
| |||
303 | 304 |
| |
304 | 305 |
| |
305 | 306 |
| |
306 |
| - | |
| 307 | + | |
307 | 308 |
| |
308 | 309 |
| |
309 | 310 |
| |
| |||
321 | 322 |
| |
322 | 323 |
| |
323 | 324 |
| |
324 |
| - | |
| 325 | + | |
325 | 326 |
| |
326 | 327 |
| |
327 | 328 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 |
| |
25 | 28 |
| |
26 | 29 |
| |
| |||
41 | 44 |
| |
42 | 45 |
| |
43 | 46 |
| |
44 |
| - | |
| 47 | + | |
45 | 48 |
| |
46 | 49 |
| |
47 | 50 |
| |
| |||
87 | 90 |
| |
88 | 91 |
| |
89 | 92 |
| |
90 |
| - | |
| 93 | + | |
91 | 94 |
| |
92 | 95 |
| |
93 | 96 |
| |
|
Lines changed: 49 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + |
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
| 31 | + | |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
| 34 | + | |
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
| 21 | + | |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
|
Lines changed: 157 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + |
Lines changed: 36 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + |
0 commit comments