mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
Update openicl_infer.py (#1308)
This commit is contained in:
parent
fb69ba5eb8
commit
ad3931aa32
@ -50,7 +50,7 @@ class OpenICLInferTask(BaseTask):
|
||||
key in str(self.model_cfgs[0].get('type', ''))
|
||||
or key in str(self.model_cfgs[0].get('llm', {}).get('type', ''))
|
||||
for key in backend_keys)
|
||||
if self.num_gpus > 0 and not use_backend:
|
||||
if self.num_gpus > 1 and not use_backend:
|
||||
port = random.randint(12000, 32000)
|
||||
command = (f'torchrun --master_port={port} '
|
||||
f'--nproc_per_node {self.num_procs} '
|
||||
|
Loading…
Reference in New Issue
Block a user