mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
* forgot to push the changes for 4bit .. * trigger CI
This commit is contained in:
parent
1c9134f004
commit
ff76e7c212
@ -43,7 +43,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
|
||||
elif model.config.model_type == "opt":
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user