Code Ownership

Ownership is measured by how many commits each author made to each file of code in the current tree, its tests included, and to the same file under the names it had before. Documentation, vendored and generated files are left out. It highlights bus-factor risk (files only one person has ever touched) and where knowledge is concentrated. The bus factor is the smallest number of people who are, between them, primary owner of more than half of the files.

Files Tracked
5,349
of code in the current tree
Bus Factor
5
5 authors are primary owner of 2,872 of 5,349 files
Single-Owner Files
844
15.8% of tracked files
Contributors
2,860
authors who changed files

Bus factor risk — single-owner files

Files only one author has ever changed, grouped by that author: if they left, no one else would have worked on them. The more a file has changed, the more knowledge is at risk. NielsRogge is the only one to have changed 38 of the 844.

The 100 most-changed of 844 single-owner files
FileSole ownerCommits
utils/checkers.pyTarek Ziade15
.github/workflows/self-comment-ci-amd.ymlYih-Dar7
.github/workflows/pr-ci-security-gate.ymlYih-Dar7
tests/repo_utils/test_checkers.pyTarek Ziade6
src/transformers/exporters/__init__.pyIlyas Moutawwakil5
src/transformers/exporters/auto.pyIlyas Moutawwakil5
src/transformers/models/nemotron_asr_streaming/feature_extraction_nemotron_asr_streaming.pyeustlb5
utils/analyze_gh_wf_runs.pyYih-Dar4
utils/post_mlinter_review.pyYih-Dar4
utils/check_mic.pyTarek Ziade4
src/transformers/models/kimi_k25/configuration_kimi_k25.pyRaushan Turganbay4
src/transformers/models/minicpmv4_7/configuration_minicpmv4_7.pyRaushan Turganbay4
src/transformers/utils/dummy_sentencepiece_and_tokenizers_objects.pySylvain Gugger4
src/transformers/generation/continuous_batching/cache_allocators/__init__.pyRémi Ouazan3
utils/analyze_ci_report.pyYih-Dar3
src/transformers/integrations/gguf/kernels.pyMarc Sun3
src/transformers/integrations/gguf/dequant.pyMarc Sun3
tests/repo_utils/test_check_mic.pyTarek Ziade3
tests/utils/test_model_tester_defaults.pyTarek Ziade3
.github/workflows/serge-verify-caller.ymlTarek Ziade3
.github/workflows/nightly-integration-failure-triage-caller.ymlTarek Ziade3
src/transformers/utils/chat_parsing/response_templates.pyMatt3
src/transformers/models/esmc/configuration_esmc.pyMatt3
tests/models/esmc/test_tokenization_esmc.pyMatt3
examples/modular-transformers/convert_examples.shArthur3
tests/exporters/test_save_load.pyIlyas Moutawwakil3
src/transformers/exporters/quantizers/base.pyIlyas Moutawwakil3
src/transformers/exporters/quantizers/quantizer_onnxruntime.pyIlyas Moutawwakil3
src/transformers/exporters/quantizers/utils.pyIlyas Moutawwakil3
src/transformers/models/cohere_asr/feature_extraction_cohere_asr.pyeustlb3
src/transformers/generation/continuous_batching/cache_allocators/cache_allocator.pyRémi Ouazan2
src/transformers/generation/continuous_batching/cache_allocators/full_attention.pyRémi Ouazan2
src/transformers/generation/continuous_batching/cache_allocators/sliding_attention.pyRémi Ouazan2
utils/ci_report_notify.pyYih-Dar2
examples/modular-transformers/modular_duplicated_method.pyCyril Vallez2
src/transformers/models/convbert/convert_convbert_original_tf1_checkpoint_to_pytorch.pyCyril Vallez2
src/transformers/models/minicpm_ocr/processing_minicpm_ocr.pyguarin2
src/transformers/models/sapiens2/__init__.pyguarin2
src/transformers/integrations/gguf/__init__.pyMarc Sun2
src/transformers/integrations/gguf/reader.pyMarc Sun2
src/transformers/integrations/gguf/utils.pyMarc Sun2
tests/conftest_tests/test_cache_fallback.pyTarek Ziade2
utils/aggregate_failure_reports.pyTarek Ziade2
utils/format_extras_slack_message.pyTarek Ziade2
tests/models/minicpmv4_7/test_processing_minicpmv4_7.pyRaushan Turganbay2
src/transformers/models/nougat/configuration_nougat.pyRaushan Turganbay2
.github/workflows/self-scheduled-amd-strix-halo-caller.ymlBADAOUI Abdennacer2
src/transformers/models/pi05/modeling_pi05.pyPablo Montalvo2
src/transformers/models/pi05/modular_pi05.pyPablo Montalvo2
tests/models/xcodec2/test_feature_extraction_xcodec2.pyEric Bezzam2
.github/workflows/docs-check-trigger.ymlSteven Liu2
.github/workflows/docs-check.ymlSteven Liu2
src/transformers/models/dory/configuration_dory.pyShantanu Acharya2
src/transformers/exporters/metadata.pyIlyas Moutawwakil2
src/transformers/exporters/quantizers/quantizer_nncf.pyIlyas Moutawwakil2
src/transformers/exporters/quantizers/quantizer_pt2e.pyIlyas Moutawwakil2
tests/exporters/test_hub.pyIlyas Moutawwakil2
src/transformers/models/nemotron_h_omni/video_processing_nemotron_h_omni.pymeatybobby2
tests/models/nemotron_h_omni/test_processing_nemotron_h_omni.pymeatybobby2
tests/models/nemotron_h_omni/test_video_processing_nemotron_h_omni.pymeatybobby2
src/transformers/models/gradium_phonon_tts/convert_gradium_phonon_tts_to_hf.pyeustlb2
src/transformers/models/gradium_phonon_tts/modular_gradium_phonon_tts.pyeustlb2
tests/models/nemotron3_diarization/test_processing_nemotron3_diarization.pyeustlb2
tests/distributed/test_checkpointing.pyMichael Benayoun2
src/transformers/models/chmv2/convert_chmv2_to_hf.pyYoni Gozlan2
tests/utils/import_structures/failing_export.pyLysandre Debut2
tests/utils/import_structures/import_structure_register_with_duplicates.pyLysandre Debut2
src/transformers/integrations/mistral/__init__.pyJulien Denize2
src/transformers/integrations/mistral/tokenizer.pyJulien Denize2
tests/integrations/mistral/test_tokenizer.pyJulien Denize2
src/transformers/utils/constants.pyNielsRogge2
tests/models/olmo2/__init__.pyShane A2
src/transformers/generation/continuous_batching/cache_allocators/compressed_latents.pyRémi Ouazan1
src/transformers/models/mistral_large4/__init__.pyRémi Ouazan1
src/transformers/models/mistral_large4/convert_mistral_large4_to_hf.pyRémi Ouazan1
tests/models/mistral_large4/__init__.pyRémi Ouazan1
src/transformers/generation/continuous_batching/cache_allocators/cache_pool.pyRémi Ouazan1
tests/models/kimi_linear/__init__.pyRémi Ouazan1
tests/repo_utils/test_split_model_tests.pyRémi Ouazan1
.github/actions/vllm-ci-setup/action.ymlYih-Dar1
.github/actions/vllm-ci-setup/evict_page_cache.pyYih-Dar1
utils/collate_ci_source_deps.pyYih-Dar1
utils/format_ci_report.pyYih-Dar1
tests/utils/test_get_previous_daily_ci.pyYih-Dar1
.circleci/config.yml.bakYih-Dar1
utils/set_cuda_devices_for_ci.pyYih-Dar1
src/transformers/models/kosmos2/convert_kosmos2_original_pytorch_checkpoint_to_pytorch.pyYih-Dar1
tests/models/kosmos2/__init__.pyYih-Dar1
tests/models/yoso/__init__.pyYih-Dar1
src/transformers/models/hy_v4_vl/__init__.pyAnton Vlasjuk1
tests/models/hy_v4_vl/__init__.pyAnton Vlasjuk1
tests/models/hy_v4_vl/test_image_processing_hy_v4_vl.pyAnton Vlasjuk1
tests/models/hy_v4_vl/test_processing_hy_v4_vl.pyAnton Vlasjuk1
tests/models/hy_v4_vl/test_video_processing_hy_v4_vl.pyAnton Vlasjuk1
src/transformers/models/embedding_gemma2/__init__.pyAnton Vlasjuk1
src/transformers/models/embedding_gemma2/convert_embedding_gemma2_weights.pyAnton Vlasjuk1
tests/models/embedding_gemma2/__init__.pyAnton Vlasjuk1
tests/models/embedding_gemma2/test_video_processing_embedding_gemma2.pyAnton Vlasjuk1
tests/models/axk2/__init__.pyAnton Vlasjuk1
tests/models/minicpmv4_6/__init__.pyAnton Vlasjuk1

Ownership by author

Primary owner = the author with the most commits to a file. Solely owned = files only that author has touched.

AuthorFiles ownedSolely ownedFiles touched
Raushan Turganbay935162,359
Cyril Vallez693223,005
Yih-Dar429161,534
guarin414321,400
Sylvain Gugger40151,209
Yoni Gozlan214121,380
Yuanyuan Chen19901,853
Lysandre Debut166131,612
Tarek Ziade151301,250
amyeroberts1342735
eustlb10137360
Arthur85371,988
Marc Sun8225375
NielsRogge6338627
Joao Gante601967
zhang-prog5417108
Ilyas Moutawwakil4921706
Matt46101,648
Anton Vlasjuk37181,277
Harry Mellor3211693
Rémi Ouazan3211394
kaixuanliu320294
Eric Bezzam3117165
thomwolf28083
Nicolas Patry250196

Showing top 25 of 2860 contributors.

Most shared files

Files touched by the most people — shared code where changes are most likely to need coordination.

FileContributorsPrimary ownerOwner share
src/transformers/trainer.py372Sylvain Gugger17.5%
src/transformers/__init__.py333Lysandre Debut9.2%
src/transformers/models/auto/modeling_auto.py310NielsRogge8.4%
src/transformers/modeling_utils.py242Cyril Vallez9.2%
src/transformers/models/auto/configuration_auto.py228NielsRogge10.1%
src/transformers/models/__init__.py223NielsRogge10.9%
src/transformers/training_args.py198Sylvain Gugger16.6%
src/transformers/models/auto/tokenization_auto.py194Sylvain Gugger7.8%
src/transformers/utils/dummy_pt_objects.py182NielsRogge14.1%
src/transformers/utils/import_utils.py159Yuanyuan Chen5.7%
src/transformers/tokenization_utils_base.py147Sylvain Gugger16.7%
utils/check_repo.py135NielsRogge10.6%
src/transformers/testing_utils.py133Stas Bekman7.6%
src/transformers/generation/utils.py131Joao Gante28.7%
tests/test_modeling_common.py129Raushan Turganbay9.8%
tests/trainer/test_trainer.py115Sylvain Gugger19.1%
src/transformers/models/bert/modeling_bert.py114thomwolf22.0%
src/transformers/integrations/integration_utils.py113Sylvain Gugger10.7%
setup.py112Lysandre Debut17.6%
src/transformers/utils/__init__.py110Sylvain Gugger10.8%