mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-22 21:49:08 +00:00
fix falcon
This commit is contained in:
parent
bafc80c3b0
commit
4a077e5dc3
@ -246,6 +246,7 @@ class FalconPolicy(Policy):
|
||||
module = self.model.transformer
|
||||
stage_manager = self.pipeline_stage_manager
|
||||
held_layers = []
|
||||
held_layers.append(module.rotary_emb)
|
||||
if stage_manager.is_interleave:
|
||||
assert stage_manager.num_model_chunks is not None
|
||||
layers_per_stage = stage_manager.distribute_layers(len(module.h))
|
||||
|
Loading…
Reference in New Issue
Block a user