Views
No views yet
upstage/SOLAR-10.7B-Instruct-v1.0 model. Trained on the Intel DPO Orca dataset using LoRA. Though it should be noted SOLAR-10.7B paper states that the
original model for alignment was trained on Intel ORCA DPO pairs. Retraining using DPO and LoRA shows slight (<1%) improvement on OpenLLM Leaderboard benchmarks against SOLAR 10.7B-Instruct and significant over SOLAR 10.7B
bhavinjawade/SOLAR-10B-OrcaDPO-Jawade, follow these steps:from_pretrained method.1from transformers import AutoModelForCausalLM, AutoTokenizer
2model = AutoModelForCausalLM.from_pretrained("bhavinjawade/SOLAR-10B-OrcaDPO-Jawade")
3tokenizer = AutoTokenizer.from_pretrained("bhavinjawade/SOLAR-10B-OrcaDPO-Jawade")1message = [
2 {"role": "system", "content": "You are a helpful assistant chatbot."},
3 {"role": "user", "content": "Is the universe real? or is it a simulation? whats your opinion?"}
4]
5prompt = tokenizer.apply_chat_template(message, add_generation_prompt=True, tokenize=False)1pipeline = transformers.pipeline(
2 "text-generation",
3 model=model,
4 tokenizer=tokenizer
5)1sequences = pipeline(
2 prompt,
3 do_sample=True,
4 temperature=0.7,
5 top_p=0.9,
6 num_return_sequences=1,
7 max_length=200,
8 )
9 print(sequences[0]['generated_text'])