mlx-examples icon indicating copy to clipboard operation
mlx-examples copied to clipboard

fix issues with `config.json`

Open sugatoray opened this issue 5 months ago • 2 comments

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

sugatoray avatar Mar 05 '24 04:03 sugatoray

Associated PR

👉 I have pushed a PR to resolve the issues outlined in this issue.

  • #531

sugatoray avatar Mar 05 '24 04:03 sugatoray

cc: @awni @mzbac

sugatoray avatar Mar 05 '24 04:03 sugatoray