mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 01:17:28 +08:00
fix conversion
This commit is contained in:
parent
2652b4f055
commit
a4d932bf26
@ -47,6 +47,7 @@ if __name__ == "__main__":
|
||||
# Copy the params
|
||||
with open(torch_path / "params.json", "r") as f:
|
||||
config = json.loads(f.read())
|
||||
n_heads = config["n_heads"]
|
||||
if "sliding_window" in config:
|
||||
config.pop("sliding_window")
|
||||
if "n_kv_heads" not in config:
|
||||
|
Loading…
Reference in New Issue
Block a user