@@ -133,15 +133,11 @@ def default_xla_options(
133133 # Many of the v7x flags are similar to v6e
134134 xla_tpu_dvfs_p_state = 7 ,
135135 xla_tpu_scoped_vmem_limit_kib = 65536 ,
136- xla_tpu_enable_sparse_core_reduce_scatter_v2 = "true" ,
137- xla_tpu_enable_sparse_core_collective_offload_all_gather = "true" ,
138- xla_tpu_enable_sparse_core_collective_offload_2d_all_gather = "true" ,
139136 xla_tpu_enable_all_gather_offload_tracing = "true" ,
140137 xla_tpu_enable_async_collective_fusion_fuse_all_gather = "false" ,
141138 xla_enable_async_all_gather = "true" ,
142139 xla_tpu_prefer_async_allgather_to_allreduce = "true" ,
143- xla_tpu_enable_sparse_core_collective_offload_all_reduce = "true" ,
144- xla_tpu_enable_sparse_core_collective_offload_reduce_scatter = "true" ,
140+ xla_tpu_impure_enable_packed_bf16_math_ops = "true" ,
145141 )
146142
147143 # Ensure pipelining is properly configured
@@ -153,11 +149,15 @@ def default_xla_options(
153149
154150 # v7x flags from MaxText, inclusing SparseCore configs
155151 options .update (
156- xla_tpu_use_single_sparse_core_for_all_gather_offload = "true" ,
152+ xla_tpu_enable_sparse_core_collective_offload_all_reduce = "true" ,
153+ xla_tpu_enable_sparse_core_collective_offload_reduce_scatter = "true" ,
154+ xla_tpu_enable_sparse_core_collective_offload_all_gather = "true" ,
155+ xla_tpu_enable_sparse_core_collective_offload_2d_all_gather = "true" ,
156+ xla_tpu_enable_sparse_core_reduce_scatter_v2 = "true" ,
157157 xla_tpu_enable_sparse_core_collective_offload_3d_all_gather = "true" ,
158+ xla_tpu_use_single_sparse_core_for_all_gather_offload = "true" ,
158159 xla_sc_disable_megacore_partitioning = "true" ,
159160 xla_tpu_use_tc_device_shape_on_sc = "true" ,
160- xla_tpu_impure_enable_packed_bf16_math_ops = "true" ,
161161 )
162162 if num_slices > 1 :
163163 # Support multiple TPU slices connected over a data center network.
0 commit comments