add cache + generation, clean up some stuff

This commit is contained in:
Awni Hannun
2023-12-13 22:26:33 -08:00
parent a466cc5191
commit 88d7b67e6e
4 changed files with 70 additions and 113 deletions

View File

@@ -60,7 +60,7 @@ def convert():
del state_dict[key_stub + ".bias"]
weights = {replace_key(k): v.numpy() for k, v in state_dict.items()}
numpy.savez("weights/phi-2.npz", **weights)
numpy.savez("weights.npz", **weights)
if __name__ == "__main__":