RichardErkhov commited on
Commit
cb0a49a
·
verified ·
1 Parent(s): 962f88d

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +165 -0
README.md ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
+
3
+ [Github](https://github.com/RichardErkhov)
4
+
5
+ [Discord](https://discord.gg/pvy7H8DZMG)
6
+
7
+ [Request more models](https://github.com/RichardErkhov/quant_request)
8
+
9
+
10
+ Starling-LM-7B-beta-laser-dpo - GGUF
11
+ - Model creator: https://huggingface.co/invalid-coder/
12
+ - Original model: https://huggingface.co/invalid-coder/Starling-LM-7B-beta-laser-dpo/
13
+
14
+
15
+ | Name | Quant method | Size |
16
+ | ---- | ---- | ---- |
17
+ | [Starling-LM-7B-beta-laser-dpo.Q2_K.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q2_K.gguf) | Q2_K | 2.53GB |
18
+ | [Starling-LM-7B-beta-laser-dpo.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.IQ3_XS.gguf) | IQ3_XS | 2.81GB |
19
+ | [Starling-LM-7B-beta-laser-dpo.IQ3_S.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.IQ3_S.gguf) | IQ3_S | 2.96GB |
20
+ | [Starling-LM-7B-beta-laser-dpo.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q3_K_S.gguf) | Q3_K_S | 2.95GB |
21
+ | [Starling-LM-7B-beta-laser-dpo.IQ3_M.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.IQ3_M.gguf) | IQ3_M | 3.06GB |
22
+ | [Starling-LM-7B-beta-laser-dpo.Q3_K.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q3_K.gguf) | Q3_K | 3.28GB |
23
+ | [Starling-LM-7B-beta-laser-dpo.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q3_K_M.gguf) | Q3_K_M | 3.28GB |
24
+ | [Starling-LM-7B-beta-laser-dpo.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q3_K_L.gguf) | Q3_K_L | 3.56GB |
25
+ | [Starling-LM-7B-beta-laser-dpo.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.IQ4_XS.gguf) | IQ4_XS | 3.67GB |
26
+ | [Starling-LM-7B-beta-laser-dpo.Q4_0.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q4_0.gguf) | Q4_0 | 3.83GB |
27
+ | [Starling-LM-7B-beta-laser-dpo.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.IQ4_NL.gguf) | IQ4_NL | 3.87GB |
28
+ | [Starling-LM-7B-beta-laser-dpo.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q4_K_S.gguf) | Q4_K_S | 3.86GB |
29
+ | [Starling-LM-7B-beta-laser-dpo.Q4_K.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q4_K.gguf) | Q4_K | 4.07GB |
30
+ | [Starling-LM-7B-beta-laser-dpo.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q4_K_M.gguf) | Q4_K_M | 4.07GB |
31
+ | [Starling-LM-7B-beta-laser-dpo.Q4_1.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q4_1.gguf) | Q4_1 | 4.24GB |
32
+ | [Starling-LM-7B-beta-laser-dpo.Q5_0.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q5_0.gguf) | Q5_0 | 4.65GB |
33
+ | [Starling-LM-7B-beta-laser-dpo.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q5_K_S.gguf) | Q5_K_S | 4.65GB |
34
+ | [Starling-LM-7B-beta-laser-dpo.Q5_K.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q5_K.gguf) | Q5_K | 4.78GB |
35
+ | [Starling-LM-7B-beta-laser-dpo.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q5_K_M.gguf) | Q5_K_M | 4.78GB |
36
+ | [Starling-LM-7B-beta-laser-dpo.Q5_1.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q5_1.gguf) | Q5_1 | 5.07GB |
37
+ | [Starling-LM-7B-beta-laser-dpo.Q6_K.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q6_K.gguf) | Q6_K | 5.53GB |
38
+ | [Starling-LM-7B-beta-laser-dpo.Q8_0.gguf](https://huggingface.co/RichardErkhov/invalid-coder_-_Starling-LM-7B-beta-laser-dpo-gguf/blob/main/Starling-LM-7B-beta-laser-dpo.Q8_0.gguf) | Q8_0 | 7.17GB |
39
+
40
+
41
+
42
+
43
+ Original model description:
44
+ ---
45
+ license: apache-2.0
46
+ datasets:
47
+ - berkeley-nest/Nectar
48
+ language:
49
+ - en
50
+ library_name: transformers
51
+ tags:
52
+ - reward model
53
+ - RLHF
54
+ - RLAIF
55
+ ---
56
+
57
+ # Starling-LM-7B-beta-laser-dpo
58
+
59
+ It follows the implementation of laserRMT
60
+ @ https://github.com/cognitivecomputations/laserRMT and the novel training
61
+ technique - we partially freeze the model according to a laser-like analysis
62
+ (Official Paper soon) which effectively prevents the significant problem of
63
+ language models forgetting previously acquired knowledge. This aspect is
64
+ particularly crucial when attempting to teach the model specific skills, such as function calling.
65
+
66
+ # Starling-LM-7B-beta
67
+
68
+ <!-- Provide a quick summary of what the model is/does. -->
69
+
70
+ - **Developed by: The Nexusflow Team (** Banghua Zhu * , Evan Frick * , Tianhao Wu * , Hanlin Zhu, Karthik Ganesan, Wei-Lin Chiang, Jian Zhang, and Jiantao Jiao).
71
+ - **Model type:** Language Model finetuned with RLHF / RLAIF
72
+ - **License:** Apache-2.0 license under the condition that the model is not used to compete with OpenAI
73
+ - **Finetuned from model:** [Openchat-3.5-0106](https://huggingface.co/openchat/openchat-3.5-0106) (based on [Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1))
74
+
75
+
76
+
77
+ We introduce Starling-LM-7B-beta, an open large language model (LLM) trained by Reinforcement Learning from AI Feedback (RLAIF). Starling-LM-7B-beta is trained from [Openchat-3.5-0106](https://huggingface.co/openchat/openchat-3.5-0106) with our new reward model [Nexusflow/Starling-RM-34B](https://huggingface.co/Nexusflow/Starling-RM-34B) and policy optimization method [Fine-Tuning Language Models from Human Preferences (PPO)](https://arxiv.org/abs/1909.08593).
78
+ Harnessing the power of the ranking dataset, [berkeley-nest/Nectar](https://huggingface.co/datasets/berkeley-nest/Nectar), the upgraded reward model, [Starling-RM-34B](https://huggingface.co/Nexusflow/Starling-RM-34B), and the new reward training and policy tuning pipeline, Starling-LM-7B-beta scores an improved 8.12 in MT Bench with GPT-4 as a judge.
79
+
80
+
81
+ ## Uses
82
+
83
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
84
+
85
+ **Important: Please use the exact chat template provided below for the model. Otherwise there will be a degrade in the performance. The model output can be verbose in rare cases. Please consider setting temperature = 0 to make this happen less.**
86
+
87
+ Our model follows the exact chat template and usage as [Openchat-3.5-0106](https://huggingface.co/openchat/openchat-3.5-0106). Please refer to their model card for more details.
88
+ In addition, our model is hosted on LMSYS [Chatbot Arena](https://chat.lmsys.org) for free test.
89
+
90
+ The conversation template is the same as Openchat-3.5-0106:
91
+ ```
92
+ import transformers
93
+ tokenizer = transformers.AutoTokenizer.from_pretrained("openchat/openchat-3.5-0106")
94
+
95
+ # Single-turn
96
+ tokens = tokenizer("GPT4 Correct User: Hello<|end_of_turn|>GPT4 Correct Assistant:").input_ids
97
+ assert tokens == [1, 420, 6316, 28781, 3198, 3123, 1247, 28747, 22557, 32000, 420, 6316, 28781, 3198, 3123, 21631, 28747]
98
+
99
+ # Multi-turn
100
+ tokens = tokenizer("GPT4 Correct User: Hello<|end_of_turn|>GPT4 Correct Assistant: Hi<|end_of_turn|>GPT4 Correct User: How are you today?<|end_of_turn|>GPT4 Correct Assistant:").input_ids
101
+ assert tokens == [1, 420, 6316, 28781, 3198, 3123, 1247, 28747, 22557, 32000, 420, 6316, 28781, 3198, 3123, 21631, 28747, 15359, 32000, 420, 6316, 28781, 3198, 3123, 1247, 28747, 1602, 460, 368, 3154, 28804, 32000, 420, 6316, 28781, 3198, 3123, 21631, 28747]
102
+
103
+ # Coding Mode
104
+ tokens = tokenizer("Code User: Implement quicksort using C++<|end_of_turn|>Code Assistant:").input_ids
105
+ assert tokens == [1, 7596, 1247, 28747, 26256, 2936, 7653, 1413, 334, 1680, 32000, 7596, 21631, 28747]
106
+ ```
107
+ ## Code Examples
108
+
109
+ ```python
110
+ import transformers
111
+
112
+ tokenizer = transformers.AutoTokenizer.from_pretrained("Nexusflow/Starling-LM-7B-beta")
113
+ model = transformers.AutoModelForCausalLM.from_pretrained("Nexusflow/Starling-LM-7B-beta")
114
+
115
+ def generate_response(prompt):
116
+ input_ids = tokenizer(prompt, return_tensors="pt").input_ids
117
+ outputs = model.generate(
118
+ input_ids,
119
+ max_length=256,
120
+ pad_token_id=tokenizer.pad_token_id,
121
+ eos_token_id=tokenizer.eos_token_id,
122
+ )
123
+ response_ids = outputs[0]
124
+ response_text = tokenizer.decode(response_ids, skip_special_tokens=True)
125
+ return response_text
126
+
127
+ # Single-turn conversation
128
+ prompt = "Hello, how are you?"
129
+ single_turn_prompt = f"GPT4 Correct User: {prompt}<|end_of_turn|>GPT4 Correct Assistant:"
130
+ response_text = generate_response(single_turn_prompt)
131
+ print("Response:", response_text)
132
+
133
+ ## Multi-turn conversation
134
+ prompt = "Hello"
135
+ follow_up_question = "How are you today?"
136
+ response = ""
137
+ multi_turn_prompt = f"GPT4 Correct User: {prompt}<|end_of_turn|>GPT4 Correct Assistant: {response}<|end_of_turn|>GPT4 Correct User: {follow_up_question}<|end_of_turn|>GPT4 Correct Assistant:"
138
+ response_text = generate_response(multi_turn_prompt)
139
+ print("Multi-turn conversation response:", response_text)
140
+
141
+ ### Coding conversation
142
+ prompt = "Implement quicksort using C++"
143
+ coding_prompt = f"Code User: {prompt}<|end_of_turn|>Code Assistant:"
144
+ response = generate_response(coding_prompt)
145
+ print("Coding conversation response:", response)
146
+ ```
147
+
148
+ ## License
149
+ The dataset, model and online demo is subject to the [Terms of Use](https://openai.com/policies/terms-of-use) of the data generated by OpenAI, and [Privacy Practices](https://chrome.google.com/webstore/detail/sharegpt-share-your-chatg/daiacboceoaocpibfodeljbdfacokfjb) of ShareGPT. Please contact us if you find any potential violation.
150
+
151
+
152
+ ## Acknowledgment
153
+ We would like to thank Tianle Li from UC Berkeley for detailed feedback and evaluation of this beta release. We would like to thank the [LMSYS Organization](https://lmsys.org/) for their support of [lmsys-chat-1M](https://huggingface.co/datasets/lmsys/lmsys-chat-1m) dataset, evaluation and online demo. We would like to thank the open source community for their efforts in providing the datasets and base models we used to develope the project, including but not limited to Anthropic, Llama, Mistral, Hugging Face H4, LMSYS, OpenChat, OpenBMB, Flan and ShareGPT.
154
+
155
+ ## Citation
156
+ ```
157
+ @misc{starling2023,
158
+ title = {Starling-7B: Improving LLM Helpfulness & Harmlessness with RLAIF},
159
+ url = {},
160
+ author = {Zhu, Banghua and Frick, Evan and Wu, Tianhao and Zhu, Hanlin and Ganesan, Karthik and Chiang, Wei-Lin and Zhang, Jian and Jiao, Jiantao},
161
+ month = {November},
162
+ year = {2023}
163
+ }
164
+ ```
165
+