lprevelige commited on
Commit
7c302e6
·
verified ·
1 Parent(s): 9ed548a

Upload 6 files

Browse files
config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "nomic-ai/CodeRankEmbed",
4
+ "activation_function": "swiglu",
5
+ "architectures": [
6
+ "NomicBertModel"
7
+ ],
8
+ "attn_pdrop": 0.0,
9
+ "auto_map": {
10
+ "AutoConfig": "nomic-ai/CodeRankEmbed--configuration_hf_nomic_bert.NomicBertConfig",
11
+ "AutoModel": "nomic-ai/CodeRankEmbed--modeling_hf_nomic_bert.NomicBertModel"
12
+ },
13
+ "bos_token_id": null,
14
+ "causal": false,
15
+ "dense_seq_output": true,
16
+ "embd_pdrop": 0.1,
17
+ "eos_token_id": null,
18
+ "export_model_type": "transformer",
19
+ "fused_bias_fc": true,
20
+ "fused_dropout_add_ln": true,
21
+ "initializer_range": 0.02,
22
+ "layer_norm_epsilon": 1e-12,
23
+ "max_trained_positions": 2048,
24
+ "mlp_fc1_bias": false,
25
+ "mlp_fc2_bias": false,
26
+ "model_type": "nomic_bert",
27
+ "n_embd": 768,
28
+ "n_head": 12,
29
+ "n_inner": 3072,
30
+ "n_layer": 12,
31
+ "n_positions": 8192,
32
+ "pad_vocab_size_multiple": 64,
33
+ "parallel_block": false,
34
+ "parallel_block_tied_norm": false,
35
+ "prenorm": false,
36
+ "qkv_proj_bias": false,
37
+ "reorder_and_upcast_attn": false,
38
+ "resid_pdrop": 0.1,
39
+ "rotary_emb_base": 1000,
40
+ "rotary_emb_fraction": 1.0,
41
+ "rotary_emb_interleaved": false,
42
+ "rotary_emb_scale_base": null,
43
+ "rotary_scaling_factor": null,
44
+ "scale_attn_by_inverse_layer_idx": false,
45
+ "scale_attn_weights": true,
46
+ "summary_activation": null,
47
+ "summary_first_dropout": 0.1,
48
+ "summary_proj_to_labels": true,
49
+ "summary_type": "cls_index",
50
+ "summary_use_proj": true,
51
+ "torch_dtype": "float32",
52
+ "transformers_version": "4.48.3",
53
+ "type_vocab_size": 2,
54
+ "use_cache": true,
55
+ "use_flash_attn": true,
56
+ "use_rms_norm": false,
57
+ "use_xentropy": true,
58
+ "vocab_size": 30528
59
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:800617daf79153ec525cbe7029ea9e5237923695aa27b68e61ff7bb997a7904c
3
+ size 138081004
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "additional_special_tokens": [],
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "[CLS]",
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_length": 512,
51
+ "model_max_length": 8192,
52
+ "pad_to_multiple_of": null,
53
+ "pad_token": "[PAD]",
54
+ "pad_token_type_id": 0,
55
+ "padding_side": "right",
56
+ "sep_token": "[SEP]",
57
+ "stride": 0,
58
+ "strip_accents": null,
59
+ "tokenize_chinese_chars": true,
60
+ "tokenizer_class": "BertTokenizer",
61
+ "truncation_side": "right",
62
+ "truncation_strategy": "longest_first",
63
+ "unk_token": "[UNK]"
64
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff