Update modeling_minicpmv.py
Browse files279 unmodified lines280281282283284285279 unmodified linespadded_tensors = [torch.nn.functional.pad(tensor, (0, max_length - tensor.shape[1])) for tensor in batch]# Step 3: Stack the padded tensors into a single batchbatch = torch.cat(padded_tensors, dim=0)# output_ids = self._decode(input_embeds, tokenizer, **kwargs)279 unmodified lines280281282283284285286287279 unmodified linespadded_tensors = [torch.nn.functional.pad(tensor, (0, max_length - tensor.shape[1])) for tensor in batch]# Step 3: Stack the padded tensors into a single batchfor stuff in batch:print(stuff.shape, "SHAPE")batch = torch.cat(padded_tensors, dim=0)# output_ids = self._decode(input_embeds, tokenizer, **kwargs)
modeling_minicpmv.py+2