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

Config of KoBERT #51

Closed
minhson-kaist opened this issue Apr 19, 2021 · 2 comments
Closed

Config of KoBERT #51

minhson-kaist opened this issue Apr 19, 2021 · 2 comments
Labels
question Further information is requested

Comments

@minhson-kaist
Copy link

Hi,

Thanks for releasing the model. I want to ask how I can get the config file of KoBert. For example, the config of BERT is like:

BertConfig {
"architectures": [
"BertForMaskedLM"
],
"attention_probs_dropout_prob": 0.1,
"gradient_checkpointing": false,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"initializer_range": 0.02,
"intermediate_size": 3072,
"layer_norm_eps": 1e-12,
"max_position_embeddings": 512,
"model_type": "bert",
"num_attention_heads": 12,
"num_hidden_layers": 12,
"pad_token_id": 0,
"position_embedding_type": "absolute",
"transformers_version": "4.5.1",
"type_vocab_size": 2,
"use_cache": true,
"vocab_size": 30522
}

@haven-jeon
Copy link
Collaborator

You can check the config with the following code.

model, vocab  = get_pytorch_kobert_model()
model.config

@haven-jeon haven-jeon added the question Further information is requested label May 18, 2021
@minhson-kaist
Copy link
Author

You can check the config with the following code.

model, vocab  = get_pytorch_kobert_model()
model.config

Thanks for your answer!

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

No branches or pull requests

2 participants