File size: 806 Bytes
26307ea
1f7b1b0
 
 
26307ea
1f7b1b0
 
 
 
 
 
 
 
 
 
26307ea
1f7b1b0
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
license: apache-2.0
library_name: keras
pipeline_tag: fill-mask
tags:
  - keras
  - kerasformers
  - tf
  - jax
  - pytorch
  - backend-agnostic
  - bert
  - fill-mask
base_model:
  - google-bert/bert-base-cased
---
# BERT (bert_base_cased)

A pure [Keras 3](https://keras.io) port of **BERT**, converted from [`google-bert/bert-base-cased`](https://huggingface.co/google-bert/bert-base-cased) (Hugging Face Transformers).

The weights are **backend-agnostic**: the same checkpoint loads and runs identically under the JAX, TensorFlow, or PyTorch Keras backend (`KERAS_BACKEND=jax|tensorflow|torch`), via [kerasformers](https://github.com/IMvision12/KerasFormers).

## Usage

```python
from kerasformers.models.bert import BertModel

model = BertModel.from_weights("kerasformers/bert_base_cased")
```