Support torchrun and SPMD-style offline inference (#12071)

Signed-off-by: youkaichao <youkaichao@gmail.com>
This commit is contained in:
youkaichao
2025-01-16 19:58:53 +08:00
committed by GitHub
parent dd7c9ad870
commit bf53e0c70b
14 changed files with 248 additions and 30 deletions
+2 -2
View File
@@ -940,8 +940,8 @@ class LogitsProcessorWithLoRA(BaseLayerWithLoRA):
return self.base_layer.soft_cap
@property
def use_gather(self):
return self.base_layer.use_gather
def use_all_gather(self):
return self.base_layer.use_all_gather
@property
def org_vocab_size(self):