bartowski commited on
Commit
6a9e143
·
verified ·
1 Parent(s): 466444c

measurement.json

Browse files
Files changed (2) hide show
  1. README.md +81 -0
  2. measurement.json +0 -0
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - zh
5
+ - en
6
+ pipeline_tag: text-generation
7
+ quantized_by: bartowski
8
+ ---
9
+
10
+ ## Exllama v2 Quantizations of Chat2DB-SQL-7B
11
+
12
+ Using <a href="https://github.com/turboderp/exllamav2/releases/tag/v0.0.18">turboderp's ExLlamaV2 v0.0.18</a> for quantization.
13
+
14
+ <b>The "main" branch only contains the measurement.json, download one of the other branches for the model (see below)</b>
15
+
16
+ Each branch contains an individual bits per weight, with the main one containing only the meaurement.json for further conversions.
17
+
18
+ Original model: https://huggingface.co/Chat2DB/Chat2DB-SQL-7B
19
+
20
+ ## Prompt format
21
+
22
+ No chat template specified so default is used. This may be incorrect, check original model card for details.
23
+
24
+ ```
25
+ <s> [INST] <<SYS>>
26
+ {system_prompt}
27
+ <</SYS>>
28
+
29
+ {prompt} [/INST] </s>
30
+ ```
31
+
32
+ ## Available sizes
33
+
34
+ No GQA - VRAM requirements will be higher
35
+
36
+ | Branch | Bits | lm_head bits | Size (4k) | Size (16k) | Description |
37
+ | -------------------------------------------------------------- | ---- | ------------ | --------- | ---------- | ----------- |
38
+ | [8_0](https://huggingface.co/bartowski/Chat2DB-SQL-7B-exl2/tree/8_0) | 8.0 | 8.0 | 9.4 GB | 15.6 GB | Maximum quality that ExLlamaV2 can produce, near unquantized performance. |
39
+ | [6_5](https://huggingface.co/bartowski/Chat2DB-SQL-7B-exl2/tree/6_5) | 6.5 | 8.0 | 8.6 GB | 14.8 GB | Near unquantized performance at vastly reduced size, **recommended**. |
40
+ | [5_0](https://huggingface.co/bartowski/Chat2DB-SQL-7B-exl2/tree/5_0) | 5.0 | 6.0 | 7.2 GB | 13.4 GB | Slightly lower quality vs 6.5, but usable on 8GB cards with 4k context. |
41
+ | [4_25](https://huggingface.co/bartowski/Chat2DB-SQL-7B-exl2/tree/4_25) | 4.25 | 6.0 | 6.5 GB | 12.7 GB | GPTQ equivalent bits per weight. |
42
+ | [3_5](https://huggingface.co/bartowski/Chat2DB-SQL-7B-exl2/tree/3_5) | 3.5 | 6.0 | 5.9 GB | 12.1 GB | Lower quality, not recommended. |
43
+
44
+ ## Download instructions
45
+
46
+ With git:
47
+
48
+ ```shell
49
+ git clone --single-branch --branch 6_5 https://huggingface.co/bartowski/Chat2DB-SQL-7B-exl2 Chat2DB-SQL-7B-exl2-6_5
50
+ ```
51
+
52
+ With huggingface hub (credit to TheBloke for instructions):
53
+
54
+ ```shell
55
+ pip3 install huggingface-hub
56
+ ```
57
+
58
+ To download the `main` (only useful if you only care about measurement.json) branch to a folder called `Chat2DB-SQL-7B-exl2`:
59
+
60
+ ```shell
61
+ mkdir Chat2DB-SQL-7B-exl2
62
+ huggingface-cli download bartowski/Chat2DB-SQL-7B-exl2 --local-dir Chat2DB-SQL-7B-exl2 --local-dir-use-symlinks False
63
+ ```
64
+
65
+ To download from a different branch, add the `--revision` parameter:
66
+
67
+ Linux:
68
+
69
+ ```shell
70
+ mkdir Chat2DB-SQL-7B-exl2-6_5
71
+ huggingface-cli download bartowski/Chat2DB-SQL-7B-exl2 --revision 6_5 --local-dir Chat2DB-SQL-7B-exl2-6_5 --local-dir-use-symlinks False
72
+ ```
73
+
74
+ Windows (which apparently doesn't like _ in folders sometimes?):
75
+
76
+ ```shell
77
+ mkdir Chat2DB-SQL-7B-exl2-6.5
78
+ huggingface-cli download bartowski/Chat2DB-SQL-7B-exl2 --revision 6_5 --local-dir Chat2DB-SQL-7B-exl2-6.5 --local-dir-use-symlinks False
79
+ ```
80
+
81
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
measurement.json ADDED
The diff for this file is too large to render. See raw diff