Make BLIP working without extra downloading.

This commit is contained in:
Kohya S
2022-12-19 21:58:41 +09:00
parent 5f7693be04
commit 7cca345345
5 changed files with 1525 additions and 6 deletions

22
finetune/med_config.json Normal file
View File

@@ -0,0 +1,22 @@
{
"architectures": [
"BertModel"
],
"attention_probs_dropout_prob": 0.1,
"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,
"type_vocab_size": 2,
"vocab_size": 30524,
"encoder_width": 768,
"add_cross_attention": true
}