BidirLM-1B-Base is the intermediate MNTP-adapted checkpoint of the BidirLM family. It is obtained by converting
Gemma3-1B
from causal to bidirectional attention and training with Masked Next Token Prediction (MNTP) on 30B tokens from a multi-domain corpus (FineWeb-Edu, FineWeb2-HQ, FineMath, Stack V2), then merged 50/50 with the original Gemma3-1B weights.
For general embeddings and downstream fine-tuning, use
BidirLM/BidirLM-1B-Embedding
which adds contrastive training on top of this checkpoint.
Usage
from transformers import AutoTokenizer, AutoModel, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("BidirLM/BidirLM-1B-Base", trust_remote_code=True)
# Base encoder
model = AutoModel.from_pretrained("BidirLM/BidirLM-1B-Base", trust_remote_code=True)
# Masked language model
mlm = AutoModelForMaskedLM.from_pretrained("BidirLM/BidirLM-1B-Base", trust_remote_code=True)
Requirements
transformers>=4.57.6,<5.0.0
This model requires
trust_remote_code=True
.
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 BidirLM-1B-Base on huggingface.co
99
Total runs
3
24-hour runs
4
3-day runs
7
7-day runs
1
30-day runs
More Information About BidirLM-1B-Base huggingface.co Model
BidirLM-1B-Base huggingface.co is an AI model on huggingface.co that provides BidirLM-1B-Base's model effect (), which can be used instantly with this BidirLM BidirLM-1B-Base model. huggingface.co supports a free trial of the BidirLM-1B-Base model, and also provides paid use of the BidirLM-1B-Base. Support call BidirLM-1B-Base model through api, including Node.js, Python, http.
BidirLM-1B-Base huggingface.co is an online trial and call api platform, which integrates BidirLM-1B-Base's modeling effects, including api services, and provides a free online trial of BidirLM-1B-Base, you can try BidirLM-1B-Base online for free by clicking the link below.
BidirLM BidirLM-1B-Base online free url in huggingface.co:
BidirLM-1B-Base is an open source model from GitHub that offers a free installation service, and any user can find BidirLM-1B-Base on GitHub to install. At the same time, huggingface.co provides the effect of BidirLM-1B-Base install, users can directly use BidirLM-1B-Base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.