FIX [bnb / tests]: Fix currently failing bnb tests (#29092)

Update test_mixed_int8.py
This commit is contained in:
Younes Belkada
2024-02-19 10:39:12 +01:00
committed by GitHub
parent 864c8e6ea3
commit a75a6c9315

View File

@@ -42,7 +42,7 @@ from transformers.testing_utils import (
def get_some_linear_layer(model):
if model.config.model_type == "openai-community/gpt2":
if model.config.model_type == "gpt2":
return model.transformer.h[0].mlp.c_fc
return model.transformer.h[0].mlp.dense_4h_to_h