Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| OpenBezoar-HH-RLHF-SFT.Q2_K.gguf | Q2_K | 1.84GB |
| OpenBezoar-HH-RLHF-SFT.IQ3_XS.gguf | IQ3_XS | 1.84GB |
| OpenBezoar-HH-RLHF-SFT.IQ3_S.gguf | IQ3_S | 1.84GB |
| OpenBezoar-HH-RLHF-SFT.Q3_K_S.gguf | Q3_K_S | 1.84GB |
| OpenBezoar-HH-RLHF-SFT.IQ3_M.gguf | IQ3_M | 1.92GB |
| OpenBezoar-HH-RLHF-SFT.Q3_K.gguf | Q3_K | 1.99GB |
| OpenBezoar-HH-RLHF-SFT.Q3_K_M.gguf | Q3_K_M | 1.99GB |
| OpenBezoar-HH-RLHF-SFT.Q3_K_L.gguf | Q3_K_L | 2.06GB |
| OpenBezoar-HH-RLHF-SFT.IQ4_XS.gguf | IQ4_XS | 1.86GB |
| OpenBezoar-HH-RLHF-SFT.Q4_0.gguf | Q4_0 | 1.84GB |
| OpenBezoar-HH-RLHF-SFT.IQ4_NL.gguf | IQ4_NL | 1.86GB |
| OpenBezoar-HH-RLHF-SFT.Q4_K_S.gguf | Q4_K_S | 2.24GB |
| OpenBezoar-HH-RLHF-SFT.Q4_K.gguf | Q4_K | 2.4GB |
| OpenBezoar-HH-RLHF-SFT.Q4_K_M.gguf | Q4_K_M | 2.4GB |
| OpenBezoar-HH-RLHF-SFT.Q4_1.gguf | Q4_1 | 2.04GB |
| OpenBezoar-HH-RLHF-SFT.Q5_0.gguf | Q5_0 | 2.23GB |
| OpenBezoar-HH-RLHF-SFT.Q5_K_S.gguf | Q5_K_S | 2.42GB |
| OpenBezoar-HH-RLHF-SFT.Q5_K.gguf | Q5_K | 2.57GB |
| OpenBezoar-HH-RLHF-SFT.Q5_K_M.gguf | Q5_K_M | 2.57GB |
| OpenBezoar-HH-RLHF-SFT.Q5_1.gguf | Q5_1 | 2.42GB |
| OpenBezoar-HH-RLHF-SFT.Q6_K.gguf | Q6_K | 3.39GB |
| OpenBezoar-HH-RLHF-SFT.Q8_0.gguf | Q8_0 | 3.39GB |
### System:
Below is an instruction that describes a task, optionally paired with an input that provides further context following that instruction. Write a response that appropriately completes the request.
### Instruction:
{instruction}
### Response:1from peft import PeftConfig, PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig, AutoModelForSeq2SeqLM
3
4checkpoint = "SurgeGlobal/OpenBezoar-HH-RLHF-SFT"
5
6tokenizer = AutoTokenizer.from_pretrained(checkpoint)
7
8model = AutoModelForCausalLM.from_pretrained(
9 checkpoint,
10 load_in_4bit=True, # optionally for low resource environments
11 device_map="auto"
12)
13
14prompt = """### System:
15Below is an instruction that describes a task, optionally paired with an input that provides further context following that instruction. Write a response that appropriately completes the request.
16
17### Instruction:
18{instruction}
19
20### Response:""".format(
21 instruction="What is the world state in the year 1597."
22)
23
24inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
25
26outputs = model.generate(**inputs, max_new_tokens=1024, do_sample=True)
27
28print(tokenizer.decode(outputs[0]))@misc{surge2024openbezoar,
title={OpenBezoar: Small, Cost-Effective and Open Models Trained on Mixes of Instruction Data},
author={Chandeepa Dissanayake and Lahiru Lowe and Sachith Gunasekara and Yasiru Ratnayake},
year={2024},
eprint={2404.12195},
archivePrefix={arXiv},
primaryClass={cs.CL}
}