Add CLIP text encoder for Japanese
Browse files- config.json +26 -0
- output_linear.bin +3 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tokenizer_config.json +1 -0
- training_args.json +20 -0
- vocab.txt +0 -0
config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "sonoisa/clip-base-japanese",
|
3 |
+
"architectures": [
|
4 |
+
"BertModel"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 3072,
|
13 |
+
"layer_norm_eps": 1e-12,
|
14 |
+
"max_position_embeddings": 512,
|
15 |
+
"model_type": "bert",
|
16 |
+
"num_attention_heads": 12,
|
17 |
+
"num_hidden_layers": 12,
|
18 |
+
"pad_token_id": 0,
|
19 |
+
"position_embedding_type": "absolute",
|
20 |
+
"tokenizer_class": "BertJapaneseTokenizer",
|
21 |
+
"torch_dtype": "float32",
|
22 |
+
"transformers_version": "4.14.0",
|
23 |
+
"type_vocab_size": 2,
|
24 |
+
"use_cache": true,
|
25 |
+
"vocab_size": 32000
|
26 |
+
}
|
output_linear.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b9f70fed6ae69babf7903af298d9895f9769e00a00db96b1bd59c7ab764b84c8
|
3 |
+
size 4721639
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b9c467fa7d9e8dd2dfdbc19ba42889e66cfded819ee69a259ad46c6a990d26ce
|
3 |
+
size 442547953
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "do_lower_case": true, "do_word_tokenize": true, "do_subword_tokenize": true, "word_tokenizer_type": "mecab", "subword_tokenizer_type": "wordpiece", "never_split": null, "mecab_kwargs": null, "is_fast": true, "model_max_length": 512, "special_tokens_map_file": null, "tokenizer_file": null, "name_or_path": "sonoisa/clip-base-japanese", "tokenizer_class": "BertJapaneseTokenizer"}
|
training_args.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"adam_epsilon": 1e-08,
|
3 |
+
"data_dir": "/content/data",
|
4 |
+
"early_stop_callback": false,
|
5 |
+
"eval_batch_size": 8,
|
6 |
+
"fp_16": false,
|
7 |
+
"gradient_accumulation_steps": 4,
|
8 |
+
"learning_rate": 0.001,
|
9 |
+
"max_grad_norm": 1.0,
|
10 |
+
"max_input_length": 64,
|
11 |
+
"model_name_or_path": "cl-tohoku/bert-base-japanese-whole-word-masking",
|
12 |
+
"n_gpu": 1,
|
13 |
+
"num_train_epochs": 2,
|
14 |
+
"seed": 42,
|
15 |
+
"shuffle_buffer_size": 65536,
|
16 |
+
"tokenizer_name_or_path": "cl-tohoku/bert-base-japanese-whole-word-masking",
|
17 |
+
"train_batch_size": 256,
|
18 |
+
"warmup_ratio": 0.05,
|
19 |
+
"weight_decay": 0.0
|
20 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|