Views
No views yet


| Epoch | Average | Turn 1 | Turn 2 |
|---|---|---|---|
| 3 | 4.85 | 5.69 | 4.01 |
| 3.5 | 5.19 | 5.91 | 4.46 |
| 4 | 4.89 | 5.74 | 4.05 |
| 4.5 | 5.03 | 6.04 | 4.03 |
| 5 | 4.94 | 5.76 | 4.11 |
Open-Orca/oo-phi-1_5:ep4 to select the epoch 4 checkpoint to download specifically.<|im_start|> and <|im_end|> tokens added to support this.
This means that, e.g., in oobabooga the MPT-Chat instruction template should work..to('cuda') for unaccelerated.1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig
3
4model = AutoModelForCausalLM.from_pretrained("Open-Orca/oo-phi-1_5",
5 trust_remote_code=True,
6 torch_dtype=torch.bfloat16
7 ).to('cuda')
8tokenizer = AutoTokenizer.from_pretrained("Open-Orca/oo-phi-1_5",
9 trust_remote_code=True,
10 torch_dtype=torch.bfloat16)
11
12sys_prompt = "I am OrcaPhi. The following is my internal dialogue as an AI assistant.\n" \
13 "Today is September 15, 2023. I have no access to outside tools, news, or current events.\n" \
14 "I carefully provide accurate, factual, thoughtful, nuanced answers and am brilliant at reasoning.\n" \
15 "I think through my answers step-by-step to be sure I always get the right answer.\n" \
16 "I think more clearly if I write out my thought process in a scratchpad manner first; therefore, I always " \
17 "explain background context, assumptions, and step-by-step thinking BEFORE trying to answer a question." \
18 "Take a deep breath and think calmly about everything presented."
19prompt = "Hello! Tell me about what makes you special, as an AI assistant.\n" \
20 "Particularly, what programming tasks are you best at?"
21
22prefix = "<|im_start|>"
23suffix = "<|im_end|>\n"
24sys_format = prefix + "system\n" + sys_prompt + suffix
25user_format = prefix + "user\n" + prompt + suffix
26assistant_format = prefix + "assistant\n"
27input_text = sys_format + user_format + assistant_format
28
29generation_config = GenerationConfig(
30 max_length=1024, temperature=0.01, top_p=0.95, repetition_penalty=1.1,
31 do_sample=True, use_cache=True,
32 eos_token_id=tokenizer.eos_token_id, pad_token_id=tokenizer.pad_token_id,
33 transformers_version="4.33.1"
34 )
35
36inputs = tokenizer(input_text, return_tensors="pt", return_attention_mask=False).to('cuda')
37outputs = model.generate(**inputs, generation_config=generation_config)
38
39text = tokenizer.batch_decode(outputs)[0]
40print(text)1<|im_start|>system
2I am OrcaPhi. The following is my internal dialogue as an AI assistant.
3Today is September 15, 2023. I have no access to outside tools, news, or current events.
4I carefully provide accurate, factual, thoughtful, nuanced answers and am brilliant at reasoning.
5I think through my answers step-by-step to be sure I always get the right answer.
6I think more clearly if I write out my thought process in a scratchpad manner first; therefore, I always explain background context, assumptions, and step-by-step thinking BEFORE trying to answer a question.Take a deep breath and think calmly about everything presented.<|im_end|>
7<|im_start|>user
8Hello! Tell me about what makes you special, as an AI assistant.
9Particularly, what programming tasks are you best at?<|im_end|>
10<|im_start|>assistant
11As an AI, I'm designed to understand and respond to human language, which includes natural language processing (NLP) techniques that allow me to comprehend text, speech, and other forms of communication. My primary function is to assist users by providing relevant information, answering questions, and performing various tasks based on user input.
12
13In terms of programming tasks, I am particularly skilled in:
14
151. Natural Language Processing (NLP): This allows me to understand and analyze human language, enabling me to generate appropriate responses and perform tasks such as sentiment analysis, named entity recognition, and topic modeling.
162. Machine Learning: I can learn from large datasets and improve my performance over time, allowing me to adapt to new situations and provide better assistance to users.
173. Deep Learning: I can leverage advanced neural networks and complex architectures to solve problems that may not be easily addressed using traditional machine learning methods.
184. Computer Vision: I can recognize and interpret visual data, making it possible for me to identify objects, faces, and other visual elements within images and videos.
195. Robotics: I can help with tasks related to robotics, including object detection, navigation, and manipulation.
206. Voice Recognition: I can accurately transcribe spoken words into written text, making it easier for users to interact with me.
217. Chatbots: I can engage in conversations with users, providing them with helpful information, answering their questions, and assisting them with various tasks.
228. Data Analysis: I can analyze large amounts of data quickly and efficiently, helping users make informed decisions based on insights derived from the information provided.
239. Recommender Systems: I can suggest products, services, or content based on users' preferences and past behavior, improving their overall experience.
2410. Fraud Detection: I can detect and prevent fraudulent activities, protecting users' financial information and ensuring secure transactions.
25
26These programming tasks showcase my ability to understand and process vast amounts of information while adapting to different contexts and user needs. As an AI, I continuously learn and evolve to become even more effective in assisting users.<|im_end|>1@software{lian2023oophi15,
2 title = {OpenOrca oo-phi-1.5: Phi-1.5 1.3B Model Instruct-tuned on Filtered OpenOrcaV1 GPT-4 Dataset},
3 author = {Wing Lian and Bleys Goodson and Guan Wang and Eugene Pentland and Austin Cook and Chanvichet Vong and "Teknium"},
4 year = {2023},
5 publisher = {HuggingFace},
6 journal = {HuggingFace repository},
7 howpublished = {\url{https://huggingface.co/Open-Orca/oo-phi-1_5},
8}
9@article{textbooks2,
10 title={Textbooks Are All You Need II: \textbf{phi-1.5} technical report},
11 author={Li, Yuanzhi and Bubeck, S{\'e}bastien and Eldan, Ronen and Del Giorno, Allie and Gunasekar, Suriya and Lee, Yin Tat},
12 journal={arXiv preprint arXiv:2309.05463},
13 year={2023}
14}
15@misc{mukherjee2023orca,
16 title={Orca: Progressive Learning from Complex Explanation Traces of GPT-4},
17 author={Subhabrata Mukherjee and Arindam Mitra and Ganesh Jawahar and Sahaj Agarwal and Hamid Palangi and Ahmed Awadallah},
18 year={2023},
19 eprint={2306.02707},
20 archivePrefix={arXiv},
21 primaryClass={cs.CL}
22}
23@misc{longpre2023flan,
24 title={The Flan Collection: Designing Data and Methods for Effective Instruction Tuning},
25 author={Shayne Longpre and Le Hou and Tu Vu and Albert Webson and Hyung Won Chung and Yi Tay and Denny Zhou and Quoc V. Le and Barret Zoph and Jason Wei and Adam Roberts},
26 year={2023},
27 eprint={2301.13688},
28 archivePrefix={arXiv},
29 primaryClass={cs.AI}
30}