Upload folder using huggingface_hub
Browse files- config.json +83 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- recipe.yaml +21 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer_config.json +41 -0
config.json
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "./test_updated_llama1.1b_quant",
|
3 |
+
"architectures": [
|
4 |
+
"LlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"bos_token_id": 1,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"hidden_act": "silu",
|
11 |
+
"hidden_size": 2048,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 5632,
|
14 |
+
"max_position_embeddings": 2048,
|
15 |
+
"model_type": "llama",
|
16 |
+
"num_attention_heads": 32,
|
17 |
+
"num_hidden_layers": 22,
|
18 |
+
"num_key_value_heads": 4,
|
19 |
+
"pretraining_tp": 1,
|
20 |
+
"rms_norm_eps": 1e-05,
|
21 |
+
"rope_scaling": null,
|
22 |
+
"rope_theta": 10000.0,
|
23 |
+
"quantization_config": {
|
24 |
+
"config_groups": {
|
25 |
+
"group_0": {
|
26 |
+
"input_activations": null,
|
27 |
+
"output_activations": null,
|
28 |
+
"targets": [
|
29 |
+
"Embedding"
|
30 |
+
],
|
31 |
+
"weights": {
|
32 |
+
"block_structure": null,
|
33 |
+
"group_size": null,
|
34 |
+
"num_bits": 8,
|
35 |
+
"observer": "minmax",
|
36 |
+
"observer_kwargs": {},
|
37 |
+
"strategy": "tensor",
|
38 |
+
"symmetric": true,
|
39 |
+
"type": "int"
|
40 |
+
}
|
41 |
+
},
|
42 |
+
"group_1": {
|
43 |
+
"input_activations": {
|
44 |
+
"block_structure": null,
|
45 |
+
"group_size": null,
|
46 |
+
"num_bits": 8,
|
47 |
+
"observer": "minmax",
|
48 |
+
"observer_kwargs": {},
|
49 |
+
"strategy": "tensor",
|
50 |
+
"symmetric": false,
|
51 |
+
"type": "int"
|
52 |
+
},
|
53 |
+
"output_activations": null,
|
54 |
+
"targets": [
|
55 |
+
"Linear"
|
56 |
+
],
|
57 |
+
"weights": {
|
58 |
+
"block_structure": null,
|
59 |
+
"group_size": null,
|
60 |
+
"num_bits": 8,
|
61 |
+
"observer": "minmax",
|
62 |
+
"observer_kwargs": {},
|
63 |
+
"strategy": "tensor",
|
64 |
+
"symmetric": true,
|
65 |
+
"type": "int"
|
66 |
+
}
|
67 |
+
}
|
68 |
+
},
|
69 |
+
"format": "compressed",
|
70 |
+
"global_compression_ratio": 1.4416825559554713,
|
71 |
+
"ignore": [
|
72 |
+
"model.layers.0.mlp.down_proj",
|
73 |
+
"lm_head"
|
74 |
+
],
|
75 |
+
"quant_method": "sparseml",
|
76 |
+
"quantization_status": "compressed"
|
77 |
+
},
|
78 |
+
"tie_word_embeddings": false,
|
79 |
+
"torch_dtype": "float32",
|
80 |
+
"transformers_version": "4.39.3",
|
81 |
+
"use_cache": true,
|
82 |
+
"vocab_size": 32000
|
83 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 1,
|
3 |
+
"eos_token_id": 2,
|
4 |
+
"max_length": 2048,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.39.3"
|
7 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f19ac75bb08f803862d2bee8d4ac812061808f4a038daeb33bd0d459d2df40bd
|
3 |
+
size 1331628655
|
recipe.yaml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
test_stage:
|
2 |
+
quant_modifiers:
|
3 |
+
vLLMQuantizationModifier:
|
4 |
+
ignore: [lm_head, model.layers.0.mlp.down_proj]
|
5 |
+
config_groups:
|
6 |
+
group_0:
|
7 |
+
weights: {num_bits: 8, type: int, symmetric: true, strategy: tensor}
|
8 |
+
input_activations: {num_bits: 8, type: int, symmetric: false, strategy: tensor}
|
9 |
+
output_activations: null
|
10 |
+
targets: [Linear]
|
11 |
+
group_1:
|
12 |
+
weights: {num_bits: 8, type: int, symmetric: true, strategy: tensor}
|
13 |
+
input_activations: null
|
14 |
+
output_activations: null
|
15 |
+
targets: [Embedding]
|
16 |
+
SparseGPTModifier:
|
17 |
+
sparsity: 0.0
|
18 |
+
block_size: 128
|
19 |
+
sequential_update: false
|
20 |
+
quantize: true
|
21 |
+
targets: ['re:model.layers.\d+$']
|
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_config.json
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"0": {
|
6 |
+
"content": "<unk>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<s>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "</s>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
}
|
29 |
+
},
|
30 |
+
"bos_token": "<s>",
|
31 |
+
"clean_up_tokenization_spaces": false,
|
32 |
+
"eos_token": "</s>",
|
33 |
+
"legacy": false,
|
34 |
+
"model_max_length": 1000000000000000019884624838656,
|
35 |
+
"pad_token": "</s>",
|
36 |
+
"padding_side": "right",
|
37 |
+
"sp_model_kwargs": {},
|
38 |
+
"tokenizer_class": "LlamaTokenizer",
|
39 |
+
"unk_token": "<unk>",
|
40 |
+
"use_default_system_prompt": false
|
41 |
+
}
|