ConstDemi commited on
Commit
d210ccd
·
verified ·
1 Parent(s): a934956

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
chat_template.jinja ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {{ bos_token }}{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>
2
+
3
+ '+ message['content'] | trim + '</s>' %}{{ content }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>
4
+
5
+ ' }}{% endif %}
config.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MistralForCausalLM"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 1,
7
+ "dtype": "bfloat16",
8
+ "eos_token_id": 2,
9
+ "head_dim": 128,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 5120,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 14336,
14
+ "max_position_embeddings": 1024000,
15
+ "model_type": "mistral",
16
+ "num_attention_heads": 32,
17
+ "num_hidden_layers": 40,
18
+ "num_key_value_heads": 8,
19
+ "pad_token_id": null,
20
+ "quantization_config": {
21
+ "config_groups": {
22
+ "group_0": {
23
+ "format": "pack-quantized",
24
+ "input_activations": null,
25
+ "output_activations": null,
26
+ "targets": [
27
+ "Linear"
28
+ ],
29
+ "weights": {
30
+ "actorder": null,
31
+ "block_structure": null,
32
+ "dynamic": false,
33
+ "group_size": 128,
34
+ "num_bits": 4,
35
+ "observer": "memoryless_minmax",
36
+ "observer_kwargs": {},
37
+ "scale_dtype": null,
38
+ "strategy": "group",
39
+ "symmetric": true,
40
+ "type": "int",
41
+ "zp_dtype": null
42
+ }
43
+ }
44
+ },
45
+ "format": "pack-quantized",
46
+ "global_compression_ratio": null,
47
+ "ignore": [
48
+ "lm_head"
49
+ ],
50
+ "kv_cache_scheme": null,
51
+ "quant_method": "compressed-tensors",
52
+ "quantization_status": "compressed",
53
+ "sparsity_config": {},
54
+ "transform_config": {},
55
+ "version": "0.17.1"
56
+ },
57
+ "rms_norm_eps": 1e-05,
58
+ "rope_parameters": {
59
+ "rope_theta": 1000000.0,
60
+ "rope_type": "default"
61
+ },
62
+ "sliding_window": null,
63
+ "tie_word_embeddings": false,
64
+ "transformers_version": "5.10.1",
65
+ "use_cache": true,
66
+ "vocab_size": 131074
67
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "5.10.1"
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:113ea71b36f0309c585ca5bfe78d106477e0b3ab2fb094c92fe8098558c4e5a0
3
+ size 8308323776
recipe.yaml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ default_stage:
2
+ default_modifiers:
3
+ AWQModifier:
4
+ mappings:
5
+ - smooth_layer: re:.*input_layernorm$
6
+ balance_layers: ['re:.*q_proj$', 're:.*k_proj$', 're:.*v_proj$']
7
+ activation_hook_target: null
8
+ - smooth_layer: re:.*v_proj$
9
+ balance_layers: ['re:.*o_proj$']
10
+ activation_hook_target: null
11
+ - smooth_layer: re:.*post_attention_layernorm$
12
+ balance_layers: ['re:.*gate_proj$', 're:.*up_proj$']
13
+ activation_hook_target: null
14
+ - smooth_layer: re:.*up_proj$
15
+ balance_layers: ['re:.*down_proj$']
16
+ activation_hook_target: null
17
+ duo_scaling: true
18
+ n_grid: 20
19
+ QuantizationModifier:
20
+ targets: [Linear]
21
+ ignore: [lm_head]
22
+ scheme: W4A16
23
+ bypass_divisibility_checks: false
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fe4f539ff1d6f5cf1f9df9d5d095f1965af9991fb2ec1511829daa3e2fb3b5e
3
+ size 17078682
tokenizer_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "extra_special_tokens": [
8
+ "<|start_header_id|>",
9
+ "<|end_header_id|>"
10
+ ],
11
+ "is_local": false,
12
+ "local_files_only": false,
13
+ "model_input_names": [
14
+ "input_ids",
15
+ "attention_mask"
16
+ ],
17
+ "model_max_length": 16000,
18
+ "pad_token": "<pad>",
19
+ "tokenizer_class": "TokenizersBackend",
20
+ "unk_token": "<unk>"
21
+ }