Views
No views yet
MoEViE-B16-224 — B/16 at 224px.active experts run per token, so the activated
parameter count is far below the total.| Scale | Width | Depth | Experts (active/total) | Total params | Activated params | Resolution |
|---|---|---|---|---|---|---|
| B/16 | 768 | 12 | 4 / 32 | 0.5B | 0.1B | 224px |
| L/16 | 1024 | 24 | 4 / 32 | 1.7B | 0.3B | 384px |
| H/14 | 1280 | 32 | 8 / 32 | 3.5B | 1.1B | 448px |
active/total column counts the shared expert. Routing is per-token top-k on a sigmoid gate.| Model | Checkpoint | IN-1k | ObjectNet | COCO-T2I | Kinetics-400 | MSR-VTT-T2V |
|---|---|---|---|---|---|---|
| B/16 224px | MoEViE-B16-224 | 79.3 | 74.4 | 52.1 | 68.3 | 47.9 |
| L/16 384px | MoEViE-L16-384 | 83.6 | 85.0 | 57.2 | 74.5 | 50.5 |
| H/14 448px | MoEViE-H14-448 | 85.1 | 87.0 | 56.8 | 76.9 | 51.6 |
1git clone https://github.com/facebookresearch/moe_vie
2cd moe_vie
3pip install -r requirements.txt1import torch
2from PIL import Image
3from open_clip import create_model_and_transforms, get_tokenizer, image_to_device
4
5MEAN, STD = (0.5, 0.5, 0.5), (0.5, 0.5, 0.5)
6
7model, _, preprocess = create_model_and_transforms(
8 "MoEViE-B16-224",
9 pretrained=True, # downloads from the Hub
10 force_preprocess_cfg=dict(
11 patch_size=16, size_range=(224, 224), center_crop=True, window_size=1
12 ),
13 image_mean=MEAN, image_std=STD,
14)
15model = model.cuda().eval()
16tokenizer = get_tokenizer("MoEViE-B16-224")
17
18labels = ["a diagram", "a dog", "a cat"]
19packed, _ = preprocess.collate_fn([(preprocess(Image.open("cat.png").convert("RGB")), 0)])
20packed = image_to_device(packed, "cuda", torch.float32, mean=MEAN, std=STD)
21text = tokenizer(labels).cuda()
22
23with torch.no_grad(), torch.autocast("cuda"):
24 image_features = model.encode_image(packed, normalize=True)
25 text_features = model.encode_text(text, normalize=True)
26 probs = (model.logit_scale.exp() * image_features @ text_features.T).softmax(dim=-1)
27
28print("Label probs:", probs)demo/demo.py and the repository README for the
zero-shot evaluation suite.1@article{zhang2026moevie,
2 title={MoE-ViE: Mixture of Experts Vision Encoder for Efficient Image and Video Understanding},
3 author={Bonan Zhang and Shiyu Dong and Quan Hung Tran and Katharina Gschwind and Shuqi Yang and Sijia Chen and Adel Ahmadyan and Seungwhan Moon and Lu Zhang and Ahmed Kirmani and Babak Damavandi and Anuj Kumar},
4 journal={arXiv preprint arXiv:2608.17402},
5 year={2026}
6}