alt.freeweights.vision / beit-large-finetuned-ade-640-640
From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.visionSubject:

beit-large-finetuned-ade-640-640

Date: 2026-11-15Commit: a38fe98Signed: 2DC28CC7B26A283B ✓

Image segmentation model with 503M parameters. Safetensors weights, 4.51 GB in all. Published by microsoft under Apache-2.0.

503M params4.51GBbeit-large-finetuned-ade-640-640safetensorspermissive
FactsParams503MSize4.51 GBFormatssafetensorsTaskimage segmentationLicenseApache-2.0From sourcepermissive
$ fw get microsoft/beit-large-finetuned-ade-640-640
# manifest sha256 e7c069b86156… · 4.51 GB · 6 files
$ fw verify ./beit-large-finetuned-ade-640-640 microsoft/beit-large-finetuned-ade-640-640
From sourceHosted (signed)microsoft/beit-large-finetuned-ade-640-640Last check: 2026-11-15 02:44 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
4.51 GB
Weights
2.26 GB (safetensors)
Parameters
503M
Formats
safetensors
Task
image segmentation
License
Apache-2.0 (permissive)
Files
6, each with a sha256
Publisher
microsoft
Added
2026-11-15
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-15 02:44 UTCpassed

Model card

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

BEiT (large-sized model, fine-tuned on ADE20k)#

BEiT model pre-trained in a self-supervised fashion on ImageNet-21k (14 million images, 21,841 classes) at resolution 224x224, and fine-tuned on ADE20k (an important benchmark for semantic segmentation of images) at resolution 640x640. It was introduced in the paper BEIT: BERT Pre-Training of Image Transformers by Hangbo Bao, Li Dong and Furu Wei and first released in this repository.

Disclaimer: The team releasing BEiT did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description#

The BEiT model is a Vision Transformer (ViT), which is a transformer encoder model (BERT-like). In contrast to the original ViT model, BEiT is pretrained on a large collection of images in a self-supervised fashion, namely ImageNet-21k, at a resolution of 224x224 pixels. The pre-training objective for the model is to predict visual tokens from the encoder of OpenAI's DALL-E's VQ-VAE, based on masked patches. Next, the model was fine-tuned in a supervised fashion on ImageNet (also referred to as ILSVRC2012), a dataset comprising 1 million images and 1,000 classes, also at resolution 224x224.

Images are presented to the model as a sequence of fixed-size patches (resolution 16x16), which are linearly embedded. Contrary to the original ViT models, BEiT models do use relative position embeddings (similar to T5) instead of absolute position embeddings, and perform classification of images by mean-pooling the final hidden states of the patches, instead of placing a linear layer on top of the final hidden state of the [CLS] token.

By pre-training the model, it learns an inner representation of images that can then be used to extract features useful for downstream tasks: for semantic segmentation, one can just add one of the decode heads available in the mmseg library for example, and fine-tune the model in a supervised fashion on annotated images. This is what the authors did: they fine-tuned BEiT with an UperHead segmentation decode head, allowing it to obtain SOTA results on important benchmarks such as ADE20k and CityScapes.

Intended uses & limitations#

You can use the raw model for semantic segmentation of images. See the model hub to look for fine-tuned versions on a task that interests you.

How to use#

Here is how to use this model for semantic segmentation:

from transformers import BeitFeatureExtractor, BeitForSemanticSegmentation
from datasets import load_dataset
from PIL import Image

# load ADE20k image
ds = load_dataset("hf-internal-testing/fixtures_ade20k", split="test")

feature_extractor = BeitFeatureExtractor.from_pretrained('microsoft/beit-large-finetuned-ade-640-640')
model = BeitForSemanticSegmentation.from_pretrained('microsoft/beit-large-finetuned-ade-640-640')

inputs = feature_extractor(images=image, return_tensors="pt")
outputs = model(**inputs)
# logits are of shape (batch_size, num_labels, height/4, width/4)
logits = outputs.logits

Currently, both the feature extractor and model support PyTorch.

Training data#

This BEiT model was pretrained on ImageNet-21k, a dataset consisting of 14 million images and 21k classes, and fine-tuned on ADE20k, a dataset consisting of thousands of annotated images and 150 classes.

Training procedure#

Preprocessing#

The exact details of preprocessing of images during training/validation can be found here.

Images are cropped and padded to the same resolution (640x640) and normalized across the RGB channels with the ImageNet mean and standard deviation.

Pretraining#

For all pre-training related hyperparameters, we refer to page 15 of the original paper.

Evaluation results#

For evaluation results on several image classification benchmarks, we refer to tables 1 and 2 of the original paper. Note that for fine-tuning, the best results are obtained with a higher resolution (384x384). Of course, increasing the model size will result in better performance.

BibTeX entry and citation info#
  author    = {Hangbo Bao and
               Li Dong and
               Furu Wei},
  title     = {BEiT: {BERT} Pre-Training of Image Transformers},
  journal   = {CoRR},
  volume    = {abs/2106.08254},
  year      = {2021},
  url       = {https://arxiv.org/abs/2106.08254},
  archivePrefix = {arXiv},
  eprint    = {2106.08254},
  timestamp = {Tue, 29 Jun 2021 16:55:04 +0200},
  biburl    = {https://dblp.org/rec/journals/corr/abs-2106-08254.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
}

Files

6 files · 4.51 GBWeights 2.26 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 6 files with their sha256
FileSizesha256
.gitattributes1.23 KB98ccb431c012ebfe976280fbd45aea4cec7409935868ccecf3954370f96732a1
README.md5.40 KBbd1fac542d8a8c56eccf06ecfdceeb5c656a8795dcc60ee02446649c6551c703
config.json6.97 KB571891bb54d2fc78c519d06cf426d6041ca274e51257f7edc87eaa5b5313ba79
model.safetensors2.26 GB49a9dfc6b9d1ee8880886869a6637fe9558fce030e272ecc1cc6b28c408e00be
preprocessor_config.json276 Bb96d45f026df0566e5d27b68c71c2b93102cc06bdd332048c377025d71592fc4
pytorch_model.bin2.26 GB476d8d77e1e24b28ffb98bd29253db81eef38008e1193db87ab392890c16311a
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
a38fe98baf pinned now2026-11-15 02:44 UTC6 files · 4.51 GB

Use it

$ fw get microsoft/beit-large-finetuned-ade-640-640
# manifest sha256 e7c069b86156… · 4.51 GB · 6 files
$ fw verify ./beit-large-finetuned-ade-640-640 microsoft/beit-large-finetuned-ade-640-640
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/beit-large-finetuned-ade-640-640.json --dir ./beit-large-finetuned-ade-640-640 $ python3 fw.py verify ./beit-large-finetuned-ade-640-640 ./microsoft__beit-large-finetuned-ade-640-640.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/beit-large-finetuned-ade-640-640 --revision a38fe98baf3d5a6f69fa1a07a62b698780e5dcb1 --local-dir ./beit-large-finetuned-ade-640-640

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-15
Text in
README.md
Text sha256
bd1fac542d8a8c56eccf06ecfdceeb5c656a8795dcc60ee02446649c6551c703
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: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.visionSubject: beit-large-finetuned-ade-640-640Date: 2026-11-15Commit: a38fe98Signed: 2DC28CC7B26A283B ✓
Upstream
microsoft/beit-large-finetuned-ade-640-640
Pinned commit
a38fe98baf3d5a6f69fa1a07a62b698780e5dcb1
Manifest
beit-large-finetuned-ade-640-640.json · .minisig
Manifest sha256
e7c069b8615661e02d41aec610538632a519b9ad5d70143008945e16a9d401ca
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:44 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/beit-large-finetuned-ade-640-640.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/beit-large-finetuned-ade-640-640.json.minisig $ minisign -Vm beit-large-finetuned-ade-640-640.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 microsoft/beit-large-finetuned-ade-640-640
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. beit-large-finetuned-ade-640-640.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