Fix error when tp > 1 (#2644)
Co-authored-by: zhaoyang-star <zhao.yang16@zte.com.cn>
This commit is contained in:
parent
9090bf02e7
commit
b72af8f1ed
@ -236,7 +236,6 @@ class LLMEngine:
|
|||||||
model_config = copy.deepcopy(self.model_config)
|
model_config = copy.deepcopy(self.model_config)
|
||||||
parallel_config = copy.deepcopy(self.parallel_config)
|
parallel_config = copy.deepcopy(self.parallel_config)
|
||||||
scheduler_config = copy.deepcopy(self.scheduler_config)
|
scheduler_config = copy.deepcopy(self.scheduler_config)
|
||||||
cache_config = copy.deepcopy(self.cache_config)
|
|
||||||
|
|
||||||
for rank, (worker, (node_id,
|
for rank, (worker, (node_id,
|
||||||
_)) in enumerate(zip(self.workers,
|
_)) in enumerate(zip(self.workers,
|
||||||
@ -252,7 +251,7 @@ class LLMEngine:
|
|||||||
rank,
|
rank,
|
||||||
distributed_init_method,
|
distributed_init_method,
|
||||||
lora_config=self.lora_config,
|
lora_config=self.lora_config,
|
||||||
cache_config=cache_config,
|
kv_cache_dtype=self.cache_config.cache_dtype,
|
||||||
))
|
))
|
||||||
|
|
||||||
driver_rank = 0
|
driver_rank = 0
|
||||||
@ -265,7 +264,7 @@ class LLMEngine:
|
|||||||
driver_rank,
|
driver_rank,
|
||||||
distributed_init_method,
|
distributed_init_method,
|
||||||
lora_config=self.lora_config,
|
lora_config=self.lora_config,
|
||||||
cache_config=cache_config,
|
kv_cache_dtype=self.cache_config.cache_dtype,
|
||||||
is_driver_worker=True,
|
is_driver_worker=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user