From 5079af62db260ac2ec838e8788c085e2cb8023d5 Mon Sep 17 00:00:00 2001 From: madroid Date: Fri, 3 May 2024 12:22:04 +0800 Subject: [PATCH] Update model card describe (#654) * Update model card describe - Add full link jump - Add the address of the model uploader's Hugging Face homepage * Add user_info to reduce whoami calls * Remove the -U argument * remove HF user info * run pre-commit --- llms/mlx_lm/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llms/mlx_lm/utils.py b/llms/mlx_lm/utils.py index 67b3dfce..3acc5a62 100644 --- a/llms/mlx_lm/utils.py +++ b/llms/mlx_lm/utils.py @@ -446,8 +446,9 @@ def upload_to_hub(path: str, upload_repo: str, hf_path: str): card.text = dedent( f""" # {upload_repo} - This model was converted to MLX format from [`{hf_path}`]() using mlx-lm version **{__version__}**. - Refer to the [original model card](https://huggingface.co/{hf_path}) for more details on the model. + + The Model [{upload_repo}](https://huggingface.co/{upload_repo}) was converted to MLX format from [{hf_path}](https://huggingface.co/{hf_path}) using mlx-lm version **{__version__}**. + ## Use with mlx ```bash