提交 40ae4fb9 编写于 作者: U u010280923

bug fixed

上级 f851310a
......@@ -305,7 +305,7 @@ class RMDataset(Dataset):
def __getitem__(self, index):
ctx_len = self.args.ctx_len
req_len = ctx_len + 1
req_len = ctx_len
prompt_prefer_idx, prompt_alter_idx, prompt_prefer_mask, prompt_alter_mask = self.data[index]
prompt_prefer_idx = prompt_prefer_idx[: req_len]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册