Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple_lm_finetuning #3

Open
ymmuyu opened this issue Dec 4, 2020 · 1 comment
Open

simple_lm_finetuning #3

ymmuyu opened this issue Dec 4, 2020 · 1 comment

Comments

@ymmuyu
Copy link

ymmuyu commented Dec 4, 2020

您好,我想问一下simple_lm_finetuning代码跑完以后是只有pytorch_model.bin文件吗,那个bert_config.json文件是怎么获取的呢

@yao8839836
Copy link
Owner

yao8839836 commented Dec 29, 2020

@ymmuyu

您好,

这是bert_config.json的内容,应该和标准BERT模型的bert_config.json一样

{
"attention_probs_dropout_prob": 0.1,
"directionality": "bidi",
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"initializer_range": 0.02,
"intermediate_size": 3072,
"max_position_embeddings": 512,
"num_attention_heads": 12,
"num_hidden_layers": 12,
"pooler_fc_size": 768,
"pooler_num_attention_heads": 12,
"pooler_num_fc_layers": 3,
"pooler_size_per_head": 128,
"pooler_type": "first_token_transform",
"type_vocab_size": 2,
"vocab_size": 21128
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants