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
21,541
of code in the current tree
Bus Factor
8
8 authors are primary owner of 10,924 of 21,541 files
Single-Owner Files
9,858
45.8% of tracked files
Contributors
5,076
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. Oguz Ulgen is the only one to have changed 4,458 of the 9,858.

The 100 most-changed of 9,858 single-owner files
FileSole ownerCommits
torch/_inductor/kernel/flex/templates/flash_attention.py.jinjadrisspg15
torch/csrc/FakeTensorMode.cppAngel Li15
c10/core/FakeTensorMode.hAngel Li12
torch/utils/model_dump/code.jsDavid Reiss10
torch/compiler/_runtime_cache.pyBob Ren9
.github/actions/setup-xpu/action.ymlWang, Chuanqi9
aten/src/ATen/FakeTensorDispatchTables.hAngel Li9
test/test_quantize_tensor.pyVasiliy Kuznetsov9
tools/native_aot/toolchains.pySimon Layton8
tools/native_aot/export.pySimon Layton8
aten/src/ATen/native/metal/mpscnn/MPSCNNClampOp.mmTao Xu8
torch/_inductor/codegen/metal_flex_attention_template.pyIsalia207
torch/_inductor/kernel/flex/flex_mps.pyIsalia207
aten/src/ATen/native/mkldnn/detail/Conv.cppMitchell, Frost7
aten/src/ATen/native/mkldnn/detail/Conv.hMitchell, Frost7
tools/native_aot/gen_aot_lib.pySimon Layton7
.github/scripts/s390x-ci/self-hosted-builder/actions-runner.DockerfileAleksei Nikiforov7
c10/core/impl/FakeTensorModeTLS.hAngel Li7
torch/_native/ops/quantize_tensor/blockscaled_tma/blockscaled_tma_impl.pyVasiliy Kuznetsov7
torch/_inductor/kernel/templates/triton_blackwell_ws_persistent_tma_bmm.py.jinjaJanani Sriram6
aten/src/ATen/native/transformers/cuda/mem_eff_attention/gemm_kernel_utils.hdrisspg6
torch/_native/ops/reductions/kernel_rowtile.pySimon Layton6
torch/csrc/inductor/aoti_runtime/model_pool.hBin Bao6
c10/core/impl/FakeTensorModeTLS.cppAngel Li6
torch/_native/ops/quantize_tensor/blockscaled_tma/blockscaled_tma_kernels.pyVasiliy Kuznetsov6
torch/_inductor/runtime/caching/exceptions.pyNicolas Macchioni6
tools/test/docstring_linter_testdata/python_code.py.txt.lintrunnerTom Ritchford6
.ci/pytorch/test_fa3_abi_stable.shJane Xu5
aten/src/ATen/native/mps/kernels/Convolution.hIsalia205
aten/src/ATen/native/mps/kernels/Sort.metalIsalia205
torch/compiler/precompile.pyBob Ren5
aten/src/ATen/native/mps/kernels/UnfoldBackward.metalNikita Shulga5
aten/src/ATen/native/mps/kernels/TriangularOps.metalNikita Shulga5
aten/src/ATen/test/mps_test_metal_library.cppNikita Shulga5
torch/_functorch/_activation_offloading/offload_ops.pyMichael Lazos5
aten/src/ATen/native/mkldnn/detail/Deconv.cppMitchell, Frost5
aten/src/ATen/native/mkldnn/detail/Deconv.hMitchell, Frost5
test/dynamo_expected_failures/CPython313-test_heapq-TestErrorHandlingC.test_arg_parsingGuilherme Leobas5
test/dynamo_expected_failures/CPython313-test_heapq-TestHeapC.test_heapsortGuilherme Leobas5
test/dynamo_expected_failures/CPython313-test_heapq-TestHeapC.test_push_popGuilherme Leobas5
test/dynamo_expected_failures/CPython313-test_heapq-TestHeapPython.test_heapsortGuilherme Leobas5
test/dynamo_expected_failures/CPython313-test_heapq-TestHeapPython.test_push_popGuilherme Leobas5
test/dynamo_expected_failures/CPython313-test_ordered_dict-PurePythonOrderedDictSubclassTests.test_sorted_iteratorsGuilherme Leobas5
test/dynamo_expected_failures/CPython313-test_ordered_dict-PurePythonOrderedDictTests.test_sorted_iteratorsGuilherme Leobas5
torch/_inductor/heuristics/template/bmm.pyJanani Sriram5
torch/csrc/profiler/kineto_metadata.cppryanzhang225
.github/workflows/issue-triage-pi.ymldrisspg5
scripts/issue_triage_pi/apply_plan.pydrisspg5
torch/_inductor/kernel/gemm_epilogue_layout.pydrisspg5
torch/_vendor/quack/gemm_sm100.pydrisspg5
tools/native_aot/decl.pySimon Layton5
torch/_native/ops/reductions/tile.pySimon Layton5
.github/scripts/s390x-ci/self-hosted-builder/fs/usr/bin/actions-runnerAleksei Nikiforov5
tools/test/test_raw_throw_linter.pyalbanD5
.ci/flash-attention/build.shAngel Li5
.github/actions/auto-pr-triage/action.ymlsoulitzer5
aten/src/ATen/native/cuda/CublasGroupedArgs.cuGrayson Derossi5
scripts/hud/analyze_failing_jobs.pyFrederik Gossen5
torch/onnx/_flags.pyJustin Chu5
aten/src/ATen/native/vulkan/glsl/hardsigmoid.glslStephen Jia5
aten/src/ATen/native/vulkan/glsl/hardsigmoid_.glslStephen Jia5
aten/src/ATen/native/vulkan/glsl/hardswish.glslStephen Jia5
aten/src/ATen/native/vulkan/glsl/hardswish_.glslStephen Jia5
aten/src/ATen/native/vulkan/glsl/reflection_pad2d.glslStephen Jia5
aten/src/ATen/native/vulkan/glsl/sigmoid.glslStephen Jia5
aten/src/ATen/native/vulkan/glsl/sigmoid_.glslStephen Jia5
tools/test/docstring_linter_testdata/python_code.py.txt.jsonTom Ritchford5
aten/src/ATen/native/quantized/cpu/qnnpack/test/fully-connected-sparse.ccKimish Patel5
test/cpp_extensions/jit_extension.cppPeter Goldsborough5
test/cpp_extensions/jit_extension2.cppPeter Goldsborough5
aten/src/ATen/native/mps/kernels/RenormKernel.metalNikita Shulga4
torch/_inductor/codegen/nv_universal_gemm/epilogue_capabilities.pyMichael Lazos4
torch/mps/streams.pyKurt Mohler4
aten/src/ATen/native/mkldnn/detail/Lstm.cppMitchell, Frost4
aten/src/ATen/native/mkldnn/detail/Matmul.cppMitchell, Frost4
aten/src/ATen/native/mkldnn/detail/Matmul.hMitchell, Frost4
test/dynamo_expected_failures/CPython313-test_dict-DictTest.test_splittable_popitemGuilherme Leobas4
test/dynamo_expected_failures/CPython313-test_dict-DictTest.test_splittable_setdefaultGuilherme Leobas4
torch/csrc/profiler/kineto/libkineto/src/CuptiPMSamplingApi.cppryanzhang224
torch/csrc/profiler/kineto/libkineto/src/CuptiPMSamplingController.cppryanzhang224
torch/csrc/profiler/kineto/libkineto/CMakeLists.txtryanzhang224
torch/csrc/profiler/kineto/libkineto/include/libkineto.hryanzhang224
torch/csrc/profiler/kineto/libkineto/src/AbstractConfig.cppryanzhang224
torch/csrc/profiler/kineto/libkineto/src/CuptiCallbackApi.cppryanzhang224
scripts/issue_triage_pi/test_workflow_contract.pydrisspg4
torch/_vendor/quack/gemm_sm120.pydrisspg4
torch/_vendor/quack/blockscaled/utils.pydrisspg4
torch/_vendor/quack/autotuner.pydrisspg4
torch/_vendor/quack/cache/jit.pydrisspg4
.github/scripts/s390x-ci/self-hosted-builder/actions-runner@.serviceAleksei Nikiforov4
scripts/pr_review/test_emit_row.pyIvan Zaitsev4
torch/csrc/FakeTensorMode.hAngel Li4
torch/_higher_order_ops/cutedsl_kernel_wrap.pyZhuoran Zhao4
torch/testing/_internal/torchci/report.pyGeorge Hong4
.github/scripts/native_stack.pyjeanschmidt4
.github/scripts/test_native_stack.pyjeanschmidt4
scripts/auto_pr_triage/validate_ownership.pysoulitzer4
benchmarks/inference/runner.shMikayla Gawarecki4
aten/src/ATen/native/vulkan/ops/Convert.hStephen Jia4
tools/test/docstring_linter_testdata/more_python_code.py.txt.before.txtTom Ritchford4

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
Oguz Ulgen4,5124,4585,509
Guilherme Leobas1,7581,0642,206
Yuanyuan Chen1,29585,285
Simon Fan1,1971,0101,428
PyTorch MergeBot96407,283
Xuehai Pan41603,033
Nikita Shulga409243,359
Sam Larsen373365546
Rob Timpe337224511
Edward Z. Yang305183,089
drisspg304151732
Jason Ansel2912411,021
Keith236236238
ryanzhang22184114228
Ashkan Aliabadi165129376
Jane Xu156451,017
Piotr Bielak1484375
Stephen Jia14420235
Michael Suo13521,563
Jerry Zhang1350489
Tristan Rice13330520
Richard Zou1307862
Peter Bell122111,751
eellison1111772
Zachary DeVito1041633

Showing top 25 of 5076 contributors.

Most shared files

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

FileContributorsPrimary ownerOwner share
test/test_nn.py446PyTorch MergeBot3.5%
aten/src/ATen/native/native_functions.yaml415PyTorch MergeBot5.8%
test/test_torch.py375Gregory Chanan4.1%
torch/testing/_internal/common_methods_invocations.py366kshitij123458.7%
torch/_torch_docs.py320Vishwak Srinivasan4.6%
test/inductor/test_torchinductor.py302PyTorch MergeBot11.6%
torch/nn/functional.py275Tongzhou Wang3.8%
caffe2/CMakeLists.txt263PyTorch MergeBot8.5%
CMakeLists.txt255Nikita Shulga7.6%
build_variables.bzl254PyTorch MergeBot9.6%
test/test_cuda.py252PyTorch MergeBot8.1%
torch/testing/_internal/common_utils.py249PyTorch MergeBot7.7%
.ci/pytorch/test.sh245Bin Bao8.6%
torch/_C/__init__.pyi.in240PyTorch MergeBot14.3%
torch/__init__.py233PyTorch MergeBot10.5%
test/test_autograd.py221soulitzer11.2%
tools/autograd/derivatives.yaml214PyTorch MergeBot6.8%
setup.py209PyTorch MergeBot7.6%
torch/_inductor/config.py208PyTorch MergeBot13.7%
test/run_test.py204Catherine Lee12.4%