bartowski commited on
Commit
26043d3
1 Parent(s): 26c5b9f

Quant for 6.0

Browse files
README.md CHANGED
@@ -6,29 +6,22 @@ datasets:
6
  language:
7
  - en
8
  quantized_by: bartowski
9
- pipeline_tag: text-generation
10
  ---
11
 
12
- ## Exllama v2 Quantizations of TinyLlama-1.1B-intermediate-step-955k-token-2T
13
 
14
  Using <a href="https://github.com/turboderp/exllamav2/releases/tag/v0.0.8">turboderp's ExLlamaV2 v0.0.8</a> for quantization.
15
 
16
- Each branch contains an individual bits per weight, with the main one containing only the meaurement.json for further conversions.
17
-
18
  Conversion was done using wikitext-103-raw-v1-test.parquet as calibration dataset.
19
 
20
- 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.
21
-
22
  Original model: https://huggingface.co/TinyLlama/TinyLlama-1.1B-intermediate-step-955k-token-2T
23
-
24
- <a href="https://huggingface.co/bartowski/TinyLlama-1.1B-intermediate-step-955k-token-2T-exl2/tree/8_0">8.0 bits per weight</a>
25
 
26
  ## Download instructions
27
 
28
  With git:
29
 
30
  ```shell
31
- git clone --single-branch --branch 4_0 https://huggingface.co/bartowski/TinyLlama-1.1B-intermediate-step-955k-token-2T-exl2
32
  ```
33
 
34
  With huggingface hub (credit to TheBloke for instructions):
@@ -37,16 +30,9 @@ With huggingface hub (credit to TheBloke for instructions):
37
  pip3 install huggingface-hub
38
  ```
39
 
40
- To download the `main` (only useful if you only care about measurement.json) branch to a folder called `TinyLlama-1.1B-intermediate-step-955k-token-2T-exl2`:
41
-
42
- ```shell
43
- mkdir TinyLlama-1.1B-intermediate-step-955k-token-2T-exl2
44
- huggingface-cli download bartowski/TinyLlama-1.1B-intermediate-step-955k-token-2T-exl2 --local-dir TinyLlama-1.1B-intermediate-step-955k-token-2T-exl2 --local-dir-use-symlinks False
45
- ```
46
-
47
  To download from a different branch, add the `--revision` parameter:
48
 
49
  ```shell
50
  mkdir TinyLlama-1.1B-intermediate-step-955k-token-2T-exl2
51
- huggingface-cli download bartowski/TinyLlama-1.1B-intermediate-step-955k-token-2T-exl2 --revision 4_0 --local-dir TinyLlama-1.1B-intermediate-step-955k-token-2T-exl2 --local-dir-use-symlinks False
52
  ```
 
6
  language:
7
  - en
8
  quantized_by: bartowski
 
9
  ---
10
 
11
+ # Exllama v2 Quantizations of TinyLlama-1.1B-intermediate-step-955k-token-2T at 6.0 bits per weight
12
 
13
  Using <a href="https://github.com/turboderp/exllamav2/releases/tag/v0.0.8">turboderp's ExLlamaV2 v0.0.8</a> for quantization.
14
 
 
 
15
  Conversion was done using wikitext-103-raw-v1-test.parquet as calibration dataset.
16
 
 
 
17
  Original model: https://huggingface.co/TinyLlama/TinyLlama-1.1B-intermediate-step-955k-token-2T
 
 
18
 
19
  ## Download instructions
20
 
21
  With git:
22
 
23
  ```shell
24
+ git clone --single-branch --branch 6.0 https://huggingface.co/bartowski/TinyLlama-1.1B-intermediate-step-955k-token-2T-exl2
25
  ```
26
 
27
  With huggingface hub (credit to TheBloke for instructions):
 
30
  pip3 install huggingface-hub
31
  ```
32
 
 
 
 
 
 
 
 
33
  To download from a different branch, add the `--revision` parameter:
34
 
35
  ```shell
36
  mkdir TinyLlama-1.1B-intermediate-step-955k-token-2T-exl2
37
+ huggingface-cli download bartowski/TinyLlama-1.1B-intermediate-step-955k-token-2T-exl2 --revision 6_0 --local-dir TinyLlama-1.1B-intermediate-step-955k-token-2T-exl2 --local-dir-use-symlinks False
38
  ```
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "meta-llama/Llama-2-7b-hf",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
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
+ "tie_word_embeddings": false,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.31.0.dev0",
23
+ "use_cache": true,
24
+ "vocab_size": 32000
25
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 1,
3
+ "eos_token_id": 2,
4
+ "pad_token_id": 0,
5
+ "max_length": 2048,
6
+ "transformers_version": "4.31.0.dev0"
7
+ }
output.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:433b529fb935ec83bcde53e0d88389216f616ad49cf22f8188fb965107a7d283
3
+ size 911711656
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:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "bos_token": {
5
+ "__type": "AddedToken",
6
+ "content": "<s>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "clean_up_tokenization_spaces": false,
13
+ "eos_token": {
14
+ "__type": "AddedToken",
15
+ "content": "</s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false
20
+ },
21
+ "legacy": false,
22
+ "model_max_length": 1000000000000000019884624838656,
23
+ "pad_token": null,
24
+ "padding_side": "right",
25
+ "sp_model_kwargs": {},
26
+ "tokenizer_class": "LlamaTokenizer",
27
+ "unk_token": {
28
+ "__type": "AddedToken",
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false
34
+ }
35
+ }