Upload folder using huggingface_hub
Browse files- config.json +55 -0
- onnx/model.onnx +3 -0
- onnx/model_quantized.onnx +3 -0
- quantize_config.json +39 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +56 -0
- vocab.txt +0 -0
config.json
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "nomic-ai/nomic-embed-text-v1-unsupervised",
|
3 |
+
"activation_function": "swiglu",
|
4 |
+
"architectures": [
|
5 |
+
"NomicBertModel"
|
6 |
+
],
|
7 |
+
"attn_pdrop": 0.0,
|
8 |
+
"auto_map": {
|
9 |
+
"AutoConfig": "nomic-ai/nomic-embed-text-v1-unsupervised--configuration_hf_nomic_bert.NomicBertConfig",
|
10 |
+
"AutoModel": "nomic-ai/nomic-embed-text-v1-unsupervised--modeling_hf_nomic_bert.NomicBertModel"
|
11 |
+
},
|
12 |
+
"bos_token_id": null,
|
13 |
+
"causal": false,
|
14 |
+
"dense_seq_output": true,
|
15 |
+
"embd_pdrop": 0.0,
|
16 |
+
"eos_token_id": null,
|
17 |
+
"fused_bias_fc": true,
|
18 |
+
"fused_dropout_add_ln": true,
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"layer_norm_epsilon": 1e-12,
|
21 |
+
"mlp_fc1_bias": false,
|
22 |
+
"mlp_fc2_bias": false,
|
23 |
+
"model_type": "nomic_bert",
|
24 |
+
"n_embd": 768,
|
25 |
+
"n_head": 12,
|
26 |
+
"n_inner": 3072,
|
27 |
+
"n_layer": 12,
|
28 |
+
"n_positions": 8192,
|
29 |
+
"pad_vocab_size_multiple": 64,
|
30 |
+
"parallel_block": false,
|
31 |
+
"parallel_block_tied_norm": false,
|
32 |
+
"prenorm": false,
|
33 |
+
"qkv_proj_bias": false,
|
34 |
+
"reorder_and_upcast_attn": false,
|
35 |
+
"resid_pdrop": 0.0,
|
36 |
+
"rotary_emb_base": 1000,
|
37 |
+
"rotary_emb_fraction": 1.0,
|
38 |
+
"rotary_emb_interleaved": false,
|
39 |
+
"rotary_emb_scale_base": null,
|
40 |
+
"rotary_scaling_factor": null,
|
41 |
+
"scale_attn_by_inverse_layer_idx": false,
|
42 |
+
"scale_attn_weights": true,
|
43 |
+
"summary_activation": null,
|
44 |
+
"summary_first_dropout": 0.0,
|
45 |
+
"summary_proj_to_labels": true,
|
46 |
+
"summary_type": "cls_index",
|
47 |
+
"summary_use_proj": true,
|
48 |
+
"transformers_version": "4.37.2",
|
49 |
+
"type_vocab_size": 2,
|
50 |
+
"use_cache": true,
|
51 |
+
"use_flash_attn": true,
|
52 |
+
"use_rms_norm": false,
|
53 |
+
"use_xentropy": true,
|
54 |
+
"vocab_size": 30528
|
55 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b546feae03ec218911da3b6416ca43d226223aa5b973e6a1c28556b99ac9f445
|
3 |
+
size 547552426
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:82b76498563a0301ad9226ff835dd50f9f907398cb82cc5beec0fcf3e6548c79
|
3 |
+
size 138355983
|
quantize_config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": true,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"model": {
|
6 |
+
"op_types": [
|
7 |
+
"Shape",
|
8 |
+
"MatMul",
|
9 |
+
"Equal",
|
10 |
+
"Add",
|
11 |
+
"ConstantOfShape",
|
12 |
+
"Neg",
|
13 |
+
"Sigmoid",
|
14 |
+
"Cast",
|
15 |
+
"Sub",
|
16 |
+
"Cos",
|
17 |
+
"Transpose",
|
18 |
+
"Range",
|
19 |
+
"Slice",
|
20 |
+
"Div",
|
21 |
+
"Pow",
|
22 |
+
"Sin",
|
23 |
+
"Mul",
|
24 |
+
"Expand",
|
25 |
+
"Constant",
|
26 |
+
"ReduceMean",
|
27 |
+
"Sqrt",
|
28 |
+
"Gather",
|
29 |
+
"Einsum",
|
30 |
+
"Reshape",
|
31 |
+
"Softmax",
|
32 |
+
"Where",
|
33 |
+
"Unsqueeze",
|
34 |
+
"Concat"
|
35 |
+
],
|
36 |
+
"weight_type": "QInt8"
|
37 |
+
}
|
38 |
+
}
|
39 |
+
}
|
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,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 512,
|
50 |
+
"pad_token": "[PAD]",
|
51 |
+
"sep_token": "[SEP]",
|
52 |
+
"strip_accents": null,
|
53 |
+
"tokenize_chinese_chars": true,
|
54 |
+
"tokenizer_class": "BertTokenizer",
|
55 |
+
"unk_token": "[UNK]"
|
56 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|