BidirLM / BidirLM-270M-Base

huggingface.co
Total runs: 157
24-hour runs: 0
7-day runs: -5
30-day runs: 96
Model's Last Updated: June 03 2026
fill-mask

Introduction of BidirLM-270M-Base

Model Details of BidirLM-270M-Base

BidirLM-270M-Base

BidirLM-270M-Base is the intermediate MNTP-adapted checkpoint of the BidirLM family. It is obtained by converting Gemma3-270M 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-270M weights.

For general embeddings and downstream fine-tuning, use BidirLM/BidirLM-270M-Embedding which adds contrastive training on top of this checkpoint.

Usage
from transformers import AutoTokenizer, AutoModel, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("BidirLM/BidirLM-270M-Base", trust_remote_code=True)

# Base encoder
model = AutoModel.from_pretrained("BidirLM/BidirLM-270M-Base", trust_remote_code=True)

# Masked language model
mlm = AutoModelForMaskedLM.from_pretrained("BidirLM/BidirLM-270M-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-270M-Base on huggingface.co

157
Total runs
0
24-hour runs
-10
3-day runs
-5
7-day runs
96
30-day runs

More Information About BidirLM-270M-Base huggingface.co Model

More BidirLM-270M-Base license Visit here:

https://choosealicense.com/licenses/apache-2.0

BidirLM-270M-Base huggingface.co

BidirLM-270M-Base huggingface.co is an AI model on huggingface.co that provides BidirLM-270M-Base's model effect (), which can be used instantly with this BidirLM BidirLM-270M-Base model. huggingface.co supports a free trial of the BidirLM-270M-Base model, and also provides paid use of the BidirLM-270M-Base. Support call BidirLM-270M-Base model through api, including Node.js, Python, http.

BidirLM-270M-Base huggingface.co Url

https://huggingface.co/BidirLM/BidirLM-270M-Base

BidirLM BidirLM-270M-Base online free

BidirLM-270M-Base huggingface.co is an online trial and call api platform, which integrates BidirLM-270M-Base's modeling effects, including api services, and provides a free online trial of BidirLM-270M-Base, you can try BidirLM-270M-Base online for free by clicking the link below.

BidirLM BidirLM-270M-Base online free url in huggingface.co:

https://huggingface.co/BidirLM/BidirLM-270M-Base

BidirLM-270M-Base install

BidirLM-270M-Base is an open source model from GitHub that offers a free installation service, and any user can find BidirLM-270M-Base on GitHub to install. At the same time, huggingface.co provides the effect of BidirLM-270M-Base install, users can directly use BidirLM-270M-Base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

BidirLM-270M-Base install url in huggingface.co:

https://huggingface.co/BidirLM/BidirLM-270M-Base

Url of BidirLM-270M-Base

BidirLM-270M-Base huggingface.co Url

Provider of BidirLM-270M-Base huggingface.co

BidirLM
ORGANIZATIONS

Other API from BidirLM

huggingface.co

Total runs: 12
Run Growth: 12
Growth Rate: 100.00%
Updated:April 14 2026