Skip to content

More models support forward_intermediates #2482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

brianhou0208
Copy link
Contributor

@brianhou0208 brianhou0208 commented May 5, 2025

Fix applying final norm to last indices

  • ConvNeXt
  • RDNet
  • MaxViT / CoAtNet
  • MViTv2

Support forward_only=True

  • GCViT

Support forward_intermediates

  • DaViT
  • EdgeNeXt
  • EfficientFormerV2
  • EfficientViT(MIT)
  • EfficientViT(MSRA)
  • FocalNet
  • GCViT
  • HGNet /V2
  • InceptionNeXt
  • Inception-V4
  • MambaOut
  • MetaFormer
  • NesT
  • Next-ViT
  • PiT
  • PVT V2
  • RepGhostNet
  • RepViT
  • ResNetV2
  • ReXNet
  • TinyViT
  • TResNet
  • VoVNet

@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.

@rwightman
Copy link
Collaborator

@brianhou0208 wow, impressive. I'll poke through and check some things, look at the TNT one closer too.

@rwightman
Copy link
Collaborator

@brianhou0208 I added the mentioned feature output check to the unit tests, probably worth merging into this PR

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