提交 e620d171 编写于 作者: U u010280923

bug fixed

上级 02e8a2d9
......@@ -385,7 +385,7 @@ class RWKV(pl.LightningModule):
def load(self, path):
path = Path(path)
assert path.exists()
self.load_state_dict(torch.load(str(path)), map_location="cpu")
self.load_state_dict(torch.load(str(path), map_location="cpu"))
def configure_optimizers(self):
args = self.args
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册