Skip to content

Commit

Permalink
removed duplicate method definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardZach committed Dec 5, 2024
1 parent 437a371 commit bd22c2d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def forward(
output_hidden_states=output_hidden_states,
return_dict=return_dict,
interpolate_pos_encoding=interpolate_pos_encoding,
)git
)
image_embeds = vision_outputs[0]

# step 2: forward the query tokens through the QFormer, using the image embeddings for cross-attention
Expand Down
9 changes: 0 additions & 9 deletions src/transformers/utils/import_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,15 +1006,6 @@ def is_compressed_tensors_available():
return _compressed_tensors_available


def is_optimum_quanto_available():
# `importlib.metadata.version` doesn't work with `optimum.quanto`, need to put `optimum_quanto`
return _is_optimum_quanto_available


def is_compressed_tensors_available():
return _compressed_tensors_available


def is_auto_gptq_available():
return _auto_gptq_available

Expand Down

0 comments on commit bd22c2d

Please sign in to comment.