Update README.md
Browse files
README.md
CHANGED
@@ -15,27 +15,29 @@ This is a [GPTQ-for-LLaMa](https://github.com/qwopqwop200/GPTQ-for-LLaMa) 4bit q
|
|
15 |
|
16 |
## GIBBERISH OUTPUT IN `text-generation-webui`?
|
17 |
|
18 |
-
Please read the Provided Files section below. You should use `medalpaca-13B-GPTQ-4bit-128g.no-act-order.safetensors` unless you are able to
|
19 |
|
20 |
## Provided files
|
21 |
|
22 |
Two files are provided. **The second file will not work unless you use recent GPTQ-for-LLaMa code**
|
23 |
|
24 |
-
Specifically, the second file uses `--act-order` for maximum quantisation quality and will not work with oobabooga's fork of GPTQ-for-LLaMa. Therefore at this time it will also not work with `text-generation-webui` one-click installers.
|
25 |
|
26 |
Unless you are able to use the latest GPTQ-for-LLaMa code, please use `medalpaca-13B-GPTQ-4bit-128g.no-act-order.safetensors`
|
27 |
|
28 |
* `medalpaca-13B-GPTQ-4bit-128g.no-act-order.safetensors`
|
29 |
-
* Works with all versions of GPTQ-for-LLaMa code
|
30 |
* Works with text-generation-webui one-click-installers
|
|
|
31 |
* Parameters: Groupsize = 128g. No act-order.
|
32 |
* Command:
|
33 |
```
|
34 |
CUDA_VISIBLE_DEVICES=0 python3 llama.py medalpaca-13b c4 --wbits 4 --true-sequential --groupsize 128 --save_safetensors medalpaca-13B-GPTQ-4bit-128g.no-act-order.safetensors
|
35 |
```
|
36 |
* `medalpaca-13B-GPTQ-4bit-128g.safetensors`
|
37 |
-
* Only works with the latest GPTQ-for-LLaMa
|
38 |
* **Does not** work with text-generation-webui one-click-installers
|
|
|
39 |
* Parameters: Groupsize = 128g. act-order.
|
40 |
* Offers highest quality quantisation, but requires recent GPTQ-for-LLaMa code
|
41 |
* Command:
|
@@ -51,7 +53,7 @@ File `medalpaca-13B-GPTQ-4bit-128g.no-act-order.safetensors` can be loaded the s
|
|
51 |
|
52 |
The other `safetensors` model file was created with the latest GPTQ code, and uses `--act-order` to give the maximum possible quantisation quality, but this means it requires that the latest GPTQ-for-LLaMa is used inside the UI.
|
53 |
|
54 |
-
If you want to use the act-order `safetensors` file and need to update GPTQ-for-LLaMa, here are the commands I used to clone the Triton branch of GPTQ-for-LLaMa, clone text-generation-webui, and install GPTQ into the UI:
|
55 |
```
|
56 |
# Clone text-generation-webui, if you don't already have it
|
57 |
git clone https://github.com/oobabooga/text-generation-webui
|
@@ -65,22 +67,12 @@ git clone https://github.com/qwopqwop200/GPTQ-for-LLaMa
|
|
65 |
Then install this model into `text-generation-webui/models` and launch the UI as follows:
|
66 |
```
|
67 |
cd text-generation-webui
|
68 |
-
python server.py --model
|
69 |
```
|
70 |
|
71 |
The above commands assume you have installed all dependencies for GPTQ-for-LLaMa and text-generation-webui. Please see their respective repositories for further information.
|
72 |
|
73 |
-
If you
|
74 |
-
```
|
75 |
-
git clone https://github.com/qwopqwop200/GPTQ-for-LLaMa -b cuda
|
76 |
-
cd GPTQ-for-LLaMa
|
77 |
-
python setup_cuda.py install
|
78 |
-
```
|
79 |
-
Then link that into `text-generation-webui/repositories` as described above.
|
80 |
-
|
81 |
-
However I have heard reports that the CUDA code may run quite slow.
|
82 |
-
|
83 |
-
Or just use `medalpaca-13B-GPTQ-4bit-128g.no-act-order.safetensors` as mentioned above, which should work without any upgrades to text-generation-webui.
|
84 |
|
85 |
# Original model card: MedAlpaca 13b
|
86 |
|
|
|
15 |
|
16 |
## GIBBERISH OUTPUT IN `text-generation-webui`?
|
17 |
|
18 |
+
Please read the Provided Files section below. You should use `medalpaca-13B-GPTQ-4bit-128g.no-act-order.safetensors` unless you are able to use the latest Triton branch of GPTQ-for-LLaMa.
|
19 |
|
20 |
## Provided files
|
21 |
|
22 |
Two files are provided. **The second file will not work unless you use recent GPTQ-for-LLaMa code**
|
23 |
|
24 |
+
Specifically, the second file uses `--act-order` for maximum quantisation quality and will not work with oobabooga's fork of GPTQ-for-LLaMa. Therefore at this time it will also not work with the CUDA branch of GPTQ-for-LLaMa, or `text-generation-webui` one-click installers.
|
25 |
|
26 |
Unless you are able to use the latest GPTQ-for-LLaMa code, please use `medalpaca-13B-GPTQ-4bit-128g.no-act-order.safetensors`
|
27 |
|
28 |
* `medalpaca-13B-GPTQ-4bit-128g.no-act-order.safetensors`
|
29 |
+
* Works with all versions of GPTQ-for-LLaMa code, both Triton and CUDA branches
|
30 |
* Works with text-generation-webui one-click-installers
|
31 |
+
* Works on Windows
|
32 |
* Parameters: Groupsize = 128g. No act-order.
|
33 |
* Command:
|
34 |
```
|
35 |
CUDA_VISIBLE_DEVICES=0 python3 llama.py medalpaca-13b c4 --wbits 4 --true-sequential --groupsize 128 --save_safetensors medalpaca-13B-GPTQ-4bit-128g.no-act-order.safetensors
|
36 |
```
|
37 |
* `medalpaca-13B-GPTQ-4bit-128g.safetensors`
|
38 |
+
* Only works with the latest Triton branch of GPTQ-for-LLaMa
|
39 |
* **Does not** work with text-generation-webui one-click-installers
|
40 |
+
* **Does not** work on Windows
|
41 |
* Parameters: Groupsize = 128g. act-order.
|
42 |
* Offers highest quality quantisation, but requires recent GPTQ-for-LLaMa code
|
43 |
* Command:
|
|
|
53 |
|
54 |
The other `safetensors` model file was created with the latest GPTQ code, and uses `--act-order` to give the maximum possible quantisation quality, but this means it requires that the latest GPTQ-for-LLaMa is used inside the UI.
|
55 |
|
56 |
+
If you want to use the act-order `safetensors` file and need to update the Triton branch of GPTQ-for-LLaMa, here are the commands I used to clone the Triton branch of GPTQ-for-LLaMa, clone text-generation-webui, and install GPTQ into the UI:
|
57 |
```
|
58 |
# Clone text-generation-webui, if you don't already have it
|
59 |
git clone https://github.com/oobabooga/text-generation-webui
|
|
|
67 |
Then install this model into `text-generation-webui/models` and launch the UI as follows:
|
68 |
```
|
69 |
cd text-generation-webui
|
70 |
+
python server.py --model medalpaca-13B-GPTQ-4bit --wbits 4 --groupsize 128 --model_type Llama # add any other command line args you want
|
71 |
```
|
72 |
|
73 |
The above commands assume you have installed all dependencies for GPTQ-for-LLaMa and text-generation-webui. Please see their respective repositories for further information.
|
74 |
|
75 |
+
If you can't update GPTQ-for-LLaMa to the latest Triton branch, or don't want to, you can use `medalpaca-13B-GPTQ-4bit-128g.no-act-order.safetensors` as mentioned above, which should work without any upgrades to text-generation-webui.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
# Original model card: MedAlpaca 13b
|
78 |
|