[PR #10380] Add Huggingface model card README.md (YAML) to GGUF convert #13224

Closed
opened 2026-04-13 00:21:24 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/10380

State: closed
Merged: No


Huggingface has standardized a set of YAML (tags) that describe such things as license information, model provenance and organizational ownership that is supported by the GGUF format and can be added as general.xx entries in the KV header values (see https://huggingface.co/docs/hub/en/model-cards#editing-the-yaml-section-of-the-readmemd-file and https://github.com/ggml-org/llama.cpp/blob/master/gguf-py/gguf/constants.py respectively).

This PR seeks to automate that inclusion of that data as part of the model conversion (i.e., create) process since this information is stored at the top of each Huggingface model's README.md (even templated on model repo. creation) and is fairly easily extracted, parsed and mapped.

Please note that only the information that is relevant to the model itself, from a larger set HF supports, is brought over and aligns with what has been done in other converters.

**Original Pull Request:** https://github.com/ollama/ollama/pull/10380 **State:** closed **Merged:** No --- Huggingface has standardized a set of YAML (tags) that describe such things as license information, model provenance and organizational ownership that is supported by the GGUF format and can be added as `general.xx` entries in the KV header values (see https://huggingface.co/docs/hub/en/model-cards#editing-the-yaml-section-of-the-readmemd-file and https://github.com/ggml-org/llama.cpp/blob/master/gguf-py/gguf/constants.py respectively). This PR seeks to automate that inclusion of that data as part of the model conversion (i.e., `create`) process since this information is stored at the top of each Huggingface model's `README.md` (even templated on model repo. creation) and is fairly easily extracted, parsed and mapped. Please note that only the information that is relevant to the model itself, from a larger set HF supports, is brought over and aligns with what has been done in other converters.
GiteaMirror added the pull-request label 2026-04-13 00:21:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13224