sadkins65 commited on
Commit
a8e06b9
1 Parent(s): 5fd1cb6

Upload folder using huggingface_hub

Browse files
config.json CHANGED
@@ -1,11 +1,59 @@
1
  {
2
- "_name_or_path": "./test_updated_llama1.1b_quant",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
6
  "attention_bias": false,
7
  "attention_dropout": 0.0,
8
  "bos_token_id": 1,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  "eos_token_id": 2,
10
  "hidden_act": "silu",
11
  "hidden_size": 2048,
@@ -20,49 +68,9 @@
20
  "rms_norm_eps": 1e-05,
21
  "rope_scaling": null,
22
  "rope_theta": 10000.0,
23
- "quantization_config": {
24
- "config_groups": {
25
- "group_0": {
26
- "input_activations": {
27
- "block_structure": null,
28
- "dynamic": false,
29
- "group_size": null,
30
- "num_bits": 8,
31
- "observer": "minmax",
32
- "observer_kwargs": {},
33
- "strategy": "tensor",
34
- "symmetric": true,
35
- "type": "int"
36
- },
37
- "output_activations": null,
38
- "targets": [
39
- "Linear"
40
- ],
41
- "weights": {
42
- "block_structure": null,
43
- "dynamic": false,
44
- "group_size": null,
45
- "num_bits": 8,
46
- "observer": "minmax",
47
- "observer_kwargs": {},
48
- "strategy": "tensor",
49
- "symmetric": true,
50
- "type": "int"
51
- }
52
- }
53
- },
54
- "format": "compressed",
55
- "global_compression_ratio": 1.1282749751199026,
56
- "ignore": [
57
- "model.layers.0.mlp.down_proj",
58
- "lm_head"
59
- ],
60
- "quant_method": "sparseml",
61
- "quantization_status": "compressed"
62
- },
63
  "tie_word_embeddings": false,
64
- "torch_dtype": "float32",
65
- "transformers_version": "4.39.3",
66
  "use_cache": true,
67
  "vocab_size": 32000
68
  }
 
1
  {
2
+ "_name_or_path": "/root/.cache/huggingface/hub/models--TinyLlama--TinyLlama-1.1B-intermediate-step-1431k-3T/snapshots/036fa4651240b9a1487f709833b9e4b96b4c1574",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
6
  "attention_bias": false,
7
  "attention_dropout": 0.0,
8
  "bos_token_id": 1,
9
+ "compression_config": {
10
+ "quantization_config": {
11
+ "config_groups": {
12
+ "group_0": {
13
+ "input_activations": {
14
+ "block_structure": null,
15
+ "dynamic": false,
16
+ "group_size": null,
17
+ "num_bits": 8,
18
+ "observer": "minmax",
19
+ "observer_kwargs": {},
20
+ "strategy": "tensor",
21
+ "symmetric": true,
22
+ "type": "int"
23
+ },
24
+ "output_activations": null,
25
+ "targets": [
26
+ "Linear"
27
+ ],
28
+ "weights": {
29
+ "block_structure": null,
30
+ "dynamic": false,
31
+ "group_size": null,
32
+ "num_bits": 8,
33
+ "observer": "minmax",
34
+ "observer_kwargs": {},
35
+ "strategy": "tensor",
36
+ "symmetric": true,
37
+ "type": "int"
38
+ }
39
+ }
40
+ },
41
+ "format": "int-quantized",
42
+ "global_compression_ratio": 1.454005842904474,
43
+ "ignore": [
44
+ "model.layers.0.mlp.down_proj",
45
+ "lm_head"
46
+ ],
47
+ "quant_method": "sparseml",
48
+ "quantization_status": "frozen"
49
+ },
50
+ "sparsity_config": {
51
+ "format": "dense",
52
+ "global_sparsity": 7.713156824200198,
53
+ "registry_requires_subclass": false,
54
+ "sparsity_structure": "0:0"
55
+ }
56
+ },
57
  "eos_token_id": 2,
58
  "hidden_act": "silu",
59
  "hidden_size": 2048,
 
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.39.0",
74
  "use_cache": true,
75
  "vocab_size": 32000
76
  }
generation_config.json CHANGED
@@ -3,5 +3,5 @@
3
  "eos_token_id": 2,
4
  "max_length": 2048,
5
  "pad_token_id": 0,
6
- "transformers_version": "4.39.3"
7
  }
 
3
  "eos_token_id": 2,
4
  "max_length": 2048,
5
  "pad_token_id": 0,
6
+ "transformers_version": "4.39.0"
7
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0b953ecfb307c1412a5c34dfbde8b44a2be6eb761c1d028683d84034f29bbec5
3
- size 1528236626
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2904d1e37d759d31bbdec6c0b5c226d8ca1db1bc487dd69eb3f49c75ecdcb640
3
+ size 1242839118
recipe.yaml CHANGED
@@ -1,21 +1,10 @@
1
- test_stage:
2
  quant_modifiers:
3
  vLLMQuantizationModifier:
4
  ignore: [lm_head, model.layers.0.mlp.down_proj]
5
  config_groups:
6
  group_0:
7
  weights: {num_bits: 8, type: int, symmetric: true, strategy: tensor}
8
- input_activations: {num_bits: 8, type: int, symmetric: false, strategy: tensor}
9
- output_activations: null
10
  targets: [Linear]
11
- group_1:
12
- weights: {num_bits: 8, type: int, symmetric: true, strategy: tensor}
13
- input_activations: null
14
- output_activations: null
15
- targets: [Embedding]
16
- SparseGPTModifier:
17
- sparsity: 0.0
18
- block_size: 128
19
- sequential_update: false
20
- quantize: true
21
- targets: ['re:model.layers.\d+$']
 
1
+ quant_stage:
2
  quant_modifiers:
3
  vLLMQuantizationModifier:
4
  ignore: [lm_head, model.layers.0.mlp.down_proj]
5
  config_groups:
6
  group_0:
7
  weights: {num_bits: 8, type: int, symmetric: true, strategy: tensor}
8
+ input_activations: {num_bits: 8, type: int, symmetric: true, strategy: tensor}
 
9
  targets: [Linear]
10
+ SparseGPTModifier: {sparsity: 0.0, quantize: true, sequential_update: false}
 
 
 
 
 
 
 
 
 
 
tokenizer_config.json CHANGED
@@ -28,6 +28,7 @@
28
  }
29
  },
30
  "bos_token": "<s>",
 
31
  "clean_up_tokenization_spaces": false,
32
  "eos_token": "</s>",
33
  "legacy": false,
 
28
  }
29
  },
30
  "bos_token": "<s>",
31
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
32
  "clean_up_tokenization_spaces": false,
33
  "eos_token": "</s>",
34
  "legacy": false,