Eldar Kurtic commited on
Commit
65aebf9
1 Parent(s): ab98e3f

Initial commit

Browse files
README.md CHANGED
@@ -1,3 +1,22 @@
1
  ---
2
  license: apache-2.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
  ---
4
+ # Mistral-7B-Instruct-v0.3 quantized to 4bits
5
+
6
+ - weight-only quantization via GPTQ to 4bits
7
+ - GPTQ optimized for X% accuracy recovery relative to the unquantized model
8
+
9
+ # Open LLM Leaderboard evaluation scores
10
+
11
+ | | Mistral-7B-Instruct-v0.3 | Mistral-7B-Instruct-v0.3-GPTQ-4bit<br>(this model) |
12
+ | :------------------: | :----------------------: | :------------------------------------------------: |
13
+ | arc-c<br>25-shot | 63.48 | 63.40 |
14
+ | mmlu<br>5-shot | 61.13 | 60.89 |
15
+ | hellaswag<br>10-shot | 84.49 | ? gpu0 |
16
+ | winogrande<br>5-shot | 79.16 | 79.08 |
17
+ | gsm8k<br>5-shot | 43.37 | 45.41 |
18
+ | truthfulqa<br>0-shot | 59.65 | 57.48 |
19
+ | -------------------- | ------------------------ | -------------------------------------------------- |
20
+ | Average<br>Accuracy | 65.21 | x |
21
+ | Recovery | 100% | x |
22
+
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.3",
3
+ "architectures": [
4
+ "MistralForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 4096,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 14336,
13
+ "max_position_embeddings": 32768,
14
+ "model_type": "mistral",
15
+ "num_attention_heads": 32,
16
+ "num_hidden_layers": 32,
17
+ "num_key_value_heads": 8,
18
+ "quantization_config": {
19
+ "bits": 4,
20
+ "damp_percent": 0.01,
21
+ "desc_act": false,
22
+ "group_size": 128,
23
+ "is_marlin_format": false,
24
+ "model_file_base_name": "model",
25
+ "model_name_or_path": null,
26
+ "quant_method": "gptq",
27
+ "static_groups": false,
28
+ "sym": true,
29
+ "true_sequential": true
30
+ },
31
+ "rms_norm_eps": 1e-05,
32
+ "rope_theta": 1000000.0,
33
+ "sliding_window": null,
34
+ "tie_word_embeddings": false,
35
+ "torch_dtype": "float16",
36
+ "transformers_version": "4.40.2",
37
+ "use_cache": true,
38
+ "vocab_size": 32768
39
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:547d383d403d546507b7a7f46692e3229f6ba2379f349f47f73a9f92754afdfc
3
+ size 4171245160
quantize_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bits": 4,
3
+ "group_size": 128,
4
+ "damp_percent": 0.01,
5
+ "desc_act": false,
6
+ "static_groups": false,
7
+ "sym": true,
8
+ "true_sequential": true,
9
+ "model_name_or_path": null,
10
+ "model_file_base_name": "model",
11
+ "is_marlin_format": false,
12
+ "quant_method": "gptq"
13
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "unk_token": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
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:37f00374dea48658ee8f5d0f21895b9bc55cb0103939607c8185bfd1c6ca1f89
3
+ size 587404
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff