antoinelouis
commited on
Commit
•
cb16512
1
Parent(s):
bbcc8e6
Upload folder using huggingface_hub
Browse files- added_tokens.json +3 -0
- artifact.metadata +58 -0
- config.json +28 -0
- model.safetensors +3 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +20 -0
- tokenizer.json +0 -0
- tokenizer_config.json +83 -0
added_tokens.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<unk>NOTUSED": 32005
|
3 |
+
}
|
artifact.metadata
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"nbits": 1,
|
12 |
+
"kmeans_niters": 4,
|
13 |
+
"resume": false,
|
14 |
+
"similarity": "cosine",
|
15 |
+
"bsize": 64,
|
16 |
+
"accumsteps": 1,
|
17 |
+
"lr": 3e-6,
|
18 |
+
"maxsteps": 200000,
|
19 |
+
"save_every": null,
|
20 |
+
"warmup": null,
|
21 |
+
"warmup_bert": null,
|
22 |
+
"relu": false,
|
23 |
+
"nway": 2,
|
24 |
+
"use_ib_negatives": true,
|
25 |
+
"reranker": false,
|
26 |
+
"distillation_alpha": 1.0,
|
27 |
+
"ignore_scores": true,
|
28 |
+
"model_name": "camembert-base",
|
29 |
+
"query_maxlen": 32,
|
30 |
+
"attend_to_mask_tokens": true,
|
31 |
+
"interaction": "colbert",
|
32 |
+
"dim": 128,
|
33 |
+
"doc_maxlen": 256,
|
34 |
+
"mask_punctuation": true,
|
35 |
+
"checkpoint": "camembert-base",
|
36 |
+
"triples": "data\/mmarco\/triples.train.ids.small.jsonl",
|
37 |
+
"collection": "data\/mmarco\/french_collection.tsv",
|
38 |
+
"queries": "data\/mmarco\/french_queries.train.tsv",
|
39 |
+
"index_name": null,
|
40 |
+
"overwrite": false,
|
41 |
+
"root": "output\/training",
|
42 |
+
"experiment": "mmarco",
|
43 |
+
"index_root": null,
|
44 |
+
"name": "2023-12\/21\/15.44.53",
|
45 |
+
"rank": 0,
|
46 |
+
"nranks": 1,
|
47 |
+
"amp": true,
|
48 |
+
"gpus": 1,
|
49 |
+
"meta": {
|
50 |
+
"hostname": "jupyterlab-gpu-2-4-jgfkq",
|
51 |
+
"git_branch": "main",
|
52 |
+
"git_hash": "49363ffb7f6ca212ff2780edb86b485d0379e836",
|
53 |
+
"git_commit_datetime": "2023-12-21 19:32:07+01:00",
|
54 |
+
"current_datetime": "Dec 22, 2023 ; 12:53PM CET (+0100)",
|
55 |
+
"cmd": "src\/training\/colbertv1.py --dataset mmarco --language french --nway 2 --model_name camembert-base --dim 128 --similarity cosine --doc_maxlen 256 --query_maxlen 32 --mask_punctuation --attend_to_mask_tokens --maxsteps 200000 --lr 3e-6 --bsize 64 --accumsteps 1 --use_ib_negatives --ignore_scores --distillation_alpha 1.0 --nbits 1 --kmeans_niters 4 --data_dir data --output_dir output\/training",
|
56 |
+
"version": "colbert-v0.4"
|
57 |
+
}
|
58 |
+
}
|
config.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "camembert-base",
|
3 |
+
"architectures": [
|
4 |
+
"HF_ColBERT"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 5,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 6,
|
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": "camembert",
|
18 |
+
"num_attention_heads": 12,
|
19 |
+
"num_hidden_layers": 12,
|
20 |
+
"output_past": true,
|
21 |
+
"pad_token_id": 1,
|
22 |
+
"position_embedding_type": "absolute",
|
23 |
+
"torch_dtype": "float32",
|
24 |
+
"transformers_version": "4.36.2",
|
25 |
+
"type_vocab_size": 1,
|
26 |
+
"use_cache": true,
|
27 |
+
"vocab_size": 32005
|
28 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:054acd780709dd9647983ad3ce71490d9ab9e15905cb495c97f39a28ad548f96
|
3 |
+
size 442905080
|
sentencepiece.bpe.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:988bc5a00281c6d210a5d34bd143d0363741a432fefe741bf71e61b1869d4314
|
3 |
+
size 810912
|
special_tokens_map.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<s>NOTUSED",
|
4 |
+
"</s>NOTUSED",
|
5 |
+
"<unk>NOTUSED"
|
6 |
+
],
|
7 |
+
"bos_token": "<s>",
|
8 |
+
"cls_token": "<s>",
|
9 |
+
"eos_token": "</s>",
|
10 |
+
"mask_token": {
|
11 |
+
"content": "<mask>",
|
12 |
+
"lstrip": true,
|
13 |
+
"normalized": false,
|
14 |
+
"rstrip": false,
|
15 |
+
"single_word": false
|
16 |
+
},
|
17 |
+
"pad_token": "<pad>",
|
18 |
+
"sep_token": "</s>",
|
19 |
+
"unk_token": "<unk>"
|
20 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<s>NOTUSED",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<pad>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>NOTUSED",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"4": {
|
28 |
+
"content": "<unk>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"5": {
|
36 |
+
"content": "<s>",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
},
|
43 |
+
"6": {
|
44 |
+
"content": "</s>",
|
45 |
+
"lstrip": false,
|
46 |
+
"normalized": false,
|
47 |
+
"rstrip": false,
|
48 |
+
"single_word": false,
|
49 |
+
"special": true
|
50 |
+
},
|
51 |
+
"32004": {
|
52 |
+
"content": "<mask>",
|
53 |
+
"lstrip": true,
|
54 |
+
"normalized": false,
|
55 |
+
"rstrip": false,
|
56 |
+
"single_word": false,
|
57 |
+
"special": true
|
58 |
+
},
|
59 |
+
"32005": {
|
60 |
+
"content": "<unk>NOTUSED",
|
61 |
+
"lstrip": false,
|
62 |
+
"normalized": false,
|
63 |
+
"rstrip": false,
|
64 |
+
"single_word": false,
|
65 |
+
"special": true
|
66 |
+
}
|
67 |
+
},
|
68 |
+
"additional_special_tokens": [
|
69 |
+
"<s>NOTUSED",
|
70 |
+
"</s>NOTUSED",
|
71 |
+
"<unk>NOTUSED"
|
72 |
+
],
|
73 |
+
"bos_token": "<s>",
|
74 |
+
"clean_up_tokenization_spaces": true,
|
75 |
+
"cls_token": "<s>",
|
76 |
+
"eos_token": "</s>",
|
77 |
+
"mask_token": "<mask>",
|
78 |
+
"model_max_length": 512,
|
79 |
+
"pad_token": "<pad>",
|
80 |
+
"sep_token": "</s>",
|
81 |
+
"tokenizer_class": "CamembertTokenizer",
|
82 |
+
"unk_token": "<unk>"
|
83 |
+
}
|