From 3d642314140f16ce02dc75f91d6955f41e1bb235 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Fri, 26 Apr 2024 12:12:53 +0900 Subject: [PATCH] Update minigpt_base.py begining -> beginning --- vlms/minigpt4/models/minigpt_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlms/minigpt4/models/minigpt_base.py b/vlms/minigpt4/models/minigpt_base.py index 0a848ca..a6cb637 100644 --- a/vlms/minigpt4/models/minigpt_base.py +++ b/vlms/minigpt4/models/minigpt_base.py @@ -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)