Add library_name: transformers metadata (resolves PR #1 intent)

#7
by ThanhNguyxn - opened
No description provided.
ThanhNguyxn changed pull request title from Update metadata with huggingface_hub to Add library_name: transformers metadata (resolves PR #1 intent)

Summary

This PR adds the library_name: transformers metadata field to the model card, addressing the core improvement suggested in PR #1 (by @nielsr from HF Staff) which currently has merge conflicts.

Changes

Before:
```yaml

license: other
pipeline_tag: image-to-image


**After:**
```yaml
---
license: other
pipeline_tag: image-to-image
library_name: transformers
---

Why This Matters

Per HuggingFace documentation:

  1. Required since August 2024: For model repos created after August 2024, library_name must be set explicitly. The auto-detection from config.json is no longer applied.

  2. Enables "How to Use" Widget: Adding library_name: transformers enables the automated usage documentation widget on the model page, making it easier for users to get started.

  3. Improves Discoverability: Users can now filter models by library at https://huggingface.co/models?library=transformers to find this model.

Related

  • Resolves the intent of PR #1 which has merge conflicts
  • Based on the "Quick Start with Transformers" section already present in the model card, confirming transformers compatibility

PR created programmatically using huggingface_hub Python library.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment