{
  "title": "How short are the gaps in GPU work?",
  "source_run": 44510682690,
  "archive": {
    "path": "/benchmarks/downloads/gpu-gap-traces.zip",
    "sha256": "089276edceae59c75b7633a4570801c6cabe8ae70a876279556cc4f3bf5b10cf",
    "bytes": 138805
  },
  "definition": "Only gaps enclosed by recorded device activities in one profiler step. Shares are percentages of the time in those gaps. Other processes can use the GPU during a gap.",
  "captures": [
    {
      "capture": "Vision transformer, 8 of 64 V100 ranks",
      "percent_gap_time_in_gaps_at_least_100_us": 81.5,
      "percent_gap_time_in_gaps_at_least_1_ms": 18.2
    },
    {
      "capture": "Training, 1 of 2 H100 ranks",
      "percent_gap_time_in_gaps_at_least_100_us": 12.8,
      "percent_gap_time_in_gaps_at_least_1_ms": 7.7
    },
    {
      "capture": "Inference, 1 rank, GPU model unavailable",
      "percent_gap_time_in_gaps_at_least_100_us": 28.3,
      "percent_gap_time_in_gaps_at_least_1_ms": 3.2
    }
  ],
  "held_out_replay": {
    "assumed_work_us": 100,
    "assumed_control_us": 40,
    "assumption": "Immediate visibility of queued work in the profiled process at CPU operator entry. No background job was executed.",
    "vision_transformer": {
      "attempts": 1473,
      "fit": 1469,
      "overrun_total_us": 54,
      "hindsight_fits": 5026
    },
    "h100_training": {
      "attempts": 0,
      "fit": 0,
      "hindsight_fits": 22
    }
  },
  "inputs": [
    {
      "name": "rank-0.json.gz",
      "sha256": "d92e3e7c7a73b902f7e5489e0b3ee73288e40769c3a5dc3ea11c8a06d709d491",
      "git_blob": "5e4f08300fb1a51407fb1c7151cb9e7d904b579c",
      "bytes": 4537974,
      "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/vision_transformer/rank-0.json.gz"
    },
    {
      "name": "rank-1.json.gz",
      "sha256": "6fdb400906364f1de827c7927c4ccc044da1443599f83f283f33e5c23cb64839",
      "git_blob": "4a46c84d9674f74f32e838ca2ca55b4e88196134",
      "bytes": 4598978,
      "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/vision_transformer/rank-1.json.gz"
    },
    {
      "name": "rank-2.json.gz",
      "sha256": "c48c76a443a0391996d439cad328cf2a1d5ce3ef5500c16271e1b2a4d1722225",
      "git_blob": "142491cb7a2202eee56bb70fe9f31f23844a8461",
      "bytes": 4630168,
      "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/vision_transformer/rank-2.json.gz"
    },
    {
      "name": "rank-3.json.gz",
      "sha256": "683aace7ed1ef885d4331596b572d16219692699c95d6767e3a4a6e574917e99",
      "git_blob": "c1653f9b5b2dad3ca8b13f4292d67bfc7f4ff24d",
      "bytes": 4637947,
      "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/vision_transformer/rank-3.json.gz"
    },
    {
      "name": "rank-4.json.gz",
      "sha256": "133e02fcf5618b220878ad5df6fab674c30b2e8729fee839f6fe4d49e9944b80",
      "git_blob": "1d661c5ab9e54e6899b4cf5a054d528319cb39f4",
      "bytes": 4566636,
      "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/vision_transformer/rank-4.json.gz"
    },
    {
      "name": "rank-5.json.gz",
      "sha256": "64bd6102cdd313a4d4abf658b1f22bcf971c92e541dcca117302025a172d60cb",
      "git_blob": "f57fb713b7cdad023112762b75c2194486c6b95c",
      "bytes": 4609630,
      "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/vision_transformer/rank-5.json.gz"
    },
    {
      "name": "rank-6.json.gz",
      "sha256": "ef13c9bdff3af3af2f5840c786835defeae9e4ea64f2fadfdacec0cef0f3acca",
      "git_blob": "2fe1c011a38fff15510a4fff3bc4b9b2d522eb7a",
      "bytes": 4615411,
      "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/vision_transformer/rank-6.json.gz"
    },
    {
      "name": "rank-7.json.gz",
      "sha256": "368ce4fb1b228b3995c774586264cce60b7034175bad73d1236ac433b005fb8d",
      "git_blob": "0401a1f49a0333c6c93fd9930348bc4c0a007cfd",
      "bytes": 4572462,
      "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/vision_transformer/rank-7.json.gz"
    },
    {
      "name": "h100_trace.json.gz",
      "bytes": 5925357,
      "sha256": "0ebcd40f97a970ad34728dd6cce26e38533711d44bf8bed3977c94027b8f9ad7",
      "git_blob": "6f54a7e7ea24abb4975065132ba7afa9f745714e",
      "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/h100/h100_trace.json.gz"
    },
    {
      "name": "inference_rank_0.json.gz",
      "bytes": 6316194,
      "sha256": "3ced42b1cf8d7a8a3933bdf3c7e9406f5d0f8eed75a2c43acc73b7a3c4464aac",
      "git_blob": "0f0db8ca5ca37e0e7b63b45844d809fb0275aa25",
      "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/inference_single_rank/inference_rank_0.json.gz"
    }
  ],
  "transfer": {
    "source_run": 44514504751,
    "kit_source_run": 44515325697,
    "archive": {
      "path": "/benchmarks/downloads/gpu-gap-transfer.zip",
      "bytes": 13258,
      "sha256": "1c1924714dc8087eb6d43bf7c0e5660670cdf12412c718b2e7403c5a64817a08"
    },
    "training": "Vision transformer rank 0, step 16. Functions of CPU operator name learned once before replay.",
    "other_ranks": {
      "rank_0": {
        "fits": 896,
        "attempts": 922,
        "overrun_us": 83
      },
      "rank_local": {
        "fits": 1234,
        "attempts": 1238,
        "overrun_us": 54
      }
    },
    "matched_rank_steps": [
      {
        "rank": 1,
        "sha256": "6fdb400906364f1de827c7927c4ccc044da1443599f83f283f33e5c23cb64839",
        "steps": [
          17,
          18
        ],
        "rank_0": {
          "attempts": 188,
          "fits": 188,
          "overrun_us": 0,
          "worst_overrun_us": 0
        },
        "rank_local": {
          "fits": 92,
          "attempts": 92,
          "overrun_us": 0
        },
        "hindsight": 953
      },
      {
        "rank": 2,
        "sha256": "c48c76a443a0391996d439cad328cf2a1d5ce3ef5500c16271e1b2a4d1722225",
        "steps": [
          17,
          18
        ],
        "rank_0": {
          "attempts": 105,
          "fits": 101,
          "overrun_us": 14,
          "worst_overrun_us": 6
        },
        "rank_local": {
          "fits": 52,
          "attempts": 52,
          "overrun_us": 0
        },
        "hindsight": 448
      },
      {
        "rank": 3,
        "sha256": "683aace7ed1ef885d4331596b572d16219692699c95d6767e3a4a6e574917e99",
        "steps": [
          17,
          18
        ],
        "rank_0": {
          "attempts": 104,
          "fits": 94,
          "overrun_us": 28,
          "worst_overrun_us": 8
        },
        "rank_local": {
          "fits": 206,
          "attempts": 206,
          "overrun_us": 0
        },
        "hindsight": 424
      },
      {
        "rank": 4,
        "sha256": "133e02fcf5618b220878ad5df6fab674c30b2e8729fee839f6fe4d49e9944b80",
        "steps": [
          17,
          18
        ],
        "rank_0": {
          "attempts": 173,
          "fits": 172,
          "overrun_us": 4,
          "worst_overrun_us": 4
        },
        "rank_local": {
          "fits": 441,
          "attempts": 442,
          "overrun_us": 4
        },
        "hindsight": 711
      },
      {
        "rank": 5,
        "sha256": "64bd6102cdd313a4d4abf658b1f22bcf971c92e541dcca117302025a172d60cb",
        "steps": [
          17,
          18
        ],
        "rank_0": {
          "attempts": 104,
          "fits": 97,
          "overrun_us": 27,
          "worst_overrun_us": 8
        },
        "rank_local": {
          "fits": 217,
          "attempts": 218,
          "overrun_us": 12
        },
        "hindsight": 471
      },
      {
        "rank": 6,
        "sha256": "ef13c9bdff3af3af2f5840c786835defeae9e4ea64f2fadfdacec0cef0f3acca",
        "steps": [
          17,
          18
        ],
        "rank_0": {
          "attempts": 132,
          "fits": 132,
          "overrun_us": 0,
          "worst_overrun_us": 0
        },
        "rank_local": {
          "fits": 171,
          "attempts": 173,
          "overrun_us": 38
        },
        "hindsight": 555
      },
      {
        "rank": 7,
        "sha256": "368ce4fb1b228b3995c774586264cce60b7034175bad73d1236ac433b005fb8d",
        "steps": [
          17,
          18
        ],
        "rank_0": {
          "attempts": 116,
          "fits": 112,
          "overrun_us": 10,
          "worst_overrun_us": 3
        },
        "rank_local": {
          "fits": 55,
          "attempts": 55,
          "overrun_us": 0
        },
        "hindsight": 479
      }
    ],
    "evaluation": {
      "unseen_vision_transformer_ranks": {
        "captures": 7,
        "scored": 7,
        "unsupported": [],
        "host": {
          "fits": 896,
          "attempts": 922,
          "overrun_us": 83
        },
        "last_device": {
          "fits": 0,
          "attempts": 0,
          "overrun_us": 0
        },
        "hindsight": {
          "fits": 4041,
          "attempts": 4041,
          "overrun_us": 0
        }
      },
      "six_external_fixtures": {
        "captures": 6,
        "scored": 4,
        "unsupported": [
          "rank0.json.gz",
          "test.json.gz"
        ],
        "host": {
          "fits": 1,
          "attempts": 1,
          "overrun_us": 0
        },
        "last_device": {
          "fits": 0,
          "attempts": 0,
          "overrun_us": 0
        },
        "hindsight": {
          "fits": 554,
          "attempts": 554,
          "overrun_us": 0
        }
      }
    },
    "additional_inputs": [
      {
        "name": "df_index_resolver.json.gz",
        "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/df_index_resolver/df_index_resolver.json.gz",
        "sha256": "769af9ab5262468eb7baf6a7bfdb138ef15542264c72c0c313758d951b16dc15",
        "bytes": 2992153,
        "git_blob": "07019a1e8e6d026c4b834477b5691c2505badc1e",
        "path": "tests/data/df_index_resolver/df_index_resolver.json.gz"
      },
      {
        "name": "nccl_data.json.gz",
        "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/nccl_parser_config/nccl_data.json.gz",
        "sha256": "c1cf9c575fdcd7bdc6326ceab834f94b351f81ae55577a7471aa9e328fb8b58e",
        "bytes": 749757,
        "git_blob": "b4b6dcef87858f3ca2b9ca78646c09d4d4565518",
        "path": "tests/data/nccl_parser_config/nccl_data.json.gz"
      },
      {
        "name": "rank0.json.gz",
        "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/negative_queue_length_values_check/rank0.json.gz",
        "sha256": "b8ce7a1a143b55dd1811d269272b09d1c693ffea85b91858f5fb246e7ad8c5f8",
        "bytes": 1384658,
        "git_blob": "d71a78d5110a7da32087ae47ff33eefc9c9a7886",
        "path": "tests/data/negative_queue_length_values_check/rank0.json.gz"
      },
      {
        "name": "rank-0.Apr_03_18_51_38.1102.pt.trace.json.gz",
        "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/ns_resolution_trace/rank-0.Apr_03_18_51_38.1102.pt.trace.json.gz",
        "sha256": "e279d7280e73719e8dd9550e120cfe081fbe268596bd297fe5fcbf63e2b75a09",
        "bytes": 1152519,
        "git_blob": "e8fe4d1b5b476f171cabf97d933c27ab4aadbbe5",
        "path": "tests/data/ns_resolution_trace/rank-0.Apr_03_18_51_38.1102.pt.trace.json.gz"
      },
      {
        "name": "control.json.gz",
        "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/trace_diff/control/control.json.gz",
        "sha256": "43ed872e4c5dc2e8da5946d761ed61923a75c6c799cc62be9e1c859d440a56fd",
        "bytes": 1771264,
        "git_blob": "b1ceb4c08168dccf9cd6edac595d6764cc347b08",
        "path": "tests/data/trace_diff/control/control.json.gz"
      },
      {
        "name": "test.json.gz",
        "url": "https://raw.githubusercontent.com/facebookresearch/HolisticTraceAnalysis/6bdc67c9cabf4ed73b380d50d7c1b04d5991b71a/tests/data/trace_diff/test/test.json.gz",
        "sha256": "5e69e04ed19b2dbf59e632008146c1bd6da417dc3af7ab4885c619b11e34f1bf",
        "bytes": 1568914,
        "git_blob": "949c3c47e47ceadc0e18eb90be043d8f512432d8",
        "path": "tests/data/trace_diff/test/test.json.gz"
      }
    ]
  },
  "bounded_grants": {
    "archive": {
      "path": "/benchmarks/downloads/gpu-gap-bursts.zip",
      "sha256": "ad0c0aa1ff0a88426801eacb0affc8efeae41b64e4bcdd42b0f64f05353ffe88",
      "bytes": 6101
    },
    "source_run": 44517376334,
    "kit_run": 44518220616,
    "protocol_sha256": "073dc39d738e3ceafec322c2972eb4b2e20ea699fd806d06c30e20c27ddacd20",
    "scope": "Fourteen recorded steps across seven V100 ranks in one training job. Whole 100-microsecond hypothetical units finishing before foreground work, including the specified control costs. No additional workload ran.",
    "summary": [
      {
        "cost": "per_unit",
        "cap": 1,
        "measured_gpu_us": 6875357,
        "grants": 1238,
        "granted_units": 1238,
        "units_finished_before_foreground": 1234,
        "fully_fitting_grants": 1234,
        "overruns": 4,
        "total_overrun_us": 54,
        "hindsight_units": 4041,
        "largest_overrun_us": 28,
        "hypothetical_payload_percent_of_step_time": 1.7948158910148229
      },
      {
        "cost": "per_unit",
        "cap": 2,
        "measured_gpu_us": 6875357,
        "grants": 1054,
        "granted_units": 1503,
        "units_finished_before_foreground": 1499,
        "fully_fitting_grants": 1050,
        "overruns": 4,
        "total_overrun_us": 54,
        "hindsight_units": 4631,
        "largest_overrun_us": 28,
        "hypothetical_payload_percent_of_step_time": 2.1802504219053644
      },
      {
        "cost": "per_unit",
        "cap": 4,
        "measured_gpu_us": 6875357,
        "grants": 806,
        "granted_units": 1958,
        "units_finished_before_foreground": 1951,
        "fully_fitting_grants": 799,
        "overruns": 7,
        "total_overrun_us": 68,
        "hindsight_units": 4669,
        "largest_overrun_us": 28,
        "hypothetical_payload_percent_of_step_time": 2.837670829311118
      },
      {
        "cost": "per_unit",
        "cap": 8,
        "measured_gpu_us": 6875357,
        "grants": 806,
        "granted_units": 1958,
        "units_finished_before_foreground": 1951,
        "fully_fitting_grants": 799,
        "overruns": 7,
        "total_overrun_us": 68,
        "hindsight_units": 4698,
        "largest_overrun_us": 28,
        "hypothetical_payload_percent_of_step_time": 2.837670829311118
      },
      {
        "cost": "per_grant",
        "cap": 1,
        "measured_gpu_us": 6875357,
        "grants": 1238,
        "granted_units": 1238,
        "units_finished_before_foreground": 1234,
        "fully_fitting_grants": 1234,
        "overruns": 4,
        "total_overrun_us": 54,
        "hindsight_units": 4041,
        "largest_overrun_us": 28,
        "hypothetical_payload_percent_of_step_time": 1.7948158910148229
      },
      {
        "cost": "per_grant",
        "cap": 2,
        "measured_gpu_us": 6875357,
        "grants": 1069,
        "granted_units": 1518,
        "units_finished_before_foreground": 1514,
        "fully_fitting_grants": 1065,
        "overruns": 4,
        "total_overrun_us": 54,
        "hindsight_units": 5283,
        "largest_overrun_us": 28,
        "hypothetical_payload_percent_of_step_time": 2.202067470823697
      },
      {
        "cost": "per_grant",
        "cap": 4,
        "measured_gpu_us": 6875357,
        "grants": 863,
        "granted_units": 2210,
        "units_finished_before_foreground": 2206,
        "fully_fitting_grants": 859,
        "overruns": 4,
        "total_overrun_us": 54,
        "hindsight_units": 5707,
        "largest_overrun_us": 28,
        "hypothetical_payload_percent_of_step_time": 3.208560660922771
      },
      {
        "cost": "per_grant",
        "cap": 8,
        "measured_gpu_us": 6875357,
        "grants": 805,
        "granted_units": 2406,
        "units_finished_before_foreground": 2402,
        "fully_fitting_grants": 801,
        "overruns": 4,
        "total_overrun_us": 54,
        "hindsight_units": 6000,
        "largest_overrun_us": 28,
        "hypothetical_payload_percent_of_step_time": 3.493636766788983
      }
    ]
  }
}
