facebook / PE-Core-L14-336

huggingface.co
Total runs: 442.4K
24-hour runs: 0
7-day runs: 33.5K
30-day runs: -34.5K
Model's Last Updated: May 01 2025
zero-shot-image-classification

Introduction of PE-Core-L14-336

Model Details of PE-Core-L14-336

Model Details

Perception Encoder (PE) is a state-of-the-art encoder for image and video understanding trained via simple vision-language learning. It was introduced in " Perception Encoder: The best visual embeddings are not at the output of the network ".

Model Developer : Meta

Model Overview : Perception Encoder (PE) is a family of large-scale vision encoder models with state-of-the-art performance on a large variety of vision tasks. By using a robust contrastive pretraining recipe and finetuning on synthetically aligned videos, PE not only outperforms all existing models on classification and retrieval, but it also internally produces strong, general features that scale for downstream tasks. PE unlocks the ability for large-scale contrastive pretraining to transfer to downstream tasks with alignment tuning to capitalize on those general features.

Perception Encoder: Core

PE core is our base model trained with our robust image pretraining schedule and finetuned on the data generated by our synthetic video data engine.

Model Configurations

PE core curently comes in 3 sizes. PE core G is the main checkpoint, with L and B models distilled from it.

Scale Tower Params Width Depth MLP Heads CLIP Dim Resolution / Context Len
B/16 Vision 0.09B 768 12 3072 12 1024 224px
Text 0.31B 1024 24 4096 16 1024 32 tokens
L/14 Vision 0.32B 1024 24 4096 16 1024 336px
Text 0.31B 1024 24 4096 16 1024 32 tokens
G/14 Vision 1.88B 1536 50 8960 16 1280 448px
Text 0.47B 1280 24 5120 20 1280 72 tokens

All PE core models use an attention pooling block with 8 heads on top of the vision tower. The L and B models additionally have a class token for global aggregation. See the paper for more details.

Model Performance

PE core obtains extremely strong results across the board on zero-shot image classification and retrieval as well as zero-shot video classification and retrieval. We present a sample of its performance across those domains below.

Model Checkpoint IN-1k IN-v2 IN-A ObjectNet COCO-T2I Kinetics-400 VTT-T2I
B/16 224px PE-Core-B16-224 78.4 71.7 62.4 71.9 50.9 65.6 47.6
L/14 336px PE-Core-L14-336 83.5 77.9 89.0 84.7 57.1 73.4 50.3
G/14 448px PE-Core-G14-448 85.4 80.2 92.6 88.2 58.1 76.9 51.2

PE core performs particularly well on the hard benchmarks such as ObjectNet and ImageNet-A.

How to use

Model loading code

We provide the model loading code in https://github.com/facebookresearch/perception_models

git clone https://github.com/facebookresearch/perception_models.git
cd perception_models
conda create --name perception_models python=3.12
conda activate perception_models
# Install PyTorch
pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 xformers --index-url https://download.pytorch.org/whl/cu124
# We use torchcodec for decoding videos into PyTorch tensors
conda install ffmpeg -c conda-forge
pip install torchcodec==0.1 --index-url=https://download.pytorch.org/whl/cu124
pip install -e .

This will install an editable version of repo, allowing you to make changes to the code without needing to reinstall the package every time.

Image and Text Feature extraction with a Trained Model
import torch
from core.vision_encoder.factory import create_model_and_transforms, get_tokenizer
from PIL import Image

model_name = 'PEv1-L14-336'
pretrained = 'PATH_TO_PE_Core_L14_336'

model, _, preprocess = create_model_and_transforms(
    model_name,
    pretrained=pretrained,
)
model = model.cuda()
tokenizer = get_tokenizer(model_name)
image = preprocess(Image.open("docs/cat.png")).unsqueeze(0).cuda()
text = tokenizer(["a diagram", "a dog", "a cat"]).cuda()

with torch.no_grad(), torch.autocast("cuda"):
    image_features = model.encode_image(image)
    text_features = model.encode_text(text)
    image_features /= image_features.norm(dim=-1, keepdim=True)
    text_features /= text_features.norm(dim=-1, keepdim=True)
    text_probs = (100.0 * image_features @ text_features.T).softmax(dim=-1)

print("Label probs:", text_probs)  # prints: [[0.0, 0.0, 1.0]]

You can find more details in the GitHub repo.

Citation

If you find our code useful for your research, please consider citing:

@article{bolya2025PerceptionEncoder,
  title={Perception Encoder: The best visual embeddings are not at the output of the network},
  author={Daniel Bolya and Po-Yao Huang and Peize Sun and Jang Hyun Cho and Andrea Madotto and Chen Wei and Tengyu Ma and Jiale Zhi and Jathushan Rajasegaran and Hanoona Rasheed and Junke Wang and Marco Monteiro and Hu Xu and Shiyu Dong and Nikhila Ravi and Daniel Li and Piotr Doll{\'a}r and Christoph Feichtenhofer},
  journal={arXiv},
  year={2025}
}

@article{cho2025PerceptionLM,
  title={PerceptionLM: Open-Access Data and Models for Detailed Visual Understanding},
  author={Jang Hyun Cho and Andrea Madotto and Effrosyni Mavroudi and Triantafyllos Afouras and Tushar Nagarajan and Muhammad Maaz and Yale Song and Tengyu Ma and Shuming Hu and Hanoona Rasheed and Peize Sun and Po-Yao Huang and Daniel Bolya and Suyog Jain and Miguel Martin and Huiyu Wang and Nikhila Ravi and Shashank Jain and Temmy Stark and Shane Moon and Babak Damavandi and Vivian Lee and Andrew Westbury and Salman Khan and Philipp Kr\"{a}henb\"{u}hl and Piotr Doll{\'a}r and Lorenzo Torresani and Kristen Grauman and Christoph Feichtenhofer},
  journal={arXiv},
  year={2025}
}

Runs of facebook PE-Core-L14-336 on huggingface.co

442.4K
Total runs
0
24-hour runs
12.1K
3-day runs
33.5K
7-day runs
-34.5K
30-day runs

More Information About PE-Core-L14-336 huggingface.co Model

More PE-Core-L14-336 license Visit here:

https://choosealicense.com/licenses/apache-2.0

PE-Core-L14-336 huggingface.co

PE-Core-L14-336 huggingface.co is an AI model on huggingface.co that provides PE-Core-L14-336's model effect (), which can be used instantly with this facebook PE-Core-L14-336 model. huggingface.co supports a free trial of the PE-Core-L14-336 model, and also provides paid use of the PE-Core-L14-336. Support call PE-Core-L14-336 model through api, including Node.js, Python, http.

PE-Core-L14-336 huggingface.co Url

https://huggingface.co/facebook/PE-Core-L14-336

facebook PE-Core-L14-336 online free

PE-Core-L14-336 huggingface.co is an online trial and call api platform, which integrates PE-Core-L14-336's modeling effects, including api services, and provides a free online trial of PE-Core-L14-336, you can try PE-Core-L14-336 online for free by clicking the link below.

facebook PE-Core-L14-336 online free url in huggingface.co:

https://huggingface.co/facebook/PE-Core-L14-336

PE-Core-L14-336 install

PE-Core-L14-336 is an open source model from GitHub that offers a free installation service, and any user can find PE-Core-L14-336 on GitHub to install. At the same time, huggingface.co provides the effect of PE-Core-L14-336 install, users can directly use PE-Core-L14-336 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

PE-Core-L14-336 install url in huggingface.co:

https://huggingface.co/facebook/PE-Core-L14-336

Url of PE-Core-L14-336

PE-Core-L14-336 huggingface.co Url

Provider of PE-Core-L14-336 huggingface.co

facebook
ORGANIZATIONS

Other API from facebook

huggingface.co

Total runs: 8.1M
Run Growth: 105.7K
Growth Rate: 1.31%
Updated:January 20 2022
huggingface.co

Total runs: 6.9M
Run Growth: -4.1M
Growth Rate: -57.77%
Updated:September 15 2023
huggingface.co

Total runs: 2.8M
Run Growth: -1.7M
Growth Rate: -58.58%
Updated:September 06 2023
huggingface.co

Total runs: 2.8M
Run Growth: -20.2K
Growth Rate: -0.72%
Updated:January 17 2024
huggingface.co

Total runs: 2.2M
Run Growth: -1.1M
Growth Rate: -51.47%
Updated:December 28 2021
huggingface.co

Total runs: 2.1M
Run Growth: -154.1K
Growth Rate: -7.26%
Updated:November 21 2025
huggingface.co

Total runs: 1.9M
Run Growth: 45.7K
Growth Rate: 2.49%
Updated:March 23 2023
huggingface.co

Total runs: 1.8M
Run Growth: -498.8K
Growth Rate: -26.88%
Updated:January 25 2024
huggingface.co

Total runs: 922.5K
Run Growth: 112.9K
Growth Rate: 12.53%
Updated:September 06 2023
huggingface.co

Total runs: 465.6K
Run Growth: 31.2K
Growth Rate: 6.92%
Updated:March 17 2025
huggingface.co

Total runs: 460.7K
Run Growth: -74.6K
Growth Rate: -16.25%
Updated:May 22 2023
huggingface.co

Total runs: 451.4K
Run Growth: 58.6K
Growth Rate: 12.91%
Updated:February 29 2024
huggingface.co

Total runs: 328.1K
Run Growth: -41.9K
Growth Rate: -12.78%
Updated:January 12 2024
huggingface.co

Total runs: 310.4K
Run Growth: 35.9K
Growth Rate: 11.55%
Updated:September 06 2023
huggingface.co

Total runs: 293.8K
Run Growth: 84.4K
Growth Rate: 30.87%
Updated:September 15 2023
huggingface.co

Total runs: 289.7K
Run Growth: -25.0K
Growth Rate: -8.72%
Updated:November 17 2022
huggingface.co

Total runs: 274.9K
Run Growth: 15.9K
Growth Rate: 5.86%
Updated:June 15 2023
huggingface.co

Total runs: 247.2K
Run Growth: -320.1K
Growth Rate: -130.24%
Updated:January 12 2024
huggingface.co

Total runs: 236.9K
Run Growth: 14.3K
Growth Rate: 6.02%
Updated:July 23 2024
huggingface.co

Total runs: 204.1K
Run Growth: 65.5K
Growth Rate: 33.41%
Updated:June 13 2023
huggingface.co

Total runs: 169.9K
Run Growth: 20.9K
Growth Rate: 12.24%
Updated:February 12 2023
huggingface.co

Total runs: 161.0K
Run Growth: -486
Growth Rate: -0.30%
Updated:September 01 2023
huggingface.co

Total runs: 124.3K
Run Growth: -31.2K
Growth Rate: -26.01%
Updated:September 06 2023
huggingface.co

Total runs: 117.1K
Run Growth: -14.4K
Growth Rate: -12.32%
Updated:June 03 2022
huggingface.co

Total runs: 105.2K
Run Growth: -225.7K
Growth Rate: -215.74%
Updated:July 25 2023
huggingface.co

Total runs: 98.8K
Run Growth: 67.5K
Growth Rate: 68.84%
Updated:February 12 2023
huggingface.co

Total runs: 97.8K
Run Growth: -139.4K
Growth Rate: -128.66%
Updated:May 22 2023
huggingface.co

Total runs: 97.4K
Run Growth: -14.3K
Growth Rate: -14.26%
Updated:November 16 2023
huggingface.co

Total runs: 90.6K
Run Growth: 4.3K
Growth Rate: 4.54%
Updated:January 25 2023
huggingface.co

Total runs: 89.2K
Run Growth: -20.6K
Growth Rate: -22.67%
Updated:September 15 2023
huggingface.co

Total runs: 85.4K
Run Growth: 949
Growth Rate: 1.07%
Updated:November 20 2023
huggingface.co

Total runs: 78.8K
Run Growth: -80.9K
Growth Rate: -102.99%
Updated:June 13 2023
huggingface.co

Total runs: 53.4K
Run Growth: 27.5K
Growth Rate: 53.46%
Updated:December 09 2025
huggingface.co

Total runs: 51.5K
Run Growth: -18.0K
Growth Rate: -34.93%
Updated:March 28 2026
huggingface.co

Total runs: 48.0K
Run Growth: -22.0K
Growth Rate: -45.79%
Updated:January 29 2026