Splend1dchan
commited on
Commit
•
983365c
1
Parent(s):
309f51a
Upload README.md
Browse files
README.md
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
python run_squad.py \
|
2 |
+
--model_name_or_path google/canine-c \
|
3 |
+
--do_train \
|
4 |
+
--do_eval \
|
5 |
+
--per_gpu_train_batch_size 1 \
|
6 |
+
--per_gpu_eval_batch_size 1 \
|
7 |
+
--gradient_accumulation_steps 128 \
|
8 |
+
--learning_rate 3e-5 \
|
9 |
+
--num_train_epochs 3 \
|
10 |
+
--max_seq_length 1024 \
|
11 |
+
--doc_stride 128 \
|
12 |
+
--max_answer_length 240 \
|
13 |
+
--output_dir canine-c-squad \
|
14 |
+
--model_type bert
|
15 |
+
|
16 |
+
{
|
17 |
+
"_name_or_path": "google/canine-c",
|
18 |
+
"architectures": [
|
19 |
+
"CanineForQuestionAnswering"
|
20 |
+
],
|
21 |
+
"attention_probs_dropout_prob": 0.1,
|
22 |
+
"bos_token_id": 57344,
|
23 |
+
"downsampling_rate": 4,
|
24 |
+
"eos_token_id": 57345,
|
25 |
+
"hidden_act": "gelu",
|
26 |
+
"hidden_dropout_prob": 0.1,
|
27 |
+
"hidden_size": 768,
|
28 |
+
"initializer_range": 0.02,
|
29 |
+
"intermediate_size": 3072,
|
30 |
+
"layer_norm_eps": 1e-12,
|
31 |
+
"local_transformer_stride": 128,
|
32 |
+
"max_position_embeddings": 16384,
|
33 |
+
"model_type": "canine",
|
34 |
+
"num_attention_heads": 12,
|
35 |
+
"num_hash_buckets": 16384,
|
36 |
+
"num_hash_functions": 8,
|
37 |
+
"num_hidden_layers": 12,
|
38 |
+
"pad_token_id": 0,
|
39 |
+
"torch_dtype": "float32",
|
40 |
+
"transformers_version": "4.19.0.dev0",
|
41 |
+
"type_vocab_size": 16,
|
42 |
+
"upsampling_kernel_size": 4,
|
43 |
+
"use_cache": true
|
44 |
+
}
|
45 |
+
|
46 |
+
{'exact': 58.893093661305585, 'f1': 72.18823344945899}
|