shabawak commited on
Commit
9533ab3
verified
1 Parent(s): a4e3716

Upload ColBERT fine-tuned checkpoint

Browse files
colbert/artifact.metadata ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "query_token_id": "[unused0]",
3
+ "doc_token_id": "[unused1]",
4
+ "query_token": "[Q]",
5
+ "doc_token": "[D]",
6
+ "ncells": null,
7
+ "centroid_score_threshold": null,
8
+ "ndocs": null,
9
+ "load_index_with_mmap": false,
10
+ "index_path": null,
11
+ "index_bsize": 64,
12
+ "nbits": 4,
13
+ "kmeans_niters": 4,
14
+ "resume": false,
15
+ "pool_factor": 1,
16
+ "clustering_mode": "hierarchical",
17
+ "protected_tokens": 0,
18
+ "similarity": "cosine",
19
+ "bsize": 16,
20
+ "accumsteps": 1,
21
+ "lr": 5e-6,
22
+ "maxsteps": 500000,
23
+ "save_every": 33,
24
+ "warmup": 33,
25
+ "warmup_bert": null,
26
+ "relu": false,
27
+ "nway": 2,
28
+ "use_ib_negatives": true,
29
+ "reranker": false,
30
+ "distillation_alpha": 1.0,
31
+ "ignore_scores": false,
32
+ "model_name": "ClinicalBERT-ColBERT",
33
+ "query_maxlen": 32,
34
+ "attend_to_mask_tokens": false,
35
+ "interaction": "colbert",
36
+ "dim": 128,
37
+ "doc_maxlen": 256,
38
+ "mask_punctuation": true,
39
+ "checkpoint": "medicalai\/ClinicalBERT",
40
+ "triples": "data\/triples.train.colbert.jsonl",
41
+ "collection": "data\/corpus.train.colbert.tsv",
42
+ "queries": "data\/queries.train.colbert.tsv",
43
+ "index_name": null,
44
+ "overwrite": false,
45
+ "root": ".ragatouille\/",
46
+ "experiment": "colbert",
47
+ "index_root": null,
48
+ "name": "2025-06\/14\/01.24.47",
49
+ "rank": 0,
50
+ "nranks": 2,
51
+ "amp": true,
52
+ "gpus": 2,
53
+ "avoid_fork_if_possible": false,
54
+ "meta": {
55
+ "hostname": "7d6ba65c9f2d",
56
+ "current_datetime": "Jun 14, 2025 ; 2:05AM UTC (+0000)",
57
+ "cmd": "\/usr\/local\/lib\/python3.11\/dist-packages\/colab_kernel_launcher.py -f \/root\/.local\/share\/jupyter\/runtime\/kernel-74d99a55-9600-475d-bed1-588f2bf3fd1a.json",
58
+ "version": "colbert-v0.4"
59
+ }
60
+ }
colbert/config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "medicalai/ClinicalBERT",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "HF_ColBERT"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "attention_probs_dropout_prob": 0.1,
9
+ "classifier_dropout": null,
10
+ "dim": 768,
11
+ "dropout": 0.1,
12
+ "hidden_act": "gelu",
13
+ "hidden_dim": 3072,
14
+ "hidden_dropout_prob": 0.1,
15
+ "hidden_size": 768,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "layer_norm_eps": 1e-12,
19
+ "max_position_embeddings": 512,
20
+ "model_type": "bert",
21
+ "n_heads": 12,
22
+ "n_layers": 6,
23
+ "num_attention_heads": 12,
24
+ "num_hidden_layers": 12,
25
+ "output_past": true,
26
+ "pad_token_id": 0,
27
+ "position_embedding_type": "absolute",
28
+ "qa_dropout": 0.1,
29
+ "seq_classif_dropout": 0.2,
30
+ "sinusoidal_pos_embds": false,
31
+ "tie_weights_": true,
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.49.0",
34
+ "type_vocab_size": 2,
35
+ "use_cache": true,
36
+ "vocab_size": 119547
37
+ }
colbert/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb83300b61f5bfef241583c15682e647454007402e1d69d003167191a39a6a67
3
+ size 711830440
colbert/special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
colbert/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
colbert/tokenizer_config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "full_tokenizer_file": null,
50
+ "mask_token": "[MASK]",
51
+ "model_max_length": 1000000000000000019884624838656,
52
+ "never_split": null,
53
+ "pad_token": "[PAD]",
54
+ "sep_token": "[SEP]",
55
+ "strip_accents": null,
56
+ "tokenize_chinese_chars": true,
57
+ "tokenizer_class": "DistilBertTokenizer",
58
+ "unk_token": "[UNK]"
59
+ }
colbert/vocab.txt ADDED
The diff for this file is too large to render. See raw diff