Skip to content

Commit 9881c20

Browse files
yao-matrixzaristei
authored andcommitted
fix chameleonvision UT failure (huggingface#39646)
* fix chameleonvision UT failure Signed-off-by: [email protected] <Yao Matrix> * fix style Signed-off-by: Yao, Matrix <[email protected]> --------- Signed-off-by: [email protected] <Yao Matrix> Signed-off-by: Yao, Matrix <[email protected]> Co-authored-by: root <Yao Matrix>
1 parent 1b1101e commit 9881c20

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/transformers/models/chameleon/modeling_chameleon.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,11 @@ class ChameleonPreTrainedModel(PreTrainedModel):
817817
)
818818
class ChameleonVQVAE(ChameleonPreTrainedModel):
819819
config: ChameleonVQVAEConfig
820-
_no_split_modules = ["ChameleonVQVAEVectorQuantizer"]
820+
_no_split_modules = [
821+
"ChameleonVQVAEVectorQuantizer",
822+
"ChameleonVQVAEEncoderAttnBlock",
823+
"ChameleonVQVAEEncoderResnetBlock",
824+
]
821825

822826
def __init__(self, config: ChameleonVQVAEConfig):
823827
super().__init__(config)

0 commit comments

Comments
 (0)