Skip to content

Commit 09bf20a

Browse files
committed
fix transformers import
1 parent cdf6f23 commit 09bf20a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ovqa/models/lavis/blip2_models/Qformer.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@
2020
CausalLMOutputWithCrossAttentions,
2121
MaskedLMOutput,
2222
)
23+
from transformers import apply_chunking_to_forward
24+
from transformers.pytorch_utils import find_pruneable_heads_and_indices, prune_linear_layer
2325
from transformers.modeling_utils import (
2426
PreTrainedModel,
25-
apply_chunking_to_forward,
26-
find_pruneable_heads_and_indices,
27-
prune_linear_layer,
2827
)
2928
from transformers.models.bert.configuration_bert import BertConfig
3029
from transformers.utils import logging

0 commit comments

Comments
 (0)