Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- config.json +28 -0
- model-orig.onnx +3 -0
- model.data +3 -0
- model.onnx +3 -0
- recipe.yaml +38 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +39 -0
.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 |
+
model.data filter=lfs diff=lfs merge=lfs -text
|
config.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"LlamaForCausalLM"
|
4 |
+
],
|
5 |
+
"attention_bias": false,
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 1,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"hidden_act": "silu",
|
10 |
+
"hidden_size": 4096,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 11008,
|
13 |
+
"max_position_embeddings": 4096,
|
14 |
+
"model_type": "llama",
|
15 |
+
"num_attention_heads": 32,
|
16 |
+
"num_hidden_layers": 32,
|
17 |
+
"num_key_value_heads": 32,
|
18 |
+
"pretraining_tp": 1,
|
19 |
+
"rms_norm_eps": 1e-05,
|
20 |
+
"rope_scaling": null,
|
21 |
+
"rope_theta": 10000.0,
|
22 |
+
"tie_word_embeddings": false,
|
23 |
+
"tokenizer_class": "LlamaTokenizerFast",
|
24 |
+
"torch_dtype": "float32",
|
25 |
+
"transformers_version": "1.7.0.43401",
|
26 |
+
"use_cache": true,
|
27 |
+
"vocab_size": 32000
|
28 |
+
}
|
model-orig.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9ee7a53f34780e582d10cf2a9403b7135f822cd3c2589756d030d081a775bee4
|
3 |
+
size 1048493
|
model.data
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1430185bc4cc7793e682e4b0f817eff28e1d1ea61199b9f70705a65f447497ce
|
3 |
+
size 7290022912
|
model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:56e2f3c2001e0afcf804e11766e0afb6c7d8227177b0b7c223c63a855ab05291
|
3 |
+
size 1033438
|
recipe.yaml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
test_stage:
|
2 |
+
obcq_modifiers:
|
3 |
+
LogarithmicEqualizationModifier:
|
4 |
+
mappings:
|
5 |
+
- - ['re:.*q_proj', 're:.*k_proj', 're:.*v_proj']
|
6 |
+
- re:.*input_layernorm
|
7 |
+
- - ['re:.*gate_proj', 're:.*up_proj']
|
8 |
+
- re:.*post_attention_layernorm
|
9 |
+
- - ['re:.*down_proj']
|
10 |
+
- re:.*up_proj
|
11 |
+
QuantizationModifier:
|
12 |
+
ignore: [LlamaRotaryEmbedding, LlamaRMSNorm, SiLUActivation, model.layers.30.mlp.down_proj,
|
13 |
+
model.layers.1.mlp.down_proj, model.layers.0.mlp.down_proj, model.layers.4.mlp.down_proj,
|
14 |
+
MatMulOutput_QK, MatMulOutput_PV, MatMulLeftInput_QK, MatMulLeftInput_PV, MatMulRightInput_QK,
|
15 |
+
MatMulRightInput_PV, QuantizableMatMul]
|
16 |
+
post_oneshot_calibration: true
|
17 |
+
scheme_overrides:
|
18 |
+
Linear:
|
19 |
+
weights: {num_bits: 8, symmetric: true, strategy: channel}
|
20 |
+
Embedding:
|
21 |
+
input_activations: null
|
22 |
+
weights: {num_bits: 8, symmetric: false}
|
23 |
+
SparseGPTModifier:
|
24 |
+
sparsity: 0.0
|
25 |
+
block_size: 128
|
26 |
+
sequential_update: false
|
27 |
+
quantize: true
|
28 |
+
percdamp: 0.01
|
29 |
+
prunen: 0
|
30 |
+
prunem: 0
|
31 |
+
targets: [model.layers.0, model.layers.1, model.layers.2, model.layers.3, model.layers.4,
|
32 |
+
model.layers.5, model.layers.6, model.layers.7, model.layers.8, model.layers.9, model.layers.10,
|
33 |
+
model.layers.11, model.layers.12, model.layers.13, model.layers.14, model.layers.15,
|
34 |
+
model.layers.16, model.layers.17, model.layers.18, model.layers.19, model.layers.20,
|
35 |
+
model.layers.21, model.layers.22, model.layers.23, model.layers.24, model.layers.25,
|
36 |
+
model.layers.26, model.layers.27, model.layers.28, model.layers.29, model.layers.30,
|
37 |
+
model.layers.31]
|
38 |
+
target_ids: [attention_mask, position_ids]
|
special_tokens_map.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": "</s>",
|
17 |
+
"unk_token": {
|
18 |
+
"content": "<unk>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": false,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
}
|
24 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
tokenizer_config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<unk>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<s>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
}
|
27 |
+
},
|
28 |
+
"bos_token": "<s>",
|
29 |
+
"clean_up_tokenization_spaces": false,
|
30 |
+
"eos_token": "</s>",
|
31 |
+
"legacy": false,
|
32 |
+
"model_max_length": 1000000000000000019884624838656,
|
33 |
+
"pad_token": "</s>",
|
34 |
+
"padding_side": "right",
|
35 |
+
"sp_model_kwargs": {},
|
36 |
+
"tokenizer_class": "LlamaTokenizer",
|
37 |
+
"unk_token": "<unk>",
|
38 |
+
"use_default_system_prompt": false
|
39 |
+
}
|