Skip to content

Commit 8d7de0f

Browse files
author
Orbax Authors
committed
Add PRIORITY_MERGE batching policy.
PiperOrigin-RevId: 840927215
1 parent a710892 commit 8d7de0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

export/orbax/export/obm_configs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ class MixedPriorityBatchingPolicy(enum.Enum):
6161
LOW_PRIORITY_PADDING_WITH_NEXT_ALLOWED_BATCH_SIZE: Pad low priority inputs
6262
up to the next allowed batch size.
6363
PRIORITY_ISOLATION: Keep low and high priority inputs in separate batches.
64+
PRIORITY_MERGE: Merge low priority inputs into the high priority batch.
6465
"""
65-
# TODO: b/417977029 - Add PRIORITY_MERGE.
6666
LOW_PRIORITY_PADDING_WITH_MAX_BATCH_SIZE = "low_priority_padding_with_max_batch_size"
6767
LOW_PRIORITY_PADDING_WITH_NEXT_ALLOWED_BATCH_SIZE = "low_priority_padding_with_next_allowed_batch_size"
6868
PRIORITY_ISOLATION = "priority_isolation"
69+
PRIORITY_MERGE = "priority_merge"
6970

7071

7172

0 commit comments

Comments
 (0)