There was an error while loading. Please reload this page.
1 parent cdf6f23 commit 09bf20aCopy full SHA for 09bf20a
1 file changed
ovqa/models/lavis/blip2_models/Qformer.py
@@ -20,11 +20,10 @@
20
CausalLMOutputWithCrossAttentions,
21
MaskedLMOutput,
22
)
23
+from transformers import apply_chunking_to_forward
24
+from transformers.pytorch_utils import find_pruneable_heads_and_indices, prune_linear_layer
25
from transformers.modeling_utils import (
26
PreTrainedModel,
- apply_chunking_to_forward,
- find_pruneable_heads_and_indices,
27
- prune_linear_layer,
28
29
from transformers.models.bert.configuration_bert import BertConfig
30
from transformers.utils import logging
0 commit comments