mirror of https://github.com/hpcaitech/ColossalAI
fix
parent
193030f696
commit
6aface9316
|
@ -391,7 +391,12 @@ class LlamaForSequenceClassificationPolicy(LlamaPolicy):
|
||||||
LlamaForSequenceClassification: ModulePolicyDescription(
|
LlamaForSequenceClassification: ModulePolicyDescription(
|
||||||
sub_module_replacement=[
|
sub_module_replacement=[
|
||||||
SubModuleReplacementDescription(
|
SubModuleReplacementDescription(
|
||||||
suffix="score", target_module=Linear1D_Col, kwargs=dict(gather_output=True)
|
suffix="score",
|
||||||
|
target_module=Linear1D_Col,
|
||||||
|
kwargs=dict(
|
||||||
|
gather_output=True,
|
||||||
|
fp8_communication=self.shard_config.fp8_communication,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue