1 Star 0 Fork 471

周胜凯 / mindformers

forked from MindSpore / mindformers 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
bert_base_uncased.yaml 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
jiahongqian 提交于 2023-02-07 22:36 . fix bert api
model:
model_config:
type: BertConfig
use_one_hot_embeddings: False
num_labels: 1
dropout_prob: 0.1
batch_size: 128
seq_length: 128 #length of input sentence
vocab_size: 30522 #size of vocab
hidden_size: 768 #size of text feature
num_hidden_layers: 12 #model depth
num_attention_heads: 12 #number of attention heads
intermediate_size: 3072 #hidden_size*4
hidden_act: "gelu" #activation
post_layernorm_residual: True #select postlayernorm or prelayernorm
hidden_dropout_prob: 0.1
attention_probs_dropout_prob: 0.1
max_position_embeddings: 512
type_vocab_size: 2
initializer_range: 0.02
use_relative_positions: False
use_past: False
checkpoint_name_or_path: ""
arch:
type: BertForPreTraining
processor:
return_tensors: ms
tokenizer:
cls_token: '[CLS]'
do_basic_tokenize: True
do_lower_case: True
mask_token: '[MASK]'
pad_token: '[PAD]'
sep_token: '[SEP]'
type: BertTokenizer
unk_token: '[UNK]'
type: BertProcessor
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/zsk423200/mindformers.git
git@gitee.com:zsk423200/mindformers.git
zsk423200
mindformers
mindformers
r0.3

搜索帮助

344bd9b3 5694891 D2dac590 5694891