Update model card: Add `text-generation` pipeline tag, `transformers` library, and sample usage
#1
by
nielsr
HF Staff
- opened
This PR enhances the model card for the CALM model by:
- Adding the
pipeline_tag: text-generationto the metadata, which aligns with the model's core functionality as described in the paper abstract (language modeling and text generation). This will improve its discoverability on the Hugging Face Hub. - Updating the
library_namefromCALMtotransformers. This is supported by thetransformers_versioninconfig.jsonand explicit instructions in the GitHub README on how to use the model with thetransformerslibrary by settingtrust_remote_code=True. This change enables the automated code snippet and inference widget on the Hub. - Updating the "Blog" badge to "Project Page" for clarity and consistency, using the same URL.
- Adding a "Sample Usage" section with a Python code snippet for text generation, directly sourced from the project's GitHub README. This provides users with a quick and verified way to get started with the model.
These changes will make the model card more informative, discoverable, and user-friendly.
cccczshao
changed pull request status to
merged