Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vlms/minigpt4/models/minigpt_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def forward(self, samples, reduction='mean', concept_signals: torch.Tensor = Non
bos_embeds = self.embed_tokens(bos)
bos_atts = cond_atts[:, :1]

# add bos token at the begining
# add bos token at the beginning
inputs_embeds = torch.cat([bos_embeds, inputs_embeds], dim=1)
attention_mask = torch.cat([bos_atts, attention_mask], dim=1)

Expand Down