Skip to content

Commit 6fe127a

Browse files
Add missing args to blip2 config
1 parent a77741c commit 6fe127a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/transformers/models/blip_2/configuration_blip_2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ class Blip2QFormerConfig(PretrainedConfig):
144144
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
145145
layer_norm_eps (`float`, *optional*, defaults to 1e-12):
146146
The epsilon used by the layer normalization layers.
147+
pad_token_id (`int`, *optional*, defaults to 0):
148+
Index to be used for padding token.
147149
position_embedding_type (`str`, *optional*, defaults to `"absolute"`):
148150
Type of position embedding. Choose one of `"absolute"`, `"relative_key"`, `"relative_key_query"`. For
149151
positional embeddings use `"absolute"`. For more information on `"relative_key"`, please refer to

0 commit comments

Comments
 (0)