Skip to content

Commit

Permalink
Propagate multimodal_projector_bias change
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocketknight1 committed Dec 23, 2024
1 parent 24d9ee5 commit d5e0a6a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,14 @@ def __init__(
image_grid_pinpoints=None,
tie_word_embeddings=False,
image_seq_length=576,
multimodal_projector_bias=True,
**kwargs,
):
self.ignore_index = ignore_index
self.image_token_index = image_token_index
self.projector_hidden_act = projector_hidden_act
self.image_seq_length = image_seq_length
self.multimodal_projector_bias = multimodal_projector_bias

if vision_feature_select_strategy not in ["default", "full"]:
raise ValueError(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def __init__(
self.image_token_index = image_token_index
self.video_token_index = video_token_index
self.projector_hidden_act = projector_hidden_act
self.multimodal_projector_bias = multimodal_projector_bias

if vision_feature_select_strategy not in ["default", "full"]:
raise ValueError(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def __init__(
self.vision_feature_layer = vision_feature_layer
self.image_seq_length = image_seq_length
self.video_seq_length = video_seq_length
self.multimodal_projector_bias = multimodal_projector_bias

self.vision_config = vision_config

Expand Down

0 comments on commit d5e0a6a

Please sign in to comment.