nm-autobot commited on
Commit
081ebc0
·
verified ·
1 Parent(s): 1697469

Upload folder using huggingface_hub

Browse files
chat_template.jinja ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% for message in messages %}
2
+ {% if message['role'] == 'user' %}
3
+ {{ '<|user|>
4
+ ' + message['content'] + eos_token }}
5
+ {% elif message['role'] == 'system' %}
6
+ {{ '<|system|>
7
+ ' + message['content'] + eos_token }}
8
+ {% elif message['role'] == 'assistant' %}
9
+ {{ '<|assistant|>
10
+ ' + message['content'] + eos_token }}
11
+ {% endif %}
12
+ {% if loop.last and add_generation_prompt %}
13
+ {{ '<|assistant|>' }}
14
+ {% endif %}
15
+ {% endfor %}
config.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 2048,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 5632,
12
+ "max_position_embeddings": 2048,
13
+ "model_type": "llama",
14
+ "num_attention_heads": 32,
15
+ "num_hidden_layers": 22,
16
+ "num_key_value_heads": 4,
17
+ "pretraining_tp": 1,
18
+ "quantization_config": {
19
+ "config_groups": {
20
+ "group_0": {
21
+ "format": "pack-quantized",
22
+ "input_activations": null,
23
+ "output_activations": null,
24
+ "targets": [
25
+ "re:.*self_attn\\.(k|q|o|v)_proj$"
26
+ ],
27
+ "weights": {
28
+ "actorder": null,
29
+ "block_structure": null,
30
+ "dynamic": false,
31
+ "group_size": 128,
32
+ "num_bits": 4,
33
+ "observer": "memoryless_minmax",
34
+ "observer_kwargs": {},
35
+ "scale_dtype": null,
36
+ "strategy": "group",
37
+ "symmetric": true,
38
+ "type": "int",
39
+ "zp_dtype": null
40
+ }
41
+ },
42
+ "group_1": {
43
+ "format": "int-quantized",
44
+ "input_activations": {
45
+ "actorder": null,
46
+ "block_structure": null,
47
+ "dynamic": true,
48
+ "group_size": null,
49
+ "num_bits": 8,
50
+ "observer": null,
51
+ "observer_kwargs": {},
52
+ "scale_dtype": null,
53
+ "strategy": "token",
54
+ "symmetric": true,
55
+ "type": "int",
56
+ "zp_dtype": null
57
+ },
58
+ "output_activations": null,
59
+ "targets": [
60
+ "re:.*mlp\\.(down|gate|up)_proj$"
61
+ ],
62
+ "weights": {
63
+ "actorder": null,
64
+ "block_structure": null,
65
+ "dynamic": false,
66
+ "group_size": null,
67
+ "num_bits": 8,
68
+ "observer": "memoryless_minmax",
69
+ "observer_kwargs": {},
70
+ "scale_dtype": null,
71
+ "strategy": "channel",
72
+ "symmetric": true,
73
+ "type": "int",
74
+ "zp_dtype": null
75
+ }
76
+ }
77
+ },
78
+ "format": "mixed-precision",
79
+ "global_compression_ratio": null,
80
+ "ignore": [
81
+ "lm_head"
82
+ ],
83
+ "kv_cache_scheme": null,
84
+ "quant_method": "compressed-tensors",
85
+ "quantization_status": "compressed",
86
+ "sparsity_config": {},
87
+ "transform_config": {},
88
+ "version": "0.19.1a20261014"
89
+ },
90
+ "rms_norm_eps": 1e-05,
91
+ "rope_scaling": null,
92
+ "rope_theta": 10000.0,
93
+ "tie_word_embeddings": false,
94
+ "torch_dtype": "bfloat16",
95
+ "transformers_version": "4.35.0",
96
+ "use_cache": true,
97
+ "vocab_size": 32000
98
+ }
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": "5.19.0"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:933273d17485f6d84412003b694b6c0dc0cb1757bfabb58f65a498381919a099
3
+ size 1131284624
recipe.yaml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ quant_stage:
2
+ quant_modifiers:
3
+ AWQModifier:
4
+ requires_calibration_data: true
5
+ mappings:
6
+ - smooth_layer: re:.*input_layernorm$
7
+ balance_layers: ['re:.*q_proj$', 're:.*k_proj$', 're:.*v_proj$']
8
+ activation_hook_target: null
9
+ duo_scaling: true
10
+ n_grid: 20
11
+ QuantizationModifier:
12
+ targets: ['re:.*self_attn\.(k|q|o|v)_proj$']
13
+ ignore: [lm_head]
14
+ scheme: W4A16
15
+ bypass_divisibility_checks: false
16
+ requires_calibration_data: false
17
+ GPTQModifier:
18
+ targets: ['re:.*mlp\.(down|gate|up)_proj$']
19
+ ignore: [lm_head]
20
+ scheme: W8A8
21
+ bypass_divisibility_checks: false
22
+ requires_calibration_data: true
23
+ block_size: 128
24
+ dampening_frac: 0.001
25
+ batched_quantization: auto
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "model_max_length": 2048,
10
+ "pad_token": "</s>",
11
+ "padding_side": "right",
12
+ "sp_model_kwargs": {},
13
+ "tokenizer_class": "LlamaTokenizer",
14
+ "unk_token": "<unk>",
15
+ "use_default_system_prompt": false
16
+ }