Linly
Linly copied to clipboard
'NoneType' object cannot be interpreted as an integer
TencentPretrain/tencentpretrain/utils/dataloader.py", line 187, in iter
yield torch.LongTensor(src),
TypeError: 'NoneType' object cannot be interpreted as an integer 请问这个是什么问题导致的,貌似预处理后的文件也没问题
修改 utils/constants.py 文件L4,将 special_tokens_map.json 改为 llama_special_tokens_map.json
修改后依旧报错 self.vocab.get(MASK_TOKEN) 为None