nm-autobot commited on
Commit
25de63a
·
verified ·
1 Parent(s): cfac6b1

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,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "int-quantized",
22
+ "input_activations": {
23
+ "actorder": null,
24
+ "block_structure": null,
25
+ "dynamic": false,
26
+ "group_size": null,
27
+ "num_bits": 8,
28
+ "observer": "static_minmax",
29
+ "observer_kwargs": {},
30
+ "scale_dtype": null,
31
+ "strategy": "tensor",
32
+ "symmetric": false,
33
+ "type": "int",
34
+ "zp_dtype": "torch.int8"
35
+ },
36
+ "output_activations": null,
37
+ "targets": [
38
+ "Linear"
39
+ ],
40
+ "weights": {
41
+ "actorder": null,
42
+ "block_structure": null,
43
+ "dynamic": false,
44
+ "group_size": null,
45
+ "num_bits": 8,
46
+ "observer": "memoryless_minmax",
47
+ "observer_kwargs": {},
48
+ "scale_dtype": null,
49
+ "strategy": "channel",
50
+ "symmetric": true,
51
+ "type": "int",
52
+ "zp_dtype": null
53
+ }
54
+ }
55
+ },
56
+ "format": "int-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
+ "transform_config": {},
66
+ "version": "0.19.1a20261014"
67
+ },
68
+ "rms_norm_eps": 1e-05,
69
+ "rope_scaling": null,
70
+ "rope_theta": 10000.0,
71
+ "tie_word_embeddings": false,
72
+ "torch_dtype": "bfloat16",
73
+ "transformers_version": "4.35.0",
74
+ "use_cache": true,
75
+ "vocab_size": 32000
76
+ }
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:78fbf55bef0364f9e605c3d43a2a3ac4b2fd3ec864e2354b4aa2aa27f5a7f553
3
+ size 1232076790
recipe.yaml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ quant_stage:
2
+ quant_modifiers:
3
+ SmoothQuantModifier:
4
+ requires_calibration_data: true
5
+ smoothing_strength: 0.8
6
+ mappings:
7
+ - !!python/tuple
8
+ - ['re:.*q_proj', 're:.*k_proj', 're:.*v_proj']
9
+ - re:.*input_layernorm
10
+ - !!python/tuple
11
+ - ['re:.*gate_proj', 're:.*up_proj']
12
+ - re:.*post_attention_layernorm
13
+ ignore: []
14
+ algorithm: smoothquant
15
+ GPTQModifier:
16
+ config_groups:
17
+ group_0:
18
+ targets: [Linear]
19
+ weights:
20
+ num_bits: 8
21
+ type: int
22
+ symmetric: true
23
+ group_size: null
24
+ strategy: channel
25
+ block_structure: null
26
+ dynamic: false
27
+ actorder: null
28
+ scale_dtype: null
29
+ zp_dtype: null
30
+ observer: memoryless_minmax
31
+ observer_kwargs: {}
32
+ input_activations:
33
+ num_bits: 8
34
+ type: int
35
+ symmetric: false
36
+ group_size: null
37
+ strategy: tensor
38
+ block_structure: null
39
+ dynamic: false
40
+ actorder: null
41
+ scale_dtype: null
42
+ zp_dtype: torch.int8
43
+ observer: static_minmax
44
+ observer_kwargs: {}
45
+ output_activations: null
46
+ format: null
47
+ targets: [Linear]
48
+ ignore: [lm_head]
49
+ bypass_divisibility_checks: false
50
+ requires_calibration_data: true
51
+ block_size: 128
52
+ dampening_frac: 0.01
53
+ 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
+ }