Downloads · 30 days
17
20% of all-time downloads
pjajal/adaperceiver-v1
adaperceiver-v1 is a machine learning model from pjajal. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This repository hosts the logit + feature distilled AdaPerceiver model, introduced in “AdaPerceiver: Transformers with Adaptive Width, Depth, and Tokens”.
Downloads · 30 days
17
20% of all-time downloads
All-time downloads
86
Public
Parameters
161M
643 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors643 MB · 100%
From the Hugging Face model README
This repository hosts the logit + feature distilled AdaPerceiver model, introduced in
“AdaPerceiver: Transformers with Adaptive Width, Depth, and Tokens”.
📄 Paper: https://arxiv.org/abs/2511.18105
📦 Code: https://github.com/pjajal/AdaPerceiver
📚 Model Collection: https://huggingface.co/collections/pjajal/adaperceiver-v1
This model is distilled from ViT-H CLIP model.
AdaPerceiver is a Perceiver-style transformer architecture designed for runtime-adaptive computation.
A single trained model can dynamically trade off accuracy and compute by adjusting:
This specific checkpoint corresponds to the logit + feature distilled AdaPerceiver model, trained on ImageNet-12K using a ViT-H teacher. It exposes both:
For full training details, see Appendix D of the paper.
This model can be loaded using the AdaPerceiver Hub-compatible class.
import torch
from hub.networks.adaperceiver_distill import DistillAdaPerceiver
model = DistillAdaPerceiver.from_pretrained("pjajal/adaperceiver-v1")
# forward(
# x: input image tensor (B, C, H, W)
# num_tokens: number of latent tokens to process (optional)
# mat_dim: embedding dimension (optional)
# depth: early-exit depth (optional)
# token_grans: block-mask granularities (optional)
# )
out = model(
torch.randn(1, 3, 224, 224),
num_tokens=256,
mat_dim=128,
depth=12,
)
print(out.logits.shape, out.features.shape)
If you use this models please cite the AdaPerceiver paper:
@article{jajal2025adaperceiver,
title={AdaPerceiver: Transformers with Adaptive Width, Depth, and Tokens},
author={Jajal, Purvish and Eliopoulos, Nick John and Chou, Benjamin Shiue-Hal and Thiruvathukal, George K and Lu, Yung-Hsiang and Davis, James C},
journal={arXiv preprint arXiv:2511.18105},
year={2025}
}