nm-autobot commited on
Commit
0fdaad1
·
verified ·
1 Parent(s): 927be4c

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,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "nvfp4-pack-quantized",
22
+ "input_activations": {
23
+ "actorder": null,
24
+ "block_structure": null,
25
+ "dynamic": "local",
26
+ "group_size": 16,
27
+ "num_bits": 4,
28
+ "observer": "minmax",
29
+ "observer_kwargs": {},
30
+ "scale_dtype": null,
31
+ "strategy": "tensor_group",
32
+ "symmetric": true,
33
+ "type": "float",
34
+ "zp_dtype": null
35
+ },
36
+ "output_activations": null,
37
+ "targets": [
38
+ "re:.*self_attn\\.(k|o|q|v)_proj$",
39
+ "re:.*\\.(gate|up)_proj$"
40
+ ],
41
+ "weights": {
42
+ "actorder": null,
43
+ "block_structure": null,
44
+ "dynamic": false,
45
+ "group_size": 16,
46
+ "num_bits": 4,
47
+ "observer": "memoryless_minmax",
48
+ "observer_kwargs": {},
49
+ "scale_dtype": "torch.float8_e4m3fn",
50
+ "strategy": "tensor_group",
51
+ "symmetric": true,
52
+ "type": "float",
53
+ "zp_dtype": null
54
+ }
55
+ },
56
+ "group_1": {
57
+ "format": "float-quantized",
58
+ "input_activations": {
59
+ "actorder": null,
60
+ "block_structure": null,
61
+ "dynamic": true,
62
+ "group_size": null,
63
+ "num_bits": 8,
64
+ "observer": null,
65
+ "observer_kwargs": {},
66
+ "scale_dtype": null,
67
+ "strategy": "token",
68
+ "symmetric": true,
69
+ "type": "float",
70
+ "zp_dtype": null
71
+ },
72
+ "output_activations": null,
73
+ "targets": [
74
+ "re:.*\\.down_proj$"
75
+ ],
76
+ "weights": {
77
+ "actorder": null,
78
+ "block_structure": null,
79
+ "dynamic": false,
80
+ "group_size": null,
81
+ "num_bits": 8,
82
+ "observer": "memoryless_minmax",
83
+ "observer_kwargs": {},
84
+ "scale_dtype": null,
85
+ "strategy": "channel",
86
+ "symmetric": true,
87
+ "type": "float",
88
+ "zp_dtype": null
89
+ }
90
+ }
91
+ },
92
+ "format": "mixed-precision",
93
+ "global_compression_ratio": null,
94
+ "ignore": [
95
+ "lm_head"
96
+ ],
97
+ "kv_cache_scheme": null,
98
+ "quant_method": "compressed-tensors",
99
+ "quantization_status": "compressed",
100
+ "sparsity_config": {},
101
+ "transform_config": {},
102
+ "version": "0.19.1a20261014"
103
+ },
104
+ "rms_norm_eps": 1e-05,
105
+ "rope_scaling": null,
106
+ "rope_theta": 10000.0,
107
+ "tie_word_embeddings": false,
108
+ "torch_dtype": "bfloat16",
109
+ "transformers_version": "4.35.0",
110
+ "use_cache": true,
111
+ "vocab_size": 32000
112
+ }
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:f34378bf24a8a73cf1b4b9eada6ffb845516c29f436c9fbafaed33409af51004
3
+ size 918504936
recipe.yaml ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ quant_stage:
2
+ quant_modifiers:
3
+ QuantizationModifier:
4
+ config_groups:
5
+ group_0:
6
+ targets: ['re:.*\.down_proj$']
7
+ weights:
8
+ num_bits: 8
9
+ type: float
10
+ symmetric: true
11
+ group_size: null
12
+ strategy: channel
13
+ block_structure: null
14
+ dynamic: false
15
+ actorder: null
16
+ scale_dtype: null
17
+ zp_dtype: null
18
+ observer: memoryless_minmax
19
+ observer_kwargs: {}
20
+ input_activations:
21
+ num_bits: 8
22
+ type: float
23
+ symmetric: true
24
+ group_size: null
25
+ strategy: token
26
+ block_structure: null
27
+ dynamic: true
28
+ actorder: null
29
+ scale_dtype: null
30
+ zp_dtype: null
31
+ observer: null
32
+ observer_kwargs: {}
33
+ output_activations: null
34
+ format: null
35
+ group_1:
36
+ targets: ['re:.*self_attn\.(k|o|q|v)_proj$', 're:.*\.(gate|up)_proj$']
37
+ weights:
38
+ num_bits: 4
39
+ type: float
40
+ symmetric: true
41
+ group_size: 16
42
+ strategy: tensor_group
43
+ block_structure: null
44
+ dynamic: false
45
+ actorder: null
46
+ scale_dtype: torch.float8_e4m3fn
47
+ zp_dtype: null
48
+ observer: memoryless_minmax
49
+ observer_kwargs: {}
50
+ input_activations:
51
+ num_bits: 4
52
+ type: float
53
+ symmetric: true
54
+ group_size: 16
55
+ strategy: tensor_group
56
+ block_structure: null
57
+ dynamic: local
58
+ actorder: null
59
+ scale_dtype: null
60
+ zp_dtype: null
61
+ observer: minmax
62
+ observer_kwargs: {}
63
+ output_activations: null
64
+ format: null
65
+ targets: [Linear]
66
+ ignore: [lm_head]
67
+ bypass_divisibility_checks: false
68
+ requires_calibration_data: true
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
+ }