Coding-farmer
Coding-farmer
##================= Image Captioning ========================## decoder_input_ids = text_tokens.input_ids.clone() decoder_input_ids[:, 0] = self.tokenizer.bos_token_id labels = decoder_input_ids.masked_fill( decoder_input_ids == self.tokenizer.pad_token_id, -100 ) query_atts = torch.ones(query_tokens.size()[:-1], dtype=torch.long).to( image.device ) attention_mask = torch.cat([query_atts, text_tokens.attention_mask], dim=1)...
### Reminder - [x] I have read the above rules and searched the existing issues. ### System Info # NCCL 配置 export NCCL_DEBUG=INFO export NCCL_SOCKET_IFNAME=bond0 # 确保与主节点相同接口名 export NCCL_IB_DISABLE=1 export...