alt.freeweights.embed / BiomedVLP-BioViL-T
From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.embedSubject:

BiomedVLP-BioViL-T

Date: 2026-11-15Commit: 692f09eSigned: 2DC28CC7B26A283B ✓

Feature extraction model with 110M parameters. Safetensors weights, 992 MB in all. Published by microsoft under MIT.

110M params992MBBiomedVLP-BioViL-Tsafetensorspermissive
FactsParams110MSize992 MBFormatssafetensorsTaskfeature extractionLicenseMITFrom sourcepermissive
$ fw get microsoft/BiomedVLP-BioViL-T
# manifest sha256 35903bcf48b3… · 992 MB · 11 files
$ fw verify ./BiomedVLP-BioViL-T microsoft/BiomedVLP-BioViL-T
From sourceHosted (signed)microsoft/BiomedVLP-BioViL-TLast check: 2026-11-15 03:26 UTC

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

Works with

Evaluate with

Overview

Size
992 MB
Weights
441 MB (safetensors)
Parameters
110M
Formats
safetensors
Task
feature extraction
License
MIT (permissive)
Files
11, each with a sha256
Publisher
microsoft
Added
2026-11-15
Section
alt.freeweights.embed
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 03:26 UTCpassed

Model card

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

BioViL-T#

BioViL-T is a domain-specific vision-language model designed to analyze chest X-rays (CXRs) and radiology reports. It was trained using a temporal multi-modal pre-training procedure, which distinguishes it from its predecessor model (BioViL). In detail, BioViL-T takes advantage of the temporal structure between data points, resulting in improved downstream performance on multiple benchmarks, while using the same training dataset as its predecessor. In particular, the resultant model displays significant improvement in embedding temporal information present in the image and text modalities (see results), as well as in the joint space. The canonical model can be adapted to both single- and multi-image downstream applications including: natural language inference, phrase-grounding, image/text classification, and language decoding.

The corresponding BERT language model is trained in two stages: First, we pretrain CXR-BERT-general from a randomly initialized BERT model via Masked Language Modeling (MLM) on PubMed abstracts and clinical notes from the publicly-available MIMIC-III and MIMIC-CXR. The general model can be fine-tuned for research in other clinical domains by adjusting the parameters specific to the target domain. In the second stage, BioViL-T is continually pretrained from CXR-BERT-general using a multi-modal pre-training procedure by utilising radiology reports and sequences of chest X-rays. We utilise the latent representation of [CLS] token to align text and image embeddings.

Language model variations#

ModelModel identifier on HuggingFaceVocabularyNote
CXR-BERT-generalmicrosoft/BiomedVLP-CXR-BERT-generalPubMed & MIMICPretrained for biomedical literature and clinical domains
CXR-BERT-specializedmicrosoft/BiomedVLP-CXR-BERT-specializedPubMed & MIMICStatic pretraining for the CXR domain
BioViL-Tmicrosoft/BiomedVLP-BioViL-TPubMed & MIMICStatic & temporal pretraining for the CXR domain

Image model#

The image model is jointly trained with the text model in a multi-modal contrastive learning framework. It's a hybrid image encoder composed of a Vision Transformer and ResNet-50, where the latter is used as backbone network to extract features from images at each time point. The transformer is included in the design to aggregate and compare image features extracted across the temporal dimension. The corresponding model definition and its loading functions can be accessed through our HI-ML-Multimodal GitHub repository. The joint image and text model, namely BioViL-T, can be used in phrase grounding applications as shown in this python notebook example. Additionally, please check the MS-CXR benchmark for a more systematic evaluation of joint image and text models in phrase grounding tasks.

Citation#

The corresponding manuscript is accepted to be presented at the Conference on Computer Vision and Pattern Recognition (CVPR) 2023

@misc{https://doi.org/10.48550/arXiv.2301.04558,
  doi = {10.48550/ARXIV.2301.04558},
  url = {https://arxiv.org/abs/2301.04558},
  author = {Bannur, Shruthi and Hyland, Stephanie and Liu, Qianchu and Perez-Garcia, Fernando and Ilse, Maximilian and Castro, Daniel C and Boecking, Benedikt and Sharma, Harshita and Bouzid, Kenza and Thieme, Anja and Schwaighofer, Anton and Wetscherek, Maria and Lungren, Matthew P and Nori, Aditya and Alvarez-Valle, Javier and Oktay, Ozan}
  title = {Learning to Exploit Temporal Structure for Biomedical Vision–Language Processing},
  publisher = {arXiv},
  year = {2023},
}

Model Use#

Intended Use#

This model is intended to be used solely for (I) future research on visual-language processing and (II) reproducibility of the experimental results reported in the reference paper.

Primary Intended Use#

The primary intended use is to support AI researchers building on top of this work. CXR-BERT and its associated models should be helpful for exploring various clinical NLP & VLP research questions, especially in the radiology domain.

Out-of-Scope Use#

Any deployed use case of the model --- commercial or otherwise --- is currently out of scope. Although we evaluated the models using a broad set of publicly-available research benchmarks, the models and evaluations are not intended for deployed use cases. Under unprecedented conditions, the models may make inaccurate predictions and display limitations, which may require additional mitigation strategies. Therefore, we discourage use of the model for automated diagnosis or in a medical device. Please refer to the associated paper for more details.

How to use#

Here is how to use this model to extract radiological sentence embeddings and obtain their cosine similarity in the joint space (image and text):

import torch
from transformers import AutoModel, AutoTokenizer

# Load the model and tokenizer
url = "microsoft/BiomedVLP-BioViL-T"
tokenizer = AutoTokenizer.from_pretrained(url, trust_remote_code=True)
model = AutoModel.from_pretrained(url, trust_remote_code=True)

# Input text prompts describing findings.
# The order of prompts is adjusted to capture the spectrum from absence of a finding to its temporal progression.
text_prompts = ["No pleural effusion or pneumothorax is seen.",
                "There is no pneumothorax or pleural effusion.",
                "The extent of the pleural effusion is reduced.",
                "The extent of the pleural effusion remains constant.",
                "Interval enlargement of pleural effusion."]

# Tokenize and compute the sentence embeddings
with torch.no_grad():
    tokenizer_output = tokenizer.batch_encode_plus(batch_text_or_text_pairs=text_prompts,
                                                   add_special_tokens=True,
                                                   padding='longest',
                                                   return_tensors='pt')
    embeddings = model.get_projected_text_embeddings(input_ids=tokenizer_output.input_ids,
                                                 attention_mask=tokenizer_output.attention_mask)

    # Compute the cosine similarity of sentence embeddings obtained from input text prompts.
    sim = torch.mm(embeddings, embeddings.t())

Data#

This model builds upon existing publicly-available datasets:

These datasets reflect a broad variety of sources ranging from biomedical abstracts to intensive care unit notes to chest X-ray radiology notes. The radiology notes are accompanied with their associated chest x-ray DICOM images in MIMIC-CXR dataset.

Performance#

The presented model achieves state-of-the-art results in radiology natural language inference by leveraging semantics and discourse characteristics at training time more efficiently. The experiments were performed on the RadNLI and MS-CXR-T benchmarks, which measure the quality of text embeddings in terms of static and temporal semantics respectively. BioViL-T is benchmarked against other commonly used SOTA domain specific BERT models, including PubMedBERT and CXR-BERT. The results below show that BioViL-T has increased sensitivity of sentence embeddings to temporal content (MS-CXR-T) whilst better capturing the static content (RadNLI).

MS-CXR-TMS-CXR-TRadNLI (2 classes)RadNLI (2 classes)
AccuracyROC-AUCAccuracyROC-AUC
PubMedBERT)60.39.54281.38.727
CXR-BERT-General62.60.60187.59.902
CXR-BERT-Specialized)78.12.83789.66.932
BioViL-T87.77.93390.52.947

The novel pretraining framework yields also better vision-language representations. Below is the zero-shot phrase grounding performance obtained on the MS-CXR benchmark dataset, which evaluates the quality of image-text latent representations.

Vision–Language Pretraining MethodMS-CXR Phrase Grounding (Avg. CNR Score)MS-CXR Phrase Grounding (mIoU)
BioViL1.07 +- 0.040.229 +- 0.005
BioViL-L1.21 +- 0.050.202 +- 0.010
BioViL-T1.33 +- 0.040.240 +- 0.005

Additional experimental results and discussion can be found in the corresponding paper, "Learning to Exploit Temporal Structure for Biomedical Vision–Language Processing", CVPR'23.

Limitations#

This model was developed using English corpora, and thus can be considered English-only.

The training dataset contains only medical images and reports acquired from an intensive-care-unit (ICU), where longitudinal images are often collected within range of hours or at most few days. As a result, the models may show reduced performance in analyzing consecutive images acquired over longer periods of time (e.g. years) where significant anatomical variations are observed between the scans.

Further information#

Please refer to the corresponding paper, "Learning to Exploit Temporal Structure for Biomedical Vision–Language Processing", CVPR'23 for additional details on the model training and evaluation.

For additional inference pipelines with BioViL-T, please refer to the HI-ML GitHub repository. The associated source files will soon be accessible through this link.

Files

11 files · 992 MBWeights 441 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 11 files with their sha256
FileSizesha256
.gitattributes1.48 KBdb7c0371f46f0840b8f25794c1e3321c9b5820a8cb6ba9694a46fc64b8fae5a6
README.md12.7 KB24fd9534b62368919f5cdc144e473d1611fad4347994ac634a9e8dc1acfc4965
biovil_t_image_model_proj_size_128.pt110 MBb2399d73dc2a68b9f3a1950e864ae0ecd24093fb07aa459d7e65807ebdc0fb77
config.json803 B58a8ead5bdbe8b71e396cd094746779dc929954841282f94b6c100f0fe009a88
configuration_cxrbert.py888 B857366a973291d09ea8e19cfe749fc801e81fae9ae9ce0c9b462c7c26cb67e1f
model.safetensors441 MB70bed344872e0a4f4dca2352564c44f44cb7a9cfcac3d878be2dd08a5fff9aba
modeling_cxrbert.py5.88 KB88f0f0d1fcf6b5c91fd3bebeec0c3bfee271103db7c13c5229e3f4807cb17ac2
pytorch_model.bin441 MB6d86a8d760eaa09c9a55d57cc6f6bb01b0cbccb8b827fc775a79f37a8fbda76c
special_tokens_map.json112 B303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tokenizer_config.json741 B971d7e13339bf707b96ed1b2196371a84bf66f6cafcc9ac55feadd44d3031fd9
vocab.txt235 KBe025f479c3a7ce6e248971bfe1b409708db0439e9488d30e254f81f27f75d678
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
692f09e9be pinned now2026-11-15 03:26 UTC11 files · 992 MB

Use it

$ fw get microsoft/BiomedVLP-BioViL-T
# manifest sha256 35903bcf48b3… · 992 MB · 11 files
$ fw verify ./BiomedVLP-BioViL-T microsoft/BiomedVLP-BioViL-T
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/BiomedVLP-BioViL-T.json --dir ./BiomedVLP-BioViL-T $ python3 fw.py verify ./BiomedVLP-BioViL-T ./microsoft__BiomedVLP-BioViL-T.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/BiomedVLP-BioViL-T --revision 692f09e9be1bfe5fdd5f3efdd0e1eca7d2c10b23 --local-dir ./BiomedVLP-BioViL-T
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModel, AutoTokenizer tok = AutoTokenizer.from_pretrained("microsoft/BiomedVLP-BioViL-T", revision="692f09e9be1bfe5fdd5f3efdd0e1eca7d2c10b23") model = AutoModel.from_pretrained("microsoft/BiomedVLP-BioViL-T", revision="692f09e9be1bfe5fdd5f3efdd0e1eca7d2c10b23", device_map="auto")

License

Name
MIT License
Id
MIT
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
24fd9534b62368919f5cdc144e473d1611fad4347994ac634a9e8dc1acfc4965
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.embedSubject: BiomedVLP-BioViL-TDate: 2026-11-15Commit: 692f09eSigned: 2DC28CC7B26A283B ✓
Upstream
microsoft/BiomedVLP-BioViL-T
Pinned commit
692f09e9be1bfe5fdd5f3efdd0e1eca7d2c10b23
Manifest
BiomedVLP-BioViL-T.json · .minisig
Manifest sha256
35903bcf48b3f0746a6aebf0bad42b58253f8853efe33128bc9c2c7619308c5f
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:26 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/BiomedVLP-BioViL-T.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/BiomedVLP-BioViL-T.json.minisig $ minisign -Vm BiomedVLP-BioViL-T.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/BiomedVLP-BioViL-T
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. BiomedVLP-BioViL-T.json. Provenance. Takedown history: none.
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-MiniLM-L6-v1
From: unsloth <huggingface.co/unsloth>Subject: all-MiniLM-L6-v2
From: mlx-community <huggingface.co/mlx-community>Subject: all-MiniLM-L6-v2-4bit
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-mpnet-base-v1
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: allenai-specter
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: bert-base-nli-max-tokens