mirror of https://github.com/hpcaitech/ColossalAI
[Hotfix] Fix llama fwd replacement bug (#6031)
Co-authored-by: Edenzzzz <wtan45@wisc.edu>pull/6051/head
parent
39e2597426
commit
7cf9df07bc
|
@ -95,6 +95,7 @@ class LlamaPolicy(Policy):
|
|||
policy=policy,
|
||||
target_key=attn_cls,
|
||||
)
|
||||
|
||||
if self.pipeline_stage_manager is None:
|
||||
self.append_or_create_method_replacement(
|
||||
description={
|
||||
|
|
Loading…
Reference in New Issue