mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-12-16 02:08:55 +08:00
add cache + generation, clean up some stuff
This commit is contained in:
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user