GitHub - arnavw/modernbert-flax

· GitHub

1 min read Original article ↗

Repository files navigation

ModernBERT in JAX/Flax

A minimal implementation of ModernBERT in Flax NNX. Produces equivalent outputs to the PyTorch reference.

modeling.py is the NNX implementation hub.py loads and converts weights from HF

Usage

from hub import from_pretrained

model = from_pretrained("answerdotai/ModernBERT-base")

Tests

uv run --group test pytest tests/ -x -v

About

No description, website, or topics provided.

Resources

Readme

Activity

Stars

4 stars

Watchers

0 watching

Forks

0 forks

Releases

Packages

Contributors

Languages