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

Closed
opened 2026-05-05 07:56:27 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10380
Author: @mrutkows
Created: 4/23/2025
Status: Closed

Base: mainHead: convert-hf-metadata


📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/10380 **Author:** [@mrutkows](https://github.com/mrutkows) **Created:** 4/23/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `convert-hf-metadata` --- ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-05 07:56:27 -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#75518