Closed JuanLyons closed 1 year ago
In the dataloader.py file you can chage this part
m_mask = [torch.ones(len(self.tokenizer.encode('question: '))),torch.ones(len(self.tokenizer.encode(' context:'))),torch.ones(len(self.tokenizer.encode('answer '))),torch.zeros(len(self.tokenizer.encode('<|endoftext|>')))]
In the dataloader.py file you can chage this part
m_mask = [torch.ones(len(self.tokenizer.encode('question: '))),torch.ones(len(self.tokenizer.encode(' context:'))),torch.ones(len(self.tokenizer.encode('answer '))),torch.zeros(len(self.tokenizer.encode('<|endoftext|>')))]
Hi, I have the same problem. Do you know how to modify it specifically? Hope to get your reply, thank you!!!
Hi i'm trying to run the code. The command is a normal one. Python main.py.
I think it could be an error in the dataloader.py file because of the make padding function.