mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-30 02:53:41 +08:00
fix conversion
This commit is contained in:
parent
8e801fcc57
commit
cba703d1f1
@ -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