versae commited on
Commit
51397e7
1 Parent(s): 9a40368

Starting from 512b for 10epochs

Browse files
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./",
3
+ "architectures": [
4
+ "RobertaForMaskedLM"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "roberta",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "pad_token_id": 1,
21
+ "position_embedding_type": "absolute",
22
+ "transformers_version": "4.16.0.dev0",
23
+ "type_vocab_size": 1,
24
+ "use_cache": true,
25
+ "vocab_size": 50265
26
+ }
eval_results.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "eval_accuracy": 0.732703958770086,
3
+ "eval_loss": 1.2010057153335871,
4
+ "eval_perplexity": 3.3234576948863452
5
+ }
flax_model.msgpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b973b8f46e005ee02f6ba580dbba6b3800f61749eae1eea4a455000847dc0578
3
+ size 498796983
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": false}}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>", "add_prefix_space": false, "errors": "replace", "sep_token": "</s>", "cls_token": "<s>", "pad_token": "<pad>", "mask_token": "<mask>", "trim_offsets": true, "special_tokens_map_file": null, "name_or_path": "./", "tokenizer_class": "RobertaTokenizer"}
train.128.sh ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ python run_mlm_flax.py \
2
+ --output_dir="./" \
3
+ --model_type="roberta" \
4
+ --config_name="roberta-base" \
5
+ --tokenizer_name="NbAiLab/nb-roberta-base" \
6
+ --dataset_name="NbAiLab/NCC" \
7
+ --max_seq_length="128" \
8
+ --weight_decay="0.01" \
9
+ --per_device_train_batch_size="232" \
10
+ --per_device_eval_batch_size="232" \
11
+ --pad_to_max_length \
12
+ --learning_rate="6e-4" \
13
+ --warmup_steps="10000" \
14
+ --overwrite_output_dir \
15
+ --num_train_epochs="3" \
16
+ --adam_beta1="0.9" \
17
+ --adam_beta2="0.98" \
18
+ --adam_epsilon="1e-6" \
19
+ --logging_steps="1000" \
20
+ --save_steps="1000" \
21
+ --eval_steps="1000" \
22
+ --do_train \
23
+ --do_eval \
24
+ --dtype="bfloat16" \
25
+ --push_to_hub
train.512.sh ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ python run_mlm_flax.py \
2
+ --output_dir="./" \
3
+ --model_type="roberta" \
4
+ --model_name_or_path="./" \
5
+ --config_name="./" \
6
+ --tokenizer_name="./" \
7
+ --dataset_name="NbAiLab/NCC" \
8
+ --max_seq_length="512" \
9
+ --weight_decay="0.01" \
10
+ --per_device_train_batch_size="46" \
11
+ --per_device_eval_batch_size="46" \
12
+ --pad_to_max_length \
13
+ --learning_rate="0.00015" \
14
+ --warmup_steps="1000" \
15
+ --overwrite_output_dir \
16
+ --num_train_epochs="10" \
17
+ --adam_beta1="0.9" \
18
+ --adam_beta2="0.98" \
19
+ --adam_epsilon="1e-6" \
20
+ --logging_steps="1000" \
21
+ --save_steps="1000" \
22
+ --eval_steps="1000" \
23
+ --do_train \
24
+ --do_eval \
25
+ --dtype="bfloat16" \
26
+ --push_to_hub
vocab.json ADDED
The diff for this file is too large to render. See raw diff