Skip to content

Commit a712220

Browse files
committed
Adding debug vmodule flags
1 parent 5b92fbc commit a712220

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

axlearn/cloud/gcp/pathways_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ def _build_pathways_head_container(self) -> dict:
251251
# In Jax 0.6.2 and beyond this flag can be renamed to
252252
# IFRT_PROXY_USE_INSECURE_GRPC_CREDENTIALS as well.
253253
self._update_env_list(env_list, "TEST_UNDECLARED_OUTPUTS_DIR", "true")
254+
self._update_env_list(env_list, "TF_CPP_MIN_LOG_LEVEL", "0")
255+
self._update_env_list(env_list, "TF_CPP_VMODULE", "grpc_host_buffer=3,rpc_helper=3,host_buffer=3,ifrt_backend=3,grpc_service_impl=3")
254256

255257
env_list.append(
256258
{
@@ -322,6 +324,7 @@ def _build_pathways_head_sidecar_containers(self) -> list[Nested[Any]]:
322324
f"--gcs_scratch_location={staging_location}",
323325
# This should be made configurable
324326
f"--num_elastic_slices={cfg.accelerator.num_replicas}",
327+
"--vmodule=grpc_host_buffer=3,rpc_helper=3,host_buffer=3,ifrt_backend=3,grpc_service_impl=3",
325328
]
326329
cmd_args.extend(xla_flags_from_options(self._xla_options).split())
327330

0 commit comments

Comments
 (0)