We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0db7d0 commit 4dec162Copy full SHA for 4dec162
1 file changed
sub-packages/bionemo-llm/src/bionemo/llm/utils/callbacks.py
@@ -89,7 +89,7 @@ def data_parallel_rank(self) -> int:
89
@property
90
def should_write_predictions(self) -> bool:
91
"""Returns the context parallel rank."""
92
- return (
+ return self.save_all_model_parallel_ranks or (
93
parallel_state.is_pipeline_last_stage()
94
and parallel_state.get_tensor_model_parallel_rank() == 0
95
and parallel_state.get_context_parallel_rank() == 0
0 commit comments