Add `library_name: transformers` to model card metadata
#2
by
nielsr
HF Staff
- opened
This PR adds the library_name: transformers metadata tag to the model card.
This tag is crucial for Hugging Face Hub functionality, as it enables the automated "How to use" widget on the model page, providing users with a readily available code snippet to get started with the model.
Evidence for transformers compatibility is strong:
- The
config.jsonfile specifies"architectures": ["OPTForCausalLM"]and"model_type": "opt", both standard fortransformersmodels. - The
tokenizer_config.jsonexplicitly sets"tokenizer_class": "GPT2Tokenizer". - The
generation_config.jsonincludes"transformers_version": "4.42.0.dev0".
This ensures that the automated code snippet will work as expected.
The model card content remains unchanged.