Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| Starling-LM-7B-alpha.Q2_K.gguf | Q2_K | 2.53GB |
| Starling-LM-7B-alpha.IQ3_XS.gguf | IQ3_XS | 2.81GB |
| Starling-LM-7B-alpha.IQ3_S.gguf | IQ3_S | 2.96GB |
| Starling-LM-7B-alpha.Q3_K_S.gguf | Q3_K_S | 2.95GB |
| Starling-LM-7B-alpha.IQ3_M.gguf | IQ3_M | 3.06GB |
| Starling-LM-7B-alpha.Q3_K.gguf | Q3_K | 3.28GB |
| Starling-LM-7B-alpha.Q3_K_M.gguf | Q3_K_M | 3.28GB |
| Starling-LM-7B-alpha.Q3_K_L.gguf | Q3_K_L | 3.56GB |
| Starling-LM-7B-alpha.IQ4_XS.gguf | IQ4_XS | 3.67GB |
| Starling-LM-7B-alpha.Q4_0.gguf | Q4_0 | 3.83GB |
| Starling-LM-7B-alpha.IQ4_NL.gguf | IQ4_NL | 3.87GB |
| Starling-LM-7B-alpha.Q4_K_S.gguf | Q4_K_S | 3.86GB |
| Starling-LM-7B-alpha.Q4_K.gguf | Q4_K | 4.07GB |
| Starling-LM-7B-alpha.Q4_K_M.gguf | Q4_K_M | 4.07GB |
| Starling-LM-7B-alpha.Q4_1.gguf | Q4_1 | 4.24GB |
| Starling-LM-7B-alpha.Q5_0.gguf | Q5_0 | 4.65GB |
| Starling-LM-7B-alpha.Q5_K_S.gguf | Q5_K_S | 4.65GB |
| Starling-LM-7B-alpha.Q5_K.gguf | Q5_K | 4.78GB |
| Starling-LM-7B-alpha.Q5_K_M.gguf | Q5_K_M | 4.78GB |
| Starling-LM-7B-alpha.Q5_1.gguf | Q5_1 | 5.07GB |
| Starling-LM-7B-alpha.Q6_K.gguf | Q6_K | 5.53GB |
| Model | Tuning Method | MT Bench | AlpacaEval | MMLU |
|---|---|---|---|---|
| GPT-4-Turbo | ? | 9.32 | 97.70 | |
| GPT-4 | SFT + PPO | 8.99 | 95.28 | 86.4 |
| Starling-7B | C-RLFT + APA | 8.09 | 91.99 | 63.9 |
| Claude-2 | ? | 8.06 | 91.36 | 78.5 |
| GPT-3.5-Turbo | ? | 7.94 | 89.37 | 70 |
| Claude-1 | ? | 7.9 | 88.39 | 77 |
| Tulu-2-dpo-70b | SFT + DPO | 7.89 | 95.1 | |
| Openchat-3.5 | C-RLFT | 7.81 | 88.51 | 64.3 |
| Zephyr-7B-beta | SFT + DPO | 7.34 | 90.60 | 61.4 |
| Llama-2-70b-chat-hf | SFT + PPO | 6.86 | 92.66 | 63 |
| Neural-chat-7b-v3-1 | SFT + DPO | 6.84 | 84.53 | 62.4 |
| Tulu-2-dpo-7b | SFT + DPO | 6.29 | 85.1 |
import transformers
tokenizer = transformers.AutoTokenizer.from_pretrained("openchat/openchat_3.5")
# Single-turn
tokens = tokenizer("GPT4 Correct User: Hello<|end_of_turn|>GPT4 Correct Assistant:").input_ids
assert tokens == [1, 420, 6316, 28781, 3198, 3123, 1247, 28747, 22557, 32000, 420, 6316, 28781, 3198, 3123, 21631, 28747]
# Multi-turn
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
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]
# Coding Mode
tokens = tokenizer("Code User: Implement quicksort using C++<|end_of_turn|>Code Assistant:").input_ids
assert tokens == [1, 7596, 1247, 28747, 26256, 2936, 7653, 1413, 334, 1680, 32000, 7596, 21631, 28747]1import transformers
2
3tokenizer = transformers.AutoTokenizer.from_pretrained("berkeley-nest/Starling-LM-7B-alpha")
4model = transformers.AutoModelForCausalLM.from_pretrained("berkeley-nest/Starling-LM-7B-alpha")
5
6def generate_response(prompt):
7 input_ids = tokenizer(prompt, return_tensors="pt").input_ids
8 outputs = model.generate(
9 input_ids,
10 max_length=256,
11 pad_token_id=tokenizer.pad_token_id,
12 eos_token_id=tokenizer.eos_token_id,
13 )
14 response_ids = outputs[0]
15 response_text = tokenizer.decode(response_ids, skip_special_tokens=True)
16 return response_text
17
18# Single-turn conversation
19prompt = "Hello, how are you?"
20single_turn_prompt = f"GPT4 Correct User: {prompt}<|end_of_turn|>GPT4 Correct Assistant:"
21response_text = generate_response(single_turn_prompt)
22print("Response:", response_text)
23
24## Multi-turn conversation
25prompt = "Hello"
26follow_up_question = "How are you today?"
27response = ""
28multi_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:"
29response_text = generate_response(multi_turn_prompt)
30print("Multi-turn conversation response:", response_text)
31
32### Coding conversation
33prompt = "Implement quicksort using C++"
34coding_prompt = f"Code User: {prompt}<|end_of_turn|>Code Assistant:"
35response = generate_response(coding_prompt)
36print("Coding conversation response:", response)@misc{starling2023,
title = {Starling-7B: Improving LLM Helpfulness & Harmlessness with RLAIF},
url = {},
author = {Zhu, Banghua and Frick, Evan and Wu, Tianhao and Zhu, Hanlin and Jiao, Jiantao},
month = {November},
year = {2023}
}