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-generation to 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_name from CALM to transformers. This is supported by the transformers_version in config.json and explicit instructions in the GitHub README on how to use the model with the transformers library by setting trust_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

Sign up or log in to comment