nm-autobot commited on
Commit
9048367
·
verified ·
1 Parent(s): 01fd1ca

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,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "dtype": "bfloat16",
9
+ "eos_token_id": 2,
10
+ "head_dim": 64,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 2048,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 5632,
15
+ "max_position_embeddings": 2048,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 32,
19
+ "num_hidden_layers": 22,
20
+ "num_key_value_heads": 4,
21
+ "pretraining_tp": 1,
22
+ "quantization_config": {
23
+ "config_groups": {
24
+ "group_0": {
25
+ "format": "float-quantized",
26
+ "input_activations": {
27
+ "actorder": null,
28
+ "block_structure": null,
29
+ "dynamic": true,
30
+ "group_size": null,
31
+ "num_bits": 8,
32
+ "observer": null,
33
+ "observer_kwargs": {},
34
+ "strategy": "token",
35
+ "symmetric": true,
36
+ "type": "float"
37
+ },
38
+ "output_activations": null,
39
+ "targets": [
40
+ "Linear"
41
+ ],
42
+ "weights": {
43
+ "actorder": null,
44
+ "block_structure": null,
45
+ "dynamic": false,
46
+ "group_size": null,
47
+ "num_bits": 8,
48
+ "observer": "minmax",
49
+ "observer_kwargs": {},
50
+ "strategy": "channel",
51
+ "symmetric": true,
52
+ "type": "float"
53
+ }
54
+ }
55
+ },
56
+ "format": "float-quantized",
57
+ "global_compression_ratio": null,
58
+ "ignore": [
59
+ "lm_head"
60
+ ],
61
+ "kv_cache_scheme": null,
62
+ "quant_method": "compressed-tensors",
63
+ "quantization_status": "compressed",
64
+ "sparsity_config": {
65
+ "format": "sparse-24-bitmask",
66
+ "global_sparsity": 0.4404252508753196,
67
+ "ignore": [
68
+ "lm_head"
69
+ ],
70
+ "registry_requires_subclass": false,
71
+ "sparsity_structure": "2:4",
72
+ "targets": [
73
+ "Linear"
74
+ ]
75
+ },
76
+ "transform_config": {},
77
+ "version": "0.11.1.a20250912"
78
+ },
79
+ "rms_norm_eps": 1e-05,
80
+ "rope_scaling": null,
81
+ "rope_theta": 10000.0,
82
+ "tie_word_embeddings": false,
83
+ "transformers_version": "4.56.1",
84
+ "use_cache": true,
85
+ "vocab_size": 32000
86
+ }
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.56.1"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71d9334df2d48964a0f74cd85f2591258202da52313304a94c9bafdc4d4701ae
3
+ size 868745640
recipe.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ quantization_stage:
2
+ sparsity_modifiers:
3
+ SparseGPTModifier:
4
+ sparsity: 0.5
5
+ mask_structure: '2:4'
6
+ sequential_update: false
7
+ sequential_targets: [LlamaDecoderLayer]
8
+ targets: [Linear]
9
+ ignore: ['re:.*lm_head']
10
+ block_size: 128
11
+ dampening_frac: 0.01
12
+ preserve_sparsity_mask: false
13
+ offload_hessians: false
14
+ quantization_modifiers:
15
+ QuantizationModifier:
16
+ targets: [Linear]
17
+ ignore: [lm_head]
18
+ scheme: FP8_DYNAMIC
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
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,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "bos_token": "<s>",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "extra_special_tokens": {},
35
+ "legacy": false,
36
+ "model_max_length": 2048,
37
+ "pad_token": "</s>",
38
+ "padding_side": "right",
39
+ "sp_model_kwargs": {},
40
+ "tokenizer_class": "LlamaTokenizer",
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": false
43
+ }