TheBloke commited on
Commit
d47de06
1 Parent(s): 6f23875

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +96 -0
README.md CHANGED
@@ -1,3 +1,99 @@
1
  ---
2
  license: other
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: other
3
+ inference: false
4
  ---
5
+ # Vicuna 7B 1.1 GPTQ 4bit 128g
6
+
7
+ This is a 4-bit GPTQ version of the [Vicuna 7B 1.1 model](https://huggingface.co/lmsys/vicuna-7b-delta-v1.1).
8
+
9
+ It was created by merging the deltas provided in the above repo with the original Llama 7B model, [using the code provided on their Github page](https://github.com/lm-sys/FastChat#vicuna-weights).
10
+
11
+ It was then quantized to 4bit using [GPTQ-for-LLaMa](https://github.com/qwopqwop200/GPTQ-for-LLaMa).
12
+
13
+ ## Provided files
14
+
15
+ Two model files are provided. Ideally use the `safetensors` file. Full details below:
16
+
17
+ Details of the files provided:
18
+ * `vicuna-7B-1.1-GPTQ-4bit-128g.safetensors`
19
+ * `safetensors` format, with improved file security, created with the latest [GPTQ-for-LLaMa](https://github.com/qwopqwop200/GPTQ-for-LLaMa) code.
20
+ * Command to create:
21
+ * `python3 llama.py vicuna-7B-1.1-HF c4 --wbits 4 --true-sequential --act-order --groupsize 128 --save_safetensors vicuna-7B-1.1-GPTQ-4bit-128g.safetensors`
22
+ * vicuna-7B-1.1-GPTQ-4bit-128g.safetensors.no-act-order.pt`
23
+ * `pt` format file, created without the `--act-order` flag.
24
+ * This file may have slightly lower quality, but is included as it can be used without needing to compile the latest GPTQ-for-LLaMa code.
25
+ * It should hopefully therefore work with one-click-installers on Windows, which include the older GPTQ-for-LLaMa code.
26
+ * Command to create:
27
+ * `python3 llama.py vicuna-7B-1.1-HF c4 --wbits 4 --true-sequential --groupsize 128 --save_safetensors vicuna-7B-1.1-GPTQ-4bit-128g.no-act-order.pt`
28
+
29
+ ## How to run in `text-generation-webui`
30
+
31
+ File `vicuna-7B-1.1-GPTQ-4bit-128g.no-act-order.pt` can be loaded the same as any other GPTQ file, without requiring any updates to [oobaboogas text-generation-webui](https://github.com/oobabooga/text-generation-webui).
32
+
33
+ The `safetensors` model file was created with the latest GPTQ code, and may be highere quality, but requires that the latest GPTQ-for-LLaMa is used inside the UI.
34
+
35
+ 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:
36
+ ```
37
+ git clone https://github.com/qwopqwop200/GPTQ-for-LLaMa
38
+ git clone https://github.com/oobabooga/text-generation-webui
39
+ mkdir -p text-generation-webui/repositories
40
+ ln -s GPTQ-for-LLaMa text-generation-webui/repositories/GPTQ-for-LLaMa
41
+ ```
42
+
43
+ Then install this model into `text-generation-webui/models` and launch the UI as follows:
44
+ ```
45
+ cd text-generation-webui
46
+ python server.py --model vicuna-7B-1.1-GPTQ-4bit-128g --wbits 4 --groupsize 128 --model_type Llama # add any other command line args you want
47
+ ```
48
+
49
+ 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.
50
+
51
+ If you are on Windows, or cannot use the Triton branch of GPTQ for any other reason, you can instead use the CUDA branch:
52
+ ```
53
+ git clone https://github.com/qwopqwop200/GPTQ-for-LLaMa -b cuda
54
+ cd GPTQ-for-LLaMa
55
+ python setup_cuda.py install
56
+ ```
57
+ Then link that into `text-generation-webui/repositories` as described above.
58
+
59
+ Or just use `vicuna-7B-1.1-GPTQ-4bit-128g.no-act-order.pt` as mentioned above.
60
+
61
+ # Vicuna Model Card
62
+
63
+ ## Model details
64
+
65
+ **Model type:**
66
+ Vicuna is an open-source chatbot trained by fine-tuning LLaMA on user-shared conversations collected from ShareGPT.
67
+ It is an auto-regressive language model, based on the transformer architecture.
68
+
69
+ **Model date:**
70
+ Vicuna was trained between March 2023 and April 2023.
71
+
72
+ **Organizations developing the model:**
73
+ The Vicuna team with members from UC Berkeley, CMU, Stanford, and UC San Diego.
74
+
75
+ **Paper or resources for more information:**
76
+ https://vicuna.lmsys.org/
77
+
78
+ **License:**
79
+ Apache License 2.0
80
+
81
+ **Where to send questions or comments about the model:**
82
+ https://github.com/lm-sys/FastChat/issues
83
+
84
+ ## Intended use
85
+ **Primary intended uses:**
86
+ The primary use of Vicuna is research on large language models and chatbots.
87
+
88
+ **Primary intended users:**
89
+ The primary intended users of the model are researchers and hobbyists in natural language processing, machine learning, and artificial intelligence.
90
+
91
+ ## Training dataset
92
+ 70K conversations collected from ShareGPT.com.
93
+
94
+ ## Evaluation dataset
95
+ A preliminary evaluation of the model quality is conducted by creating a set of 80 diverse questions and utilizing GPT-4 to judge the model outputs. See https://vicuna.lmsys.org/ for more details.
96
+
97
+ ## Major updates of weights v1.1
98
+ - Refactor the tokenization and separator. In Vicuna v1.1, the separator has been changed from `"###"` to the EOS token `"</s>"`. This change makes it easier to determine the generation stop criteria and enables better compatibility with other libraries.
99
+ - Fix the supervised fine-tuning loss computation for better model quality.