Text Generation
PyTorch
English
opt

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.json file specifies "architectures": ["OPTForCausalLM"] and "model_type": "opt", both standard for transformers models.
  • The tokenizer_config.json explicitly sets "tokenizer_class": "GPT2Tokenizer".
  • The generation_config.json includes "transformers_version": "4.42.0.dev0".

This ensures that the automated code snippet will work as expected.

The model card content remains unchanged.

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

Sign up or log in to comment