mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-25 01:41:19 +08:00
Corrected the typo in 'ffn_dim_multiplier' in and added 'rope_theta' to the list unused. Without these, llama examples did not run.
This commit is contained in:
parent
af2e2b40f9
commit
f691e00e5a
@ -315,7 +315,7 @@ def load_model(model_path):
|
||||
config["hidden_dim"] = weights["layers.0.feed_forward.w1.weight"].shape[0]
|
||||
if config.get("vocab_size", -1) < 0:
|
||||
config["vocab_size"] = weights["output.weight"].shape[-1]
|
||||
unused = ["multiple_of", "ffn_dim_multiplie"]
|
||||
unused = ["multiple_of", "ffn_dim_multiplier", 'rope_theta']
|
||||
for k in unused:
|
||||
if k in config:
|
||||
config.pop(k)
|
||||
|
Loading…
Reference in New Issue
Block a user