Returns a boolean value indicating whether the current device is initilized with ParallelMode.TENSOR and its world_size is greater than 1.
(self)
| 244 | return self.is_initialized(ParallelMode.DATA) and self.get_world_size(ParallelMode.DATA) > 1 |
| 245 | |
| 246 | def is_using_tp(self): |
| 247 | """Returns a boolean value indicating whether the current device is initilized with |
| 248 | ParallelMode.TENSOR and its world_size is greater than 1. |
| 249 | """ |
| 250 | return self.is_initialized(ParallelMode.TENSOR) and self.get_world_size(ParallelMode.TENSOR) > 1 |
| 251 | |
| 252 | def is_using_pp(self): |
| 253 | """Returns a boolean value indicating whether the current device is initilized with |
nothing calls this directly
no test coverage detected