"tests/vscode:/vscode.git/clone" did not exist on "ca00adace51ae4d82d2ff5cfc1ef1c9174ff6aaa"
Commit d67c3051 authored by Patrick von Platen's avatar Patrick von Platen
Browse files

allow conversion from no state dict checkpoints

parent 2bd53a94
......@@ -866,6 +866,8 @@ if __name__ == "__main__":
else:
print("global_step key not found in model")
global_step = None
if "state_dict" in checkpoint:
checkpoint = checkpoint["state_dict"]
upcast_attention = False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment