alt.freeweights.vision / openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k
From: laion <huggingface.co/laion>Newsgroups: alt.freeweights.visionSubject:

openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k

Date: 2026-11-14Commit: e82b8b7Signed: 2DC28CC7B26A283B ✓

Zero shot image classification model. Safetensors weights, 2.20 GB in all. Published by laion under Apache-2.0.

vision2.20GBopenMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73ksafetensorspermissive
FactsParamsnot statedSize2.20 GBFormatssafetensorsTaskzero shot image classificationLicenseApache-2.0From sourcepermissive
$ fw get laion/openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k
# manifest sha256 abeece16f8a4… · 2.20 GB · 16 files
$ fw verify ./openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k laion/openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k
From sourceHosted (signed)laion/openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73kLast check: 2026-11-14 21:38 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
2.20 GB
Weights
733 MB (safetensors)
Parameters
not stated
Formats
safetensors
Task
zero shot image classification
License
Apache-2.0 (permissive)
Files
16, each with a sha256
Publisher
laion
Added
2026-11-14
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:38 UTCpassed

Model card

From the publisher at commit e82b8b7. Shown as plain text with links; images open at the publisher.

Model card for openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k#

Table of Contents#

  1. Model Details
  2. Uses
  3. Training Details
  4. Evaluation
  5. How To Get Started With the Model
  6. Acknowledgements
  7. Citation

Model Details#

Model Description#

An openMammut ViT-B/32 model (512x512 resolution), able to perform various image recognition and image captioning tasks. This model is based on https://huggingface.co/laion/scaling-laws-for-comparison/tree/main/mammut_ViT-B-32_s12.8B_dfn_2b_globalbs180224_lr0.0025_b1_0.9_b2_0.95_sched_cosine_warmup6000_gpus512 and is fine-tuned on the DFN-2B dataset filtered such that images are at least 512x512 resolution, a total of 293M samples.

The model achieves a 76.12% zero-shot top-1 accuracy on ImageNet-1k, 69.58% zero-shot on MSCOCO image@R5 retrieval, 83.66% on MSCOCO text@R5 retrieval (5k Karpathy split test set).

Model training done by Mehdi Cherti on JUWELS Booster at Juelich Supercomputing Center, using automated experiment execution workflow autoexperiment, implemented by Mehdi Cherti. Training performed in frame of scaling law model and dataset comparison study published in arXiv:2506.04598. See also the research repository and full thread.

The model weights are directly usable in HF transformers (HF version implemented by Marianna Nezhurina) or by using custom OpenCLIP fork. Both image recognition (classification, retrieval, etc) and text generation (image captioning) tasks are supported.

Image: openmammut_release_logo

Uses#

This model is intended as a research output for research communities. We hope that this model will enable researchers to better understand and explore zero-shot, arbitrary image classification and retrieval, and generalization capabilities of language-vision learning in general. We also hope it can be used for interdisciplinary studies of the impact of such model, eg when used as component in VLMs or other multi-modal models. Details on the DFN-2B dataset can be found in Data Filtering Networks paper.

Direct Use#

Zero-shot image classification, image and text retrieval, segmentation, image captioning. Other uses are possible when employing the model as component in other systems or fine-tuning it for other downstream tasks.

ATTENTION: currently, if using openCLIP code base, custom openCLIP fork is required to work with the model. Integrating openMaMMUT code into main openCLIP repository is work in progress. Any volunteers helping with intergration highly welcome, join LAION discord

Alternatively, HF transformers can be used to work with the model natively in HF.

Downstream Use#

Image classification, retrieval and image captioning. Linear probing and full fine-tuning for various image tasks, e.g, segmentation, image classification, retrieval. Re-usage as component for guiding and conditioning of image generative models, among others.

Out-of-Scope Use#

As per the OpenAI models,

Any deployed use case of the model (that is, in form of an end product) - whether commercial or not - is currently out of scope. Non-deployed use cases such as image search in a constrained environment, are also not recommended unless there is thorough in-domain testing of the model with a specific, fixed class taxonomy. This is because our safety assessment demonstrated a high need for task specific testing especially given the variability of CLIP’s performance with different class taxonomies. This makes untested and unconstrained deployment of the model in any use case currently potentially error prone and thus unsafe.

Certain use cases which would fall under the domain of surveillance and facial recognition are always out-of-scope regardless of performance of the model. This is because the use of artificial intelligence for tasks such as these can be premature currently given the lack of testing norms and checks to ensure its fair use.

Since the model has not been purposefully trained in or evaluated on any languages other than English, its use should be limited to English language use cases.

Further the above notice, the DataComp-1.4B dataset used in training of these models has additional considerations, see below.

Training Details#

The model was trained on 512x512 293M samples from DFN-2B. Warmup = 100 steps, learning rate = 1e-5, cosine annealing schedule, no weight decay, Global batch size = 73728, number of GPUs = 256 (A100 40Gb), local batch size = 288

Evaluation#

Evaluation done with code in the LAION CLIP Benchmark suite, using autoexperiment.

Testing Data, Factors & Metrics#

Testing Data#

The testing is performed with various downstream tasks and datasets, which include ImageNet-1k, DataComp evaluation suite (35 tasks total), and MS-COCO retrieval. TODO - more detail

Results#

The model achieves a 76.12% zero-shot top-1 accuracy on ImageNet-1k, 69.58% zero-shot on MSCOCO image@R5 retrieval, 83.66% on MSCOCO text@R5 retrieval (5k Karpathy split test set).

TODO - create table for just this model's metrics.

How to Get Started with the Model#

The model weights are directly usable in HF transformers (HF version implemented by Marianna Nezhurina) or by using custom OpenCLIP fork. Both image recognition (classification, retrieval, etc) and text generation (image captioning) tasks are supported.

Quickstart with HF transformers#

from PIL import Image
import requests
from transformers import CLIPProcessor, AutoModel, CLIPTokenizer

model_path = "laion/openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k"
tokenizer = CLIPTokenizer.from_pretrained(model_path)

model = AutoModel.from_pretrained(model_path, trust_remote_code=True)
processor = CLIPProcessor.from_pretrained(model_path)

url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)

# Image captioning
inputs = processor(images=image, return_tensors="pt", padding=True)
outputs = model.generate(pixel_values=inputs["pixel_values"], top_p=0.1, do_sample=True).sequences
decoded_outputs = tokenizer.batch_decode(outputs)
print("HuggingFace outputs:", decoded_outputs) # prints: ['<|startoftext|>cats on couch']

# Get image-text similarity (just like CLIP)
text  = ["a photo of a cat", "a photo of a dog"]
inputs = processor(images=image, text=text, return_tensors="pt", padding=True)

outputs = model(pixel_values=inputs["pixel_values"], input_ids=inputs["input_ids"], attention_mask=inputs["attention_mask"], contrastive_only=True)

logits_per_image = outputs.logits_per_image # this is the image-text similarity score
probs = logits_per_image.softmax(dim=1) # we can take the softmax to get the label probabilities

print("Label probabilities:", probs)
print("Logits per image:", logits_per_image)

# Compute image and text embeddings separately

text_features = model.get_text_features(inputs["input_ids"], inputs["attention_mask"])
image_features = model.get_image_features(inputs["pixel_values"])

print("Text features shape:", text_features.shape)  # prints: [batch_size, feature_dim]
print("Image features shape:", image_features.shape)  # prints: [batch_size, feature_dim]
text_features /= text_features.norm(dim=-1, keepdim=True)
image_features /= image_features.norm(dim=-1, keepdim=True)
text_probs = (100.0 * image_features @ text_features.T).softmax(dim=-1)
print("Label probs:", text_probs)  # prints: [[1., 0.]] or similar, depending on the image and text

Using OpenCLIP codebase#

Research repository: https://github.com/LAION-AI/scaling-laws-for-comparison

ATTENTION: currently, custom openCLIP fork is required to work with the model when using openCLIP code base. Integrating openMaMMUT code into main openCLIP repository is work in progress. Any volunteers helping with intergration highly welcome, join LAION discord.

Alternatively, use HF transformers to work with the model natively in HF.

First, you need to install OpenCLIP MaMMUT, a fork of OpenCLIP with MaMMUT support:

git clone https://github.com/LAION-AI/open_clip_mammut
cd open_clip_mammut
python -m pip install .

Use the code below to get started with the model.

Zero-shot classification example:

import torch
from PIL import Image
import open_clip

model, _, transform = open_clip.create_model_and_transforms('openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k')
model.eval()  # model in train mode by default, impacts some models with BatchNorm or stochastic depth active
tokenizer = open_clip.get_tokenizer('hf-hub:laion/openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k')

image = transform(Image.open("docs/CLIP.png")).unsqueeze(0)
text = tokenizer(["a diagram", "a dog", "a cat"])

with torch.no_grad(), torch.amp.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: [[1., 0., 0.]]

Caption generation example:

import open_clip
import torch
from PIL import Image

model, _, transform = open_clip.create_model_and_transforms('hf-hub:laion/openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k')

im = Image.open("docs/CLIP.png").convert("RGB")
im = transform(im).unsqueeze(0)

with torch.no_grad(), torch.amp.autocast('cuda'):
  generated = model.generate(im)

print(open_clip.decode(generated[0]).split("<end_of_text>")[0].replace("<start_of_text>", ""))

Acknowledgements#

We gratefully acknowledge the Gauss Centre for Supercomputing e.V. (www.gauss-centre.eu) for funding the work by providing computing time through the John von Neumann Institute for Computing (NIC) on the GCS Supercomputer JUWELS Booster at Jülich Supercomputing Centre (JSC). We also acknowledge storage resources on JUST granted and operated by JSC, as well as storage and computing resources from the Helmholtz Data Federation (HDF).

We gratefully acknowledge funding by the Federal Ministry of Education and Research of Germany (BMBF) under grant no. 01IS24085C (OPENHAFM), under the grant 16HPC117K (MINERVA) and under the grant no. 01IS22094B (WestAI - AI Service Center West), as well as co-funding by EU from EuroHPC Joint Undertaking programm under grant no. 101182737 (MINERVA) and from Digital Europe Programme under grant no. 101195233 (openEuroLLM).

Citation#

BibTeX:

Please cite:

Scaling laws for robust comparison of open foundation language-vision models and datasets

@article{nezhurina2025scaling,
  title={Scaling Laws for Robust Comparison of Open Foundation Language-Vision Models and Datasets},
  author={Marianna Nezhurina, Tomer Porian, Giovanni Pucceti, Tommie Kerssies, Romain Beaumont, Mehdi Cherti, Jenia Jitsev},
  journal={arXiv:2506.04598},
  url={https://arxiv.org/abs/2506.04598},
  year={2025}
}

DataComp

@article{gadre2023datacomp,
  title={Datacomp: In search of the next generation of multimodal datasets},
  author={Gadre, Samir Yitzhak and Ilharco, Gabriel and Fang, Alex and Hayase, Jonathan and Smyrnis, Georgios and Nguyen, Thao and Marten, Ryan and Wortsman, Mitchell and Ghosh, Dhruba and Zhang, Jieyu and others},
  journal={Advances in Neural Information Processing Systems},
  volume={36},
  pages={27092--27112},
  year={2023}
}

MaMMUT

@article{
kuo2023mammut,
title={Ma{MMUT}: A Simple Architecture for Joint Learning for MultiModal Tasks},
author={Weicheng Kuo and AJ Piergiovanni and Dahun Kim and xiyang luo and Benjamin Caine and Wei Li and Abhijit Ogale and Luowei Zhou and Andrew M. Dai and Zhifeng Chen and Claire Cui and Anelia Angelova},
journal={Transactions on Machine Learning Research},
issn={2835-8856},
year={2023},
url={https://openreview.net/forum?id=FqOG4osY7C},
}

Reproducible scaling laws for openCLIP

@inproceedings{Cherti2023,
  title={Reproducible scaling laws for contrastive language-image learning},
  author={Cherti, Mehdi and Beaumont, Romain and Wightman, Ross and Wortsman, Mitchell and Ilharco, Gabriel and Gordon, Cade and Schuhmann, Christoph and Schmidt, Ludwig and Jitsev, Jenia},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={2818--2829},
  year={2023}
}

OpenCLIP software

@software{ilharco_gabriel_2021_5143773,
  author       = {Ilharco, Gabriel and
                  Wortsman, Mitchell and
                  Wightman, Ross and
                  Gordon, Cade and
                  Carlini, Nicholas and
                  Taori, Rohan and
                  Dave, Achal and
                  Shankar, Vaishaal and
                  Namkoong, Hongseok and
                  Miller, John and
                  Hajishirzi, Hannaneh and
                  Farhadi, Ali and
                  Schmidt, Ludwig},
  title        = {OpenCLIP},
  month        = jul,
  year         = 2021,
  note         = {If you use this software, please cite it as below.},
  publisher    = {Zenodo},
  version      = {0.1},
  doi          = {10.5281/zenodo.5143773},
  url          = {https://doi.org/10.5281/zenodo.5143773}
}

CLIP benchmark software

@software{cherti_2025_15403103,
  author       = {Cherti, Mehdi and
                  Beaumont, Romain},
  title        = {CLIP benchmark},
  month        = may,
  year         = 2025,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.15403103},
  url          = {https://doi.org/10.5281/zenodo.15403103},
  swhid        = {swh:1:dir:8cf49a5dd06f59224844a1e767337a1d14ee56c2
                   ;origin=https://doi.org/10.5281/zenodo.15403102;vi
                   sit=swh:1:snp:dd153b26f702d614346bf814f723d59fef3d
                   77a2;anchor=swh:1:rel:cff2aeb98f42583b44fdab5374e9
                   fa71793f2cff;path=CLIP\\_benchmark-main
                  },
}

Files

16 files · 2.20 GBWeights 733 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 16 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md15.5 KB39330d144c929bf02bdddae6e21a7cef20df154c9f104b31027c14f8b71177d6
__init__.py87 B392d61941b9ad53964d9544ddce9e0c1f0c1d9c20639507d3034c1dddbd8f722
config.json5.36 KB2e50572697a6d8705c7b4955d8ec60a439c86084f1bab98e8b595ff09ab1a92e
configuration_mammut.py8.32 KBe102841c18f78b7abab589bf71630ddea096f723b611c5015583560b0fbb844f
merges.txt525 KB9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a
modeling_mammut.py53.2 KBa4e73efb40fc0de108a9020df0f174309bc08b2d96a4dfed0d1bc64cb433dd0a
open_clip_config.json767 B5aa9779068f061eec6c5b7ab1f961e097d3c10f4adb6fb28ec32793a8fd7358c
open_clip_model.safetensors733 MBa74a7f27a9f78b5b26565ed7bfc08ad9c42833504d557eefece5a725735b9b7e
open_clip_pytorch_model.bin733 MB99fc6216ba26e1e273a80d4de7a8b9e271d07ce9b8f35c13dab4ccf612b0ae7f
preprocessor_config.json315 B1b0242f82699c88f39f1979339cb2b9e5fb1ee1ad8298f545761540089222224
pytorch_model.bin733 MB701814a7ccabf32577aeb420eba06690faca88232617c90ff6efe0798258448b
special_tokens_map.json588 B2cdb3b8331a60c92fc1e55a13e9fd61fd2293c5a51275fdcccd62b780052530e
tokenizer.json3.64 MB43d4281659ce30b6aca2c7485944b3d73925bb7f87c7234daf3b6b094a6d618c
tokenizer_config.json736 B39bae5313c2da6467866dee758e754d69f0e302a875027b142531cb9c51c7c28
vocab.json862 KB5047b556ce86ccaf6aa22b3ffccfc52d391ea4accdab9c2f2407da5b742d4363
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
e82b8b7cb2 pinned now manifest updated, same commit2026-11-14 21:38 UTC16 files · 2.20 GB
e82b8b7cb22026-11-14 21:38 UTC16 files · 2.20 GB

Use it

$ fw get laion/openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k
# manifest sha256 abeece16f8a4… · 2.20 GB · 16 files
$ fw verify ./openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k laion/openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/laion/openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k.json --dir ./openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k $ python3 fw.py verify ./openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k ./laion__openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download laion/openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k --revision e82b8b7cb2985c87b88052adcbc2fe48958cb61f --local-dir ./openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
39330d144c929bf02bdddae6e21a7cef20df154c9f104b31027c14f8b71177d6
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: laion <huggingface.co/laion>Newsgroups: alt.freeweights.visionSubject: openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73kDate: 2026-11-14Commit: e82b8b7Signed: 2DC28CC7B26A283B ✓
Upstream
laion/openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k
Pinned commit
e82b8b7cb2985c87b88052adcbc2fe48958cb61f
Manifest
openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k.json · .minisig
Manifest sha256
abeece16f8a48845ceaaec451aae2cb92a7bd8dad8188d8d289c1a52a268bf2f
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:38 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/laion/openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k.json $ curl -O https://freeweights.allternit.com/manifests/laion/openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k.json.minisig $ minisign -Vm openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download laion/openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. openMaMMUT-ViT-B-32-512x512-pt_DFN2B-ft_DFN512x512-s293M-b73k.json. Provenance. Takedown history: none.
From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX