BidirLM-Omni is the omnimodal variant of the BidirLM family — a 2.5B bidirectional encoder that jointly embeds
text, images, and audio
into a shared representation space, enabling state-of-the-art embedding performance.
Supported Tasks
Multimodal embeddings
(via Sentence Transformers): cross-modal retrieval (text ↔ image, text ↔ audio), multimodal semantic similarity, clustering, and classification across text, image, and audio modalities.
Supported Languages
Multilingual support across over 119 languages, inherited from the Qwen3 base model and reinforced through contrastive training with 87 languages.
Usage
Sentence Transformers
Pass text strings,
PIL.Image
objects, or audio dicts (with
"array"
and
"sampling_rate"
keys) directly to
encode()
. All modalities produce embeddings in the same 2048-dimensional space and can be compared cross-modally.
import numpy as np
import PIL.Image
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("BidirLM/BidirLM-Omni-2.5B-Embedding", trust_remote_code=True)
Inputs
Text queries
texts = [
"An image with a red background.",
"An image with a blue background.",
"A deep bass sound.",
"A high-pitched sound.",
]
Optional dependency for audio inputs at non-native sample rates:
librosa>=0.10.0
FAQ
1. What pooling strategy does this model use?
The model uses
mean pooling
across all modalities. This is handled automatically when using Sentence Transformers.
2. Do I need
trust_remote_code=True
?
Yes. BidirLM-Omni uses a custom bidirectional omnimodal architecture that requires loading custom code from the repository.
3. Can I compare embeddings across modalities?
Yes. Text, image, and audio embeddings live in the same 2048-dimensional space and can be compared directly using cosine similarity.
4. What audio formats and sample rates are supported?
Any sample rate is accepted — the model resamples internally using
librosa
when the source rate differs from the native rate. Any audio format readable by standard libraries (WAV, MP3, FLAC, etc.) can be used by loading it into a NumPy array first.
Citation
@misc{boizard2026bidirlmtextomnimodalbidirectional,
title={BidirLM: From Text to Omnimodal Bidirectional Encoders by Adapting and Composing Causal LLMs},
author={Nicolas Boizard and Théo Deschamps-Berger and Hippolyte Gisserot-Boukhlef and Céline Hudelot and Pierre Colombo},
year={2026},
eprint={2604.02045},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2604.02045},
}
Runs of BidirLM omni-st5.4 on huggingface.co
12
Total runs
0
24-hour runs
12
3-day runs
12
7-day runs
12
30-day runs
More Information About omni-st5.4 huggingface.co Model
omni-st5.4 huggingface.co is an AI model on huggingface.co that provides omni-st5.4's model effect (), which can be used instantly with this BidirLM omni-st5.4 model. huggingface.co supports a free trial of the omni-st5.4 model, and also provides paid use of the omni-st5.4. Support call omni-st5.4 model through api, including Node.js, Python, http.
omni-st5.4 huggingface.co is an online trial and call api platform, which integrates omni-st5.4's modeling effects, including api services, and provides a free online trial of omni-st5.4, you can try omni-st5.4 online for free by clicking the link below.
BidirLM omni-st5.4 online free url in huggingface.co:
omni-st5.4 is an open source model from GitHub that offers a free installation service, and any user can find omni-st5.4 on GitHub to install. At the same time, huggingface.co provides the effect of omni-st5.4 install, users can directly use omni-st5.4 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.