mlx-examples
mlx-examples copied to clipboard
fix issues with `config.json`
The config file uploaded to huggingface repos by mlx-lm
is not sorted currently. Need updates to sort the config files first and also update the _name_or_path
key in config.json
with the HF upload_repo
provided by the user.
Apart from sorting config.json
Example of what is expected:
{
"_name_or_path": "mlabonne/Monarch-7B",
...
}
What MLX repos have currently vs. what the fix should implement:
{
- "_name_or_path": "/Users/sugatoray/.cache/huggingface/hub/models--mlabonne--AlphaMonarch-7B/snapshots/83a587946ece206325bf07c3bf11134a7256feb0",
+ "_name_or_path": "sugatoray/mlx-alphamonarch-7b-q4bits",
}
:bulb: Related issue:
- #526
Associated PR
👉 I have pushed a PR to resolve the issues outlined in this issue.
- #531
cc: @awni @mzbac