mirror of
https://github.com/THUDM/CogVideo.git
synced 2025-12-02 18:52:08 +08:00
fix: invalid call to is_context_parallel_initialized
The function is_context_parallel_initialized was not actually being called in the original implementation. This commit corrects the issue by ensuring the function is properly invoked.
This commit is contained in:
parent
5aa6d3a9ee
commit
923f55e213
@ -578,7 +578,7 @@ class VideoAutoencoderInferenceWrapper(VideoAutoencodingEngine):
|
||||
if self.cp_size <= 1:
|
||||
use_cp = False
|
||||
if self.cp_size > 0 and use_cp and not input_cp:
|
||||
if not is_context_parallel_initialized:
|
||||
if not is_context_parallel_initialized():
|
||||
initialize_context_parallel(self.cp_size)
|
||||
|
||||
global_src_rank = get_context_parallel_group_rank() * self.cp_size
|
||||
@ -609,7 +609,7 @@ class VideoAutoencoderInferenceWrapper(VideoAutoencodingEngine):
|
||||
if self.cp_size <= 1:
|
||||
use_cp = False
|
||||
if self.cp_size > 0 and use_cp and not input_cp:
|
||||
if not is_context_parallel_initialized:
|
||||
if not is_context_parallel_initialized():
|
||||
initialize_context_parallel(self.cp_size)
|
||||
|
||||
global_src_rank = get_context_parallel_group_rank() * self.cp_size
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user