mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-07-16 15:31:12 +08:00
Merge pull request #102 from burakbudanur/main
Corrected the typo in 'ffn_dim_multiplier' in and added 'rope_theta' …
This commit is contained in:
commit
363108d7b3
@ -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