Update modeling_minicpmv.py
Browse files279 unmodified lines280281282283284285286287279 unmodified lines padded_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 batch for 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