Commit 8f6e9c9
feat(transformers): Transformers 4.54 base (#1387)
* upgrade activation_func to transformers v4.54
* feat(transformers): upgrade attn_mask/rope to 4.54
* feat(transformers): upgrade modeling_layers to 4.54
* feat(transformers): upgrade cache_utils to 4.54
* feat(transformers): upgrade modeling_utils to v4.54
* feat(transformers): upgrade generation/utils to v4.54
* feat(transformers): add ernie4.5 for validation
* fix get_type_hints problem
* fix get_type_hints problem
* fix get_type_hints problem
* fix metadata.get keyerror
* fix masking_utils alignment
* fix generation/utils logic
* fix get_output_embedding override bug
* fix __init_subclass__ bug
* suplement checkpoint_conversion_mapping
* feat(transformers): upgrade beam search to v4.54
* feat(transformers): upgrade candidate_generator to v4.54
* feat(transformers): upgrade logits_process/stopping_criteria to v4.54
* pre-commit
* pre-commit
* update backbone_utils
* update generic
* remove add_model_info_to_auto_map & update feature_extraction_utils.py
* remove add_model_info_to_auto_map & update image_processing_base.py
* remove add_model_info_to_auto_map & update processing_utils.py
* remove add_model_info_to_auto_map & update video_utils.py
* tokenization_utils.py update
* add_model_info_to_custom_pipelines
* update tokenization_utils_base.py
* update image_transforms.py
* update video_utils.py and image_utils.py
* update image_utils.py & image_processing_utils_fast.py
* update integration sdpa_attention.py
* update mask_utils.py
* update modeling_flash_attention_utils.py
* update modeling_outputs.py
* fix pre-commit errors
* fix pre-commit errors
* add modeling_layers.py from cui yushi
* fix import in transformers
* rm tokenization_utils.py and tokenization_utils_base.py
* resize stacked images one by one
* remove torchvision decoders
* fix get_default_dtype bug
* load module dynamically from mindone/transformers
* not support FA
* add video_processing_utils
* fix import error/add audio_utils/fix processor bug/attn_implementation check
* fix generic.py error
* fix generic.py error
* audio_utils.py
* audio_utils.py
* fix errors
* update processing_chameleon
* update processing_idefics
* update processing_llava_next
* update processing_llava_next_video
* update processing_llava_next_video
* update processing_llava_next_video
* update processing_llava_next_video
* update processing_qwen_2_5_omni
* update processing_siglip_fast
* rm ernie 45
* sdpa does not support
* sdpa does not support: aria
* fix attn_implementation configuration bug
* Fix attn_implementation
* revert test script changes
* warn user of sdpa usage
* fix fa bug/key_renaming_mapping bug
* pre-commit
* upgrade modeling_utils/save_pretrained to transformersv4.54
* refactor fa part
* Fix some model's UT
* adapt to index_copy
* in case head_dim=None
* in case head_dim=None in rope_utils
* rm num_batches_tracked cast
* revert _support_dynamic_input to _support_jit
* fix class name mismatch in generation/utils
* fix pa error/delete unused fa part
* remove unused part
* generation/utils ops-->mint
* copyright/pre-commit
* fix bugs
* supplement activation api
* reformat
* remove losskwargs
* fix disable_grouping bug in image processing
* fix attn_implementation setting in modeling_utils/from_pretrained
* fix attn_implementation setting in modeling_utils/from_pretrained
* fix modeling_utils/from_config mindspore_dtype setting, generation/utils device setting bug
* feat(transformers): add qwen3_vl/qwen3_vl_moe model
* fix moe precision bug
* fix qwen3_vl moe memory bugs
* supplement zero3 model weight shard for moe part
* fix qwen3_vl_moe precision bug
* fix qwen3_vl_moe precision bug
* fix moe part shard bug
* pre-commit
* reformat
* fix(transformers): fix typos in qwen3_vl docs
* feat(transformers): add processor for qwen3_vl (#1326)
* fix(transformers): supplement condition of taking model as processor
* fix(transformers): reformat generation/utils
* fix(transformers): supplement candidate generator
* fix(transformers): supplement logits processor
* feat(transformers): add assisted_generation/dola_generation/contrasive_search/group_beam_search/constrainted beam search
* reformat
* fix import bug
* fix ut bug
* update pyproject.toml
* pre-commit
* reformat
* update loss_type
---------
Co-authored-by: Didan Deng <[email protected]>
Co-authored-by: vigo999 <[email protected]>1 parent de6c2c4 commit 8f6e9c9
File tree
126 files changed
+18418
-11740
lines changed- examples/transformers/qwen3_vl
- mindone
- models/modules/parallel
- trainers
- transformers
- generation
- models
- aria
- auto
- aya_vision
- blip
- chameleon
- clvp
- cohere2
- cohere
- colpali
- emu3
- falcon_mamba
- fuyu
- gemma3
- gemma
- glm4v
- glm4
- glm
- got_ocr2
- gpt_bigcode
- gpt_neox
- gpt_neo
- granite
- helium
- idefics
- llama
- llava_next_video
- llava_next
- llava_onevision
- llava
- minimax
- mistral3
- mistral
- mixtral
- modernbert
- olmo2
- olmo
- oneformer
- owlv2
- owlvit
- paligemma
- phi3
- qwen2_5_omni
- qwen2_5_vl
- qwen2_audio
- qwen2_vl
- qwen2
- qwen3_moe
- qwen3_vl_moe
- qwen3_vl
- qwen3
- sam
- shieldgemma2
- siglip
- starcoder2
- video_llava
- vipllava
- zamba2
- utils
- tests/transformers_tests/models
- dac
- gemma2
- gpt_bigcode
- minimax
- owlv2
- qwen3_vl_moe
- qwen3_vl
- qwen3
- recurrent_gemma
- rwkv
- switch_transformers
- univnet
- visual_bert
- vjepa2
- xlm_roberta_xl
- zamba2
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
126 files changed
+18418
-11740
lines changed| 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 | + | |
| 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 | + | |
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
| 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 | + | |
0 commit comments