Improve model card: Add pipeline tag, license, GitHub link, abstract, and sample usage
#1
by
nielsr
HF Staff
- opened
This PR significantly enhances the model card for the StarCoder2-SFT
adapter by:
- Adding the
pipeline_tag: text-generation
to improve discoverability on the Hugging Face Hub (e.g., at https://huggingface.co/models?pipeline_tag=text-generation). - Specifying the
license: other
as no explicit license was found in the repository or paper. - Including the
tags: - code-generation
to further categorize the model accurately. - Updating the paper link to the official Hugging Face paper page: https://huggingface.co/papers/2506.00419.
- Adding a direct link to the associated GitHub repository: https://github.com/StonyBrookNLP/disco-lpo.
- Incorporating the paper's abstract to provide immediate context about the model's purpose and methodology.
- Adding a "Usage" section with a Python code snippet that demonstrates how to load this PEFT adapter with its base model and perform text generation using the
transformers
andpeft
libraries. - Including the BibTeX citation from the GitHub README for proper attribution.
- Removing the non-standard "File information" section for better readability.
These changes aim to make the model card more comprehensive, discoverable, and user-friendly.