mirror of https://github.com/hpcaitech/ColossalAI
[fix] fix test_lora
parent
0fb500c7d4
commit
2980da559f
|
@ -506,8 +506,9 @@ class LlamaForSequenceClassificationPolicy(LlamaPolicy):
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
policy.update(new_item)
|
policy.update(new_item)
|
||||||
|
# TODO: test lora bug here
|
||||||
# enable tp, replace layer to LinearWithGradAccum
|
# enable tp, replace layer to LinearWithGradAccum
|
||||||
else:
|
elif use_zbv:
|
||||||
# add a new item for sequence classification
|
# add a new item for sequence classification
|
||||||
new_item = {
|
new_item = {
|
||||||
LlamaForSequenceClassification: ModulePolicyDescription(
|
LlamaForSequenceClassification: ModulePolicyDescription(
|
||||||
|
|
Loading…
Reference in New Issue