Skip to content

Conversation

@BryanBradfo
Copy link
Contributor

What does this PR do?

This PR updates the Swin Transformer model card (swin.md) to align with the new standardized format.

  • Follows the template provided in [Community contributions] Model cards #36979.
  • Includes working Pipeline and AutoModel examples tested locally.
  • Removed the transformers-cli example due to input handling inconsistencies observed across different CLI versions/setups.

Relates to #36979

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

@stevhliu

@github-actions github-actions bot marked this pull request as draft April 19, 2025 10:27
@github-actions
Copy link
Contributor

Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. The CI will be paused while the PR is in draft mode. When it is ready for review, please click the Ready for review button (at the bottom of the PR page). This will assign reviewers and trigger CI.

@BryanBradfo BryanBradfo marked this pull request as ready for review April 19, 2025 13:24
@github-actions github-actions bot requested a review from stevhliu April 19, 2025 13:25
Copy link
Member

@stevhliu stevhliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really well done, thanks! 🤗

BryanBradfo and others added 6 commits May 3, 2025 00:14
Apply suggestion from @stevhliu in PR huggingface#37628.

This change updates the link pointing to the official Microsoft Swin Transformer checkpoints on the Hugging Face Hub.

The link now directs users specifically to the Microsoft organization page, filtered for Swin models, providing a clearer and more canonical reference compared to the previous general search link.

Co-authored-by: Steven Liu <[email protected]>
Apply suggestion from @stevhliu in PR huggingface#37628.

This change introduces two improvements to the Swin model card:

1.  Refines the wording describing how Swin handles input padding for better clarity.
2.  Adds an internal documentation link to the general "backbones" page when discussing Swin's capability as a backbone model.

These updates enhance readability and improve navigation within the Transformers documentation.

Co-authored-by: Steven Liu <[email protected]>
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@stevhliu stevhliu merged commit b369a65 into huggingface:main May 21, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants