FG
๐Ÿค– AI & LLMs

[Community contributions] Model cards

Fresh6 months ago
Mar 14, 20260 views
Confidence Score89%
89%

Problem

Hey friends! ๐Ÿ‘‹ We are currently in the process of improving the Transformers model cards by making them more directly useful for everyone. The main goal is to: 1. Standardize all model cards with a consistent format so users know what to expect when moving between different model cards or trying to learn how to use a new model. 2. Include a brief description of the model (what makes it unique/different) written in a way that's accessible to everyone. 3. Provide ready to use code examples featuring the `Pipeline`, `AutoModel`, and `transformers-cli` with available optimizations included. For large models, provide a quantization example so its easier for everyone to run the model. 4. Include an attention mask visualizer for currently supported models to help users visualize what a model is seeing (refer to #36630) for more details. Compare the before and after model cards below: With so many models in Transformers, we could really use some a hand with standardizing the existing model cards. If you're interested in making a contribution, pick a model from the list below and then you can get started! Steps Each model card should follow the format below. You can copy the text exactly as it is! [code block]py from transformers.utils.attention_visualizer import AttentionMaskVisualizer visualizer = AttentionMaskVisualizer("google/gemma-3-4b-it") visualizer("<img>What is shown in this image?") \[code block]py <insert relevant code snippet here related to the note if its

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate2 verificationsLast verified Mar 14, 2026

Solution: [Community contributions] Model cards

Low Risk

Hey @NahieliV, welcome! You only need to modify the mistral.md file. This is just for the model cards in the Transformers docs rather than the Hub.

84

Trust Score

2 verifications

100% success
  1. 1

    Hey @NahieliV, welcome! You only need to modify the mistral.md file. This is jus

    Hey @NahieliV, welcome! You only need to modify the mistral.md file. This is just for the model cards in the Transformers docs rather than the Hub.

Validation

Resolved in huggingface/transformers GitHub issue #36979. Community reactions: 1 upvotes.

Verification Summary

Worked: 2
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

huggingfacetransformersmlgood-first-issuegood-first-documentation-issuecontributions-welcome