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.
| Owner | Files | Commits | Bar | Most-changed |
|---|---|---|---|---|
| Oguz Ulgen | 4,458 | 4,467 | .ci/docker/common/install_jax.shtest/inductor/pallas_expected_failures/CpuTests.test_AllenaiLongformerBase_repro_cputest/inductor/pallas_expected_failures/CpuTests.test_fractional_max_pool2d1_cpuand 4,455 more | |
| Guilherme Leobas | 1,064 | 1,142 | test/dynamo_expected_failures/CPython313-test_heapq-TestErrorHandlingC.test_arg_parsingtest/dynamo_expected_failures/CPython313-test_heapq-TestHeapC.test_heapsorttest/dynamo_expected_failures/CPython313-test_heapq-TestHeapC.test_push_popand 1,061 more | |
| Simon Fan | 1,010 | 1,010 | test/compiled_autograd_skips/MiniOpTest.test_aot_dispatch_dynamic__test_mmtest/compiled_autograd_skips/MiniOpTest.test_aot_dispatch_static__test_mmtest/compiled_autograd_skips/PackedSequenceTest.test_pack_padded_sequenceand 1,007 more | |
| Sam Larsen | 365 | 366 | test/inductor_skips/.gitkeeptest/inductor_expected_failures/TestCommonCPU.test_out_linalg_matrix_rank_cpu_float32test/inductor_expected_failures/TestCommonCPU.test_out_linalg_matrix_rank_hermitian_cpu_float32and 362 more | |
| Jason Ansel | 241 | 243 | benchmarks/dynamo/microbenchmarks/dynamo_microbenchmarks.pytest/inductor/cpp/test_cpp_prefix.cpp.ci/pytorch/torch_trace.shand 238 more | |
| Keith | 236 | 236 | test/cpython/v3_13/test_call.difftest/cpython/v3_13/test_call.pytest/cpython/v3_13/test_fractions.diffand 233 more | |
| Rob Timpe | 224 | 224 | test/dynamo_expected_failures/CPython313-test_enum-OldTestFlag.test_boundarytest/dynamo_expected_failures/CPython313-test_enum-OldTestFlag.test_init_subclasstest/dynamo_expected_failures/CPython313-test_enum-OldTestFlag.test_pickleand 221 more | |
| drisspg | 151 | 292 | torch/_inductor/kernel/flex/templates/flash_attention.py.jinjaaten/src/ATen/native/transformers/cuda/mem_eff_attention/gemm_kernel_utils.h.github/workflows/issue-triage-pi.ymland 148 more | |
| Ashkan Aliabadi | 129 | 185 | aten/src/ATen/native/quantized/cpu/qnnpack/bench/sgemm.ccaten/src/ATen/native/quantized/cpu/qnnpack/src/hgemm/8x8-aarch32-neonfp16arith.Saten/src/ATen/native/quantized/cpu/qnnpack/src/hgemm/8x8-neonfp16arith.cand 126 more | |
| ryanzhang22 | 114 | 263 | torch/csrc/profiler/kineto_metadata.cpptorch/csrc/profiler/kineto/libkineto/CMakeLists.txttorch/csrc/profiler/kineto/libkineto/include/libkineto.hand 111 more | |
| 328 other owners | 1,866 | 2,562 |
The 100 most-changed of 9,858 single-owner files
| File | Sole owner | Commits |
|---|---|---|
| torch/_inductor/kernel/flex/templates/flash_attention.py.jinja | drisspg | 15 |
| torch/csrc/FakeTensorMode.cpp | Angel Li | 15 |
| c10/core/FakeTensorMode.h | Angel Li | 12 |
| torch/utils/model_dump/code.js | David Reiss | 10 |
| torch/compiler/_runtime_cache.py | Bob Ren | 9 |
| .github/actions/setup-xpu/action.yml | Wang, Chuanqi | 9 |
| aten/src/ATen/FakeTensorDispatchTables.h | Angel Li | 9 |
| test/test_quantize_tensor.py | Vasiliy Kuznetsov | 9 |
| tools/native_aot/toolchains.py | Simon Layton | 8 |
| tools/native_aot/export.py | Simon Layton | 8 |
| aten/src/ATen/native/metal/mpscnn/MPSCNNClampOp.mm | Tao Xu | 8 |
| torch/_inductor/codegen/metal_flex_attention_template.py | Isalia20 | 7 |
| torch/_inductor/kernel/flex/flex_mps.py | Isalia20 | 7 |
| aten/src/ATen/native/mkldnn/detail/Conv.cpp | Mitchell, Frost | 7 |
| aten/src/ATen/native/mkldnn/detail/Conv.h | Mitchell, Frost | 7 |
| tools/native_aot/gen_aot_lib.py | Simon Layton | 7 |
| .github/scripts/s390x-ci/self-hosted-builder/actions-runner.Dockerfile | Aleksei Nikiforov | 7 |
| c10/core/impl/FakeTensorModeTLS.h | Angel Li | 7 |
| torch/_native/ops/quantize_tensor/blockscaled_tma/blockscaled_tma_impl.py | Vasiliy Kuznetsov | 7 |
| torch/_inductor/kernel/templates/triton_blackwell_ws_persistent_tma_bmm.py.jinja | Janani Sriram | 6 |
| aten/src/ATen/native/transformers/cuda/mem_eff_attention/gemm_kernel_utils.h | drisspg | 6 |
| torch/_native/ops/reductions/kernel_rowtile.py | Simon Layton | 6 |
| torch/csrc/inductor/aoti_runtime/model_pool.h | Bin Bao | 6 |
| c10/core/impl/FakeTensorModeTLS.cpp | Angel Li | 6 |
| torch/_native/ops/quantize_tensor/blockscaled_tma/blockscaled_tma_kernels.py | Vasiliy Kuznetsov | 6 |
| torch/_inductor/runtime/caching/exceptions.py | Nicolas Macchioni | 6 |
| tools/test/docstring_linter_testdata/python_code.py.txt.lintrunner | Tom Ritchford | 6 |
| .ci/pytorch/test_fa3_abi_stable.sh | Jane Xu | 5 |
| aten/src/ATen/native/mps/kernels/Convolution.h | Isalia20 | 5 |
| aten/src/ATen/native/mps/kernels/Sort.metal | Isalia20 | 5 |
| torch/compiler/precompile.py | Bob Ren | 5 |
| aten/src/ATen/native/mps/kernels/UnfoldBackward.metal | Nikita Shulga | 5 |
| aten/src/ATen/native/mps/kernels/TriangularOps.metal | Nikita Shulga | 5 |
| aten/src/ATen/test/mps_test_metal_library.cpp | Nikita Shulga | 5 |
| torch/_functorch/_activation_offloading/offload_ops.py | Michael Lazos | 5 |
| aten/src/ATen/native/mkldnn/detail/Deconv.cpp | Mitchell, Frost | 5 |
| aten/src/ATen/native/mkldnn/detail/Deconv.h | Mitchell, Frost | 5 |
| test/dynamo_expected_failures/CPython313-test_heapq-TestErrorHandlingC.test_arg_parsing | Guilherme Leobas | 5 |
| test/dynamo_expected_failures/CPython313-test_heapq-TestHeapC.test_heapsort | Guilherme Leobas | 5 |
| test/dynamo_expected_failures/CPython313-test_heapq-TestHeapC.test_push_pop | Guilherme Leobas | 5 |
| test/dynamo_expected_failures/CPython313-test_heapq-TestHeapPython.test_heapsort | Guilherme Leobas | 5 |
| test/dynamo_expected_failures/CPython313-test_heapq-TestHeapPython.test_push_pop | Guilherme Leobas | 5 |
| test/dynamo_expected_failures/CPython313-test_ordered_dict-PurePythonOrderedDictSubclassTests.test_sorted_iterators | Guilherme Leobas | 5 |
| test/dynamo_expected_failures/CPython313-test_ordered_dict-PurePythonOrderedDictTests.test_sorted_iterators | Guilherme Leobas | 5 |
| torch/_inductor/heuristics/template/bmm.py | Janani Sriram | 5 |
| torch/csrc/profiler/kineto_metadata.cpp | ryanzhang22 | 5 |
| .github/workflows/issue-triage-pi.yml | drisspg | 5 |
| scripts/issue_triage_pi/apply_plan.py | drisspg | 5 |
| torch/_inductor/kernel/gemm_epilogue_layout.py | drisspg | 5 |
| torch/_vendor/quack/gemm_sm100.py | drisspg | 5 |
| tools/native_aot/decl.py | Simon Layton | 5 |
| torch/_native/ops/reductions/tile.py | Simon Layton | 5 |
| .github/scripts/s390x-ci/self-hosted-builder/fs/usr/bin/actions-runner | Aleksei Nikiforov | 5 |
| tools/test/test_raw_throw_linter.py | albanD | 5 |
| .ci/flash-attention/build.sh | Angel Li | 5 |
| .github/actions/auto-pr-triage/action.yml | soulitzer | 5 |
| aten/src/ATen/native/cuda/CublasGroupedArgs.cu | Grayson Derossi | 5 |
| scripts/hud/analyze_failing_jobs.py | Frederik Gossen | 5 |
| torch/onnx/_flags.py | Justin Chu | 5 |
| aten/src/ATen/native/vulkan/glsl/hardsigmoid.glsl | Stephen Jia | 5 |
| aten/src/ATen/native/vulkan/glsl/hardsigmoid_.glsl | Stephen Jia | 5 |
| aten/src/ATen/native/vulkan/glsl/hardswish.glsl | Stephen Jia | 5 |
| aten/src/ATen/native/vulkan/glsl/hardswish_.glsl | Stephen Jia | 5 |
| aten/src/ATen/native/vulkan/glsl/reflection_pad2d.glsl | Stephen Jia | 5 |
| aten/src/ATen/native/vulkan/glsl/sigmoid.glsl | Stephen Jia | 5 |
| aten/src/ATen/native/vulkan/glsl/sigmoid_.glsl | Stephen Jia | 5 |
| tools/test/docstring_linter_testdata/python_code.py.txt.json | Tom Ritchford | 5 |
| aten/src/ATen/native/quantized/cpu/qnnpack/test/fully-connected-sparse.cc | Kimish Patel | 5 |
| test/cpp_extensions/jit_extension.cpp | Peter Goldsborough | 5 |
| test/cpp_extensions/jit_extension2.cpp | Peter Goldsborough | 5 |
| aten/src/ATen/native/mps/kernels/RenormKernel.metal | Nikita Shulga | 4 |
| torch/_inductor/codegen/nv_universal_gemm/epilogue_capabilities.py | Michael Lazos | 4 |
| torch/mps/streams.py | Kurt Mohler | 4 |
| aten/src/ATen/native/mkldnn/detail/Lstm.cpp | Mitchell, Frost | 4 |
| aten/src/ATen/native/mkldnn/detail/Matmul.cpp | Mitchell, Frost | 4 |
| aten/src/ATen/native/mkldnn/detail/Matmul.h | Mitchell, Frost | 4 |
| test/dynamo_expected_failures/CPython313-test_dict-DictTest.test_splittable_popitem | Guilherme Leobas | 4 |
| test/dynamo_expected_failures/CPython313-test_dict-DictTest.test_splittable_setdefault | Guilherme Leobas | 4 |
| torch/csrc/profiler/kineto/libkineto/src/CuptiPMSamplingApi.cpp | ryanzhang22 | 4 |
| torch/csrc/profiler/kineto/libkineto/src/CuptiPMSamplingController.cpp | ryanzhang22 | 4 |
| torch/csrc/profiler/kineto/libkineto/CMakeLists.txt | ryanzhang22 | 4 |
| torch/csrc/profiler/kineto/libkineto/include/libkineto.h | ryanzhang22 | 4 |
| torch/csrc/profiler/kineto/libkineto/src/AbstractConfig.cpp | ryanzhang22 | 4 |
| torch/csrc/profiler/kineto/libkineto/src/CuptiCallbackApi.cpp | ryanzhang22 | 4 |
| scripts/issue_triage_pi/test_workflow_contract.py | drisspg | 4 |
| torch/_vendor/quack/gemm_sm120.py | drisspg | 4 |
| torch/_vendor/quack/blockscaled/utils.py | drisspg | 4 |
| torch/_vendor/quack/autotuner.py | drisspg | 4 |
| torch/_vendor/quack/cache/jit.py | drisspg | 4 |
| .github/scripts/s390x-ci/self-hosted-builder/actions-runner@.service | Aleksei Nikiforov | 4 |
| scripts/pr_review/test_emit_row.py | Ivan Zaitsev | 4 |
| torch/csrc/FakeTensorMode.h | Angel Li | 4 |
| torch/_higher_order_ops/cutedsl_kernel_wrap.py | Zhuoran Zhao | 4 |
| torch/testing/_internal/torchci/report.py | George Hong | 4 |
| .github/scripts/native_stack.py | jeanschmidt | 4 |
| .github/scripts/test_native_stack.py | jeanschmidt | 4 |
| scripts/auto_pr_triage/validate_ownership.py | soulitzer | 4 |
| benchmarks/inference/runner.sh | Mikayla Gawarecki | 4 |
| aten/src/ATen/native/vulkan/ops/Convert.h | Stephen Jia | 4 |
| tools/test/docstring_linter_testdata/more_python_code.py.txt.before.txt | Tom Ritchford | 4 |
Ownership by author
Primary owner = the author with the most commits to a file. Solely owned = files only that author has touched.
| Author | Files owned | Solely owned | Files touched |
|---|---|---|---|
| Oguz Ulgen | 4,512 | 4,458 | 5,509 |
| Guilherme Leobas | 1,758 | 1,064 | 2,206 |
| Yuanyuan Chen | 1,295 | 8 | 5,285 |
| Simon Fan | 1,197 | 1,010 | 1,428 |
| PyTorch MergeBot | 964 | 0 | 7,283 |
| Xuehai Pan | 416 | 0 | 3,033 |
| Nikita Shulga | 409 | 24 | 3,359 |
| Sam Larsen | 373 | 365 | 546 |
| Rob Timpe | 337 | 224 | 511 |
| Edward Z. Yang | 305 | 18 | 3,089 |
| drisspg | 304 | 151 | 732 |
| Jason Ansel | 291 | 241 | 1,021 |
| Keith | 236 | 236 | 238 |
| ryanzhang22 | 184 | 114 | 228 |
| Ashkan Aliabadi | 165 | 129 | 376 |
| Jane Xu | 156 | 45 | 1,017 |
| Piotr Bielak | 148 | 4 | 375 |
| Stephen Jia | 144 | 20 | 235 |
| Michael Suo | 135 | 2 | 1,563 |
| Jerry Zhang | 135 | 0 | 489 |
| Tristan Rice | 133 | 30 | 520 |
| Richard Zou | 130 | 7 | 862 |
| Peter Bell | 122 | 11 | 1,751 |
| eellison | 111 | 1 | 772 |
| Zachary DeVito | 104 | 1 | 633 |
Most shared files
Files touched by the most people — shared code where changes are most likely to need coordination.
| File | Contributors | Primary owner | Owner share |
|---|---|---|---|
| test/test_nn.py | 446 | PyTorch MergeBot | 3.5% |
| aten/src/ATen/native/native_functions.yaml | 415 | PyTorch MergeBot | 5.8% |
| test/test_torch.py | 375 | Gregory Chanan | 4.1% |
| torch/testing/_internal/common_methods_invocations.py | 366 | kshitij12345 | 8.7% |
| torch/_torch_docs.py | 320 | Vishwak Srinivasan | 4.6% |
| test/inductor/test_torchinductor.py | 302 | PyTorch MergeBot | 11.6% |
| torch/nn/functional.py | 275 | Tongzhou Wang | 3.8% |
| caffe2/CMakeLists.txt | 263 | PyTorch MergeBot | 8.5% |
| CMakeLists.txt | 255 | Nikita Shulga | 7.6% |
| build_variables.bzl | 254 | PyTorch MergeBot | 9.6% |
| test/test_cuda.py | 252 | PyTorch MergeBot | 8.1% |
| torch/testing/_internal/common_utils.py | 249 | PyTorch MergeBot | 7.7% |
| .ci/pytorch/test.sh | 245 | Bin Bao | 8.6% |
| torch/_C/__init__.pyi.in | 240 | PyTorch MergeBot | 14.3% |
| torch/__init__.py | 233 | PyTorch MergeBot | 10.5% |
| test/test_autograd.py | 221 | soulitzer | 11.2% |
| tools/autograd/derivatives.yaml | 214 | PyTorch MergeBot | 6.8% |
| setup.py | 209 | PyTorch MergeBot | 7.6% |
| torch/_inductor/config.py | 208 | PyTorch MergeBot | 13.7% |
| test/run_test.py | 204 | Catherine Lee | 12.4% |
How PyTorch compares with other open source AI and machine learning projects →
How PyTorch ranks among open source AI and machine learning projects by AI-assisted commits →
Generate this report for your own repository with gitstats-action · All Gallery reports
The smallest workflow
Publishes the report to GitHub Pages on every push to main: turn on Pages for the gh-pages branch.
# .github/workflows/gitstats.yml
name: GitStats Report
on:
push:
branches: [main]
permissions:
contents: write
jobs:
gitstats:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: shenxianpeng/gitstats-action@v1
with:
deploy-to-pages: true