test_custom_model / configuration_bert.py
shmelev's picture
commit from alex
6bf47d6
raw
history blame
223 Bytes
from transformers import PretrainedConfig
from typing import List
class BertConfig(PretrainedConfig):
model_type="bert"
def __init__(
self,
**kwargs,
):
super().__init__(**kwargs)