heruberuto commited on
Commit
498fa51
1 Parent(s): 76f3b7f

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
calibrate.config.py/config.orig.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from datetime import datetime
2
+ from pathlib import Path
3
+
4
+ def config():
5
+ LANG = "sum_cs_en_pl_sk"
6
+ LANG_SHORT = "sum_cs_en_pl_sk"
7
+
8
+ DATE = "20230801"
9
+ WIKI_ROOT = f"/mnt/data/factcheck/wiki/{LANG_SHORT}/{DATE}"
10
+ QACG_ROOT = f"{WIKI_ROOT}/qacg"
11
+
12
+ NLI_DIR = Path("nli")
13
+ NLI_ROOT = Path(QACG_ROOT, NLI_DIR)
14
+
15
+ MODEL_ROOT = "/home/drchajan/devel/python/FC/Zero-shot-Fact-Verification/experiments/nli/"
16
+ MODEL_NAME = Path(MODEL_ROOT, "deepset/xlm-roberta-large-squad2_sum_cs_en_pl_sk-20230801_balanced_lr1e-6/checkpoint-321184")
17
+ MAX_LENGTH = 512
18
+
19
+ DATESTR = datetime.now().strftime("%y%m%d_%H%M%S")
20
+ NOTE = f"Calibrates sum language NLI model."
21
+
22
+ return {
23
+ "lang": LANG,
24
+ "lang_short": LANG_SHORT,
25
+ "wiki_root": WIKI_ROOT,
26
+ "nli_root": NLI_ROOT,
27
+ "model_name": MODEL_NAME,
28
+ "max_length": MAX_LENGTH,
29
+ "epochs": 50,
30
+ "split": str(Path(NLI_ROOT, "dev_balanced.jsonl")),
31
+ "note": NOTE,
32
+ "date": DATESTR,
33
+ }
calibrate.config.py/config.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ { 'lang': 'sum_cs_en_pl_sk',
2
+ 'lang_short': 'sum_cs_en_pl_sk',
3
+ 'wiki_root': '/mnt/data/factcheck/wiki/sum_cs_en_pl_sk/20230801',
4
+ 'nli_root': PosixPath('/mnt/data/factcheck/wiki/sum_cs_en_pl_sk/20230801/qacg/nli'),
5
+ 'model_name': PosixPath('/home/drchajan/devel/python/FC/Zero-shot-Fact-Verification/experiments/nli/deepset/xlm-roberta-large-squad2_sum_cs_en_pl_sk-20230801_balanced_lr1e-6/checkpoint-321184'),
6
+ 'max_length': 512,
7
+ 'epochs': 50,
8
+ 'split': '/mnt/data/factcheck/wiki/sum_cs_en_pl_sk/20230801/qacg/nli/dev_balanced.jsonl',
9
+ 'note': 'Calibrates sum language NLI model.',
10
+ 'date': '230925_180021'}
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/home/drchajan/devel/python/FC/Zero-shot-Fact-Verification/experiments/nli/deepset/xlm-roberta-large-squad2_sum_cs_en_pl_sk-20230801_balanced_lr1e-6/checkpoint-321184",
3
+ "architectures": [
4
+ "XLMRobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "finetuning_task": "text-classification",
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 1024,
15
+ "id2label": {
16
+ "0": "n",
17
+ "1": "r",
18
+ "2": "s"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 4096,
22
+ "label2id": {
23
+ "n": 0,
24
+ "r": 1,
25
+ "s": 2
26
+ },
27
+ "language": "english",
28
+ "layer_norm_eps": 1e-05,
29
+ "max_position_embeddings": 514,
30
+ "model_type": "xlm-roberta",
31
+ "name": "XLMRoberta",
32
+ "num_attention_heads": 16,
33
+ "num_hidden_layers": 24,
34
+ "output_past": true,
35
+ "pad_token_id": 1,
36
+ "position_embedding_type": "absolute",
37
+ "problem_type": "single_label_classification",
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.32.0.dev0",
40
+ "type_vocab_size": 1,
41
+ "use_cache": true,
42
+ "vocab_size": 250002
43
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:659cb3be4b4aa1c00ea91f88a6aa724b325a698cc24b0819283e8f3a6f2cb8b5
3
+ size 2239709617
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
special_tokens_map.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": "<mask>",
6
+ "pad_token": "<pad>",
7
+ "sep_token": "</s>",
8
+ "unk_token": "<unk>"
9
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ca5f734b9407eb910ec87ecf2a0325a7c5c3436836ba12c600b0ce787b8c3a6
3
+ size 17082983
tokenizer_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "clean_up_tokenization_spaces": true,
4
+ "cls_token": "<s>",
5
+ "do_lower_case": false,
6
+ "eos_token": "</s>",
7
+ "full_tokenizer_file": null,
8
+ "mask_token": {
9
+ "__type": "AddedToken",
10
+ "content": "<mask>",
11
+ "lstrip": true,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "model_max_length": 512,
17
+ "pad_token": "<pad>",
18
+ "sep_token": "</s>",
19
+ "sp_model_kwargs": {},
20
+ "tokenizer_class": "XLMRobertaTokenizer",
21
+ "unk_token": "<unk>"
22
+ }