Quantization made by Richard Erkhov.
This model is the Mistral-7b model finetuned for 1k steps with a combined lm loss and distillation loss on Openwebtext2 with a >=20 reddit score filter with training logits from Mixtral. I'm not going to pretend it was a big project I did it in a dream and woke up and replicated the code without any actual reason, idk how well it fares in benchmarks.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "crumb/apricot-wildflower-20"
4tokenizer = AutoTokenizer.from_pretrained(model_id)
5
6model = AutoModelForCausalLM.from_pretrained(model_id, low_cpu_mem_usage=True, device_map="auto", load_in_8bit=True)
7
8text = "Hello my name is"
9inputs = tokenizer(text, return_tensors="pt")
10
11outputs = model.generate(**inputs, max_new_tokens=128)
12print(tokenizer.decode(outputs[0], skip_special_tokens=True))
13# Hello my name is Katie and I am a 20 year old student from the UK. I am currently studying for a degree in English Literature and Creative Writing at the University of Leeds. I am a huge fan of the Harry Potter series and have been since I was 10 years old. I have read the books countless times and have seen the films many times too. I am a huge fan of the Harry Potter fandom and have been a member of the Harry Potter forums for a few years now. I am also a member of the Harry Potter fan club and have been for a few years now. I
Detailed results can be found
here