Torch-Pruning icon indicating copy to clipboard operation
Torch-Pruning copied to clipboard

how to prune ViT-S from timm library

Open sravanthOppo27 opened this issue 1 year ago • 1 comments

ViT-S is not there in torchvision.models.vision_transformer , It is there in timm.models.vision_transformer . When I was trying to prune the vit_small_patch16_224 , I am getting error as

local_norm = local_norm[idxs] IndexError: index 384 is out of bounds for dimension 0 with size 384 .

Can your method able to prune ViT-S from timm ?

sravanthOppo27 avatar Mar 07 '23 12:03 sravanthOppo27

@sravanthOppo27 It seems like the author have implemented your request in the latest release https://github.com/VainF/Torch-Pruning/releases/tag/v1.2.1

AymenBOUGUERRA avatar Aug 07 '23 13:08 AymenBOUGUERRA