Quant for 3.5
Browse files- README.md +3 -30
- config.json +26 -0
- eval_results.json +16 -0
- generation_config.json +7 -0
- original_repo_url.txt +1 -0
- output.safetensors +3 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +40 -0
README.md
CHANGED
@@ -1,41 +1,21 @@
|
|
1 |
---
|
2 |
-
license: apache-2.0
|
3 |
-
datasets:
|
4 |
-
- cerebras/SlimPajama-627B
|
5 |
-
- bigcode/starcoderdata
|
6 |
-
- OpenAssistant/oasst_top1_2023-08-25
|
7 |
-
language:
|
8 |
-
- en
|
9 |
quantized_by: bartowski
|
10 |
-
pipeline_tag: text-generation
|
11 |
---
|
12 |
|
13 |
-
|
14 |
|
15 |
Using <a href="https://github.com/turboderp/exllamav2/releases/tag/v0.0.11">turboderp's ExLlamaV2 v0.0.11</a> for quantization.
|
16 |
|
17 |
-
Each branch contains an individual bits per weight, with the main one containing only the meaurement.json for further conversions.
|
18 |
-
|
19 |
Conversion was done using the default calibration dataset.
|
20 |
|
21 |
-
Default arguments used except when the bits per weight is above 6.0, at that point the lm_head layer is quantized at 8 bits per weight instead of the default 6.
|
22 |
-
|
23 |
Original model: https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0
|
24 |
-
|
25 |
-
<a href="https://huggingface.co/bartowski/TinyLlama-1.1B-Chat-v1.0-exl2/tree/4_0">4.0 bits per weight</a>
|
26 |
-
|
27 |
-
<a href="https://huggingface.co/bartowski/TinyLlama-1.1B-Chat-v1.0-exl2/tree/5_0">5.0 bits per weight</a>
|
28 |
-
|
29 |
-
<a href="https://huggingface.co/bartowski/TinyLlama-1.1B-Chat-v1.0-exl2/tree/6_5">6.5 bits per weight</a>
|
30 |
-
|
31 |
-
<a href="https://huggingface.co/bartowski/TinyLlama-1.1B-Chat-v1.0-exl2/tree/8_0">8.0 bits per weight</a>
|
32 |
|
33 |
## Download instructions
|
34 |
|
35 |
With git:
|
36 |
|
37 |
```shell
|
38 |
-
git clone --single-branch --branch
|
39 |
```
|
40 |
|
41 |
With huggingface hub (credit to TheBloke for instructions):
|
@@ -44,16 +24,9 @@ With huggingface hub (credit to TheBloke for instructions):
|
|
44 |
pip3 install huggingface-hub
|
45 |
```
|
46 |
|
47 |
-
To download the `main` (only useful if you only care about measurement.json) branch to a folder called `TinyLlama-1.1B-Chat-v1.0-exl2`:
|
48 |
-
|
49 |
-
```shell
|
50 |
-
mkdir TinyLlama-1.1B-Chat-v1.0-exl2
|
51 |
-
huggingface-cli download bartowski/TinyLlama-1.1B-Chat-v1.0-exl2 --local-dir TinyLlama-1.1B-Chat-v1.0-exl2 --local-dir-use-symlinks False
|
52 |
-
```
|
53 |
-
|
54 |
To download from a different branch, add the `--revision` parameter:
|
55 |
|
56 |
```shell
|
57 |
mkdir TinyLlama-1.1B-Chat-v1.0-exl2
|
58 |
-
huggingface-cli download bartowski/TinyLlama-1.1B-Chat-v1.0-exl2 --revision
|
59 |
```
|
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
quantized_by: bartowski
|
|
|
3 |
---
|
4 |
|
5 |
+
# Exllama v2 Quantizations of TinyLlama-1.1B-Chat-v1.0 at 3.5 bits per weight
|
6 |
|
7 |
Using <a href="https://github.com/turboderp/exllamav2/releases/tag/v0.0.11">turboderp's ExLlamaV2 v0.0.11</a> for quantization.
|
8 |
|
|
|
|
|
9 |
Conversion was done using the default calibration dataset.
|
10 |
|
|
|
|
|
11 |
Original model: https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
## Download instructions
|
14 |
|
15 |
With git:
|
16 |
|
17 |
```shell
|
18 |
+
git clone --single-branch --branch 3.5 https://huggingface.co/bartowski/TinyLlama-1.1B-Chat-v1.0-exl2
|
19 |
```
|
20 |
|
21 |
With huggingface hub (credit to TheBloke for instructions):
|
|
|
24 |
pip3 install huggingface-hub
|
25 |
```
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
To download from a different branch, add the `--revision` parameter:
|
28 |
|
29 |
```shell
|
30 |
mkdir TinyLlama-1.1B-Chat-v1.0-exl2
|
31 |
+
huggingface-cli download bartowski/TinyLlama-1.1B-Chat-v1.0-exl2 --revision 3_5 --local-dir TinyLlama-1.1B-Chat-v1.0-exl2 --local-dir-use-symlinks False
|
32 |
```
|
config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"rms_norm_eps": 1e-05,
|
19 |
+
"rope_scaling": null,
|
20 |
+
"rope_theta": 10000.0,
|
21 |
+
"tie_word_embeddings": false,
|
22 |
+
"torch_dtype": "bfloat16",
|
23 |
+
"transformers_version": "4.35.0",
|
24 |
+
"use_cache": true,
|
25 |
+
"vocab_size": 32000
|
26 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_logits/chosen": -2.707406759262085,
|
4 |
+
"eval_logits/rejected": -2.656524419784546,
|
5 |
+
"eval_logps/chosen": -370.1297607421875,
|
6 |
+
"eval_logps/rejected": -296.0738525390625,
|
7 |
+
"eval_loss": 0.513750433921814,
|
8 |
+
"eval_rewards/accuracies": 0.738095223903656,
|
9 |
+
"eval_rewards/chosen": -0.02744222804903984,
|
10 |
+
"eval_rewards/margins": 1.0087225437164307,
|
11 |
+
"eval_rewards/rejected": -1.03616464138031,
|
12 |
+
"eval_runtime": 93.5908,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 21.37,
|
15 |
+
"eval_steps_per_second": 0.673
|
16 |
+
}
|
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.35.0"
|
7 |
+
}
|
original_repo_url.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0
|
output.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af7c47eff1257709f1ab8fc3a93fb1255fafd8312328cc3367a7c7d1e64c10dc
|
3 |
+
size 609189652
|
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_config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<unk>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<s>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
}
|
27 |
+
},
|
28 |
+
"bos_token": "<s>",
|
29 |
+
"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 %}",
|
30 |
+
"clean_up_tokenization_spaces": false,
|
31 |
+
"eos_token": "</s>",
|
32 |
+
"legacy": false,
|
33 |
+
"model_max_length": 2048,
|
34 |
+
"pad_token": "</s>",
|
35 |
+
"padding_side": "right",
|
36 |
+
"sp_model_kwargs": {},
|
37 |
+
"tokenizer_class": "LlamaTokenizer",
|
38 |
+
"unk_token": "<unk>",
|
39 |
+
"use_default_system_prompt": false
|
40 |
+
}
|