message: Some instructions have giant replica group fields, and make it hard to navigate the graph. Truncate the replica group field string to 128 chars.
diff: @@ -1153,8 +1153,17 @@ string HloDotDumper::GetInstructionNodeExtraInfo(const HloInstruction* instr) {
  for (const auto& line : instr->ExtraAttributesToString(
  HloPrintOptions().set_print_subcomputation_mode(
  HloPrintOptions::PrintSubcomputationMode::kOff))) {
  + // Some instructions have giant replica group fields, so truncate the
  + // replica group line length to 128.
  + constexpr int kMaxReplicaGroupLen = 128;
  + if (absl::StartsWith(line, "replica_groups=") &&
  + line.length() > kMaxReplicaGroupLen) {
  + lines.push_back(HtmlLikeStringSanitize(
  + StrCat(line.substr(0, kMaxReplicaGroupLen - 3), "...")));
  + } else {
  lines.push_back(HtmlLikeStringSanitize(line));
  }
  + }
  // Show the shape and layout of the instruction, unless it's an inlined fusion
  // node -- there the shape and layout is present in the output node.
  