# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

job:
  base_name: "chs-hc"
  # guid: "xckd"  # Can specify a GUID if desired. Otherwise, a random GUID will be generated.
  # check_time: "1590303600"  # Will automatically be set if not given
health_check:
  name: "straggler"
  image:
    repo: "us-docker.pkg.dev/gce-ai-infra/health-check/straggler-healthcheck"
    tag: "a3-ultragpu-8g_4.6.2"
    pull_policy: "Always"
  params:
    bm_wait_time: "60"
    max_run_time: "900"
    n_batch: 50
    n_microbatch: 100
    interesting_event_offset: 4
    use_fastrak: false
    debug: ""  # set "INFO" when debugging
    debug_subsys: "INIT,GRAPH,ENV,TUNING"  # set "INIT,GRAPH,ENV,TUNING" when debugging
    bidirectional: "false"
    message_sizes_mb: "16,32"
  test_label:
    name: "aiinfra/straggler-healthcheck-test"
    value: "true"
  cluster:
    gcloud_override: ""
  ncclPlugin:
    image: "us-docker.pkg.dev/gce-ai-infra/gpudirect-gib/nccl-plugin-gib"
    tag: "v1.0.2"
    envs:
      NCCL_TUNER_CONFIG_PATH: "/usr/local/gib/configs/tuner_config.txtpb"
      NCCL_SHIMNET_GUEST_CONFIG_CHECKER_CONFIG_FILE: /usr/local/gib/configs/guest_config.txtpb"
      NCCL_SHIMNET_SHIM_LAYERS: nil
      NCCL_LIB_DIR: "/usr/local/gib/lib64"
      NCCL_CROSS_NIC: "0"
      NCCL_ALGO: "Ring,Tree"
      NCCL_PROTO: "Simple"
      NCCL_NET_GDR_LEVEL: "PIX"
      NCCL_NVLS_ENABLE: "0"
      NCCL_TUNER_PLUGIN: nil
  env:
    INSTANCE_TYPE: "a3-ultragpu-8g"
    GOOD_THROUGHPUT: "70000000000"
    HEALTH_VALIDITY_HOURS: "5"
    DRY_RUN: "true"
    HOSTS_CSV: nil  # Set by Health Runner
    N_NODES: nil  # Set by Health Runner
    GCS_BUCKET_NAME: ""  # Set by Health Runner
    LD_LIBRARY_PATH: /usr/local/gib/lib64:/usr/local/nvidia/lib64/
    STRAGGLER_THRESHOLD_MS: NIL
