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
This commit is contained in:
madroid 2024-05-03 12:22:04 +08:00 committed by GitHub
parent 6775d6cb3f
commit 5079af62db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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