Pankaj Mathur
commited on
Commit
•
d0afcea
1
Parent(s):
f2eda76
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
library_name: transformers
|
5 |
+
license: other
|
6 |
+
datasets:
|
7 |
+
- psmathur/orca_mini_v1_dataset
|
8 |
+
- ehartford/dolphin
|
9 |
+
pipeline_tag: text-generation
|
10 |
+
---
|
11 |
+
|
12 |
+
# orca_mini_v3_70b
|
13 |
+
|
14 |
+
A Llama2-70b model trained on Orca Style datasets.
|
15 |
+
|
16 |
+
#### legal disclaimer:
|
17 |
+
|
18 |
+
This model is bound by the usage restrictions of the original Llama-2 model. And comes with no warranty or gurantees of any kind.
|
19 |
+
|
20 |
+
## Evaluation
|
21 |
+
|
22 |
+
We evaluated orca_mini_v3_70b on a wide range of tasks using [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness) from EleutherAI.
|
23 |
+
|
24 |
+
Here are the results on metrics used by [HuggingFaceH4 Open LLM Leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
25 |
+
|
26 |
+
|||||
|
27 |
+
|:------:|:--------:|:-------:|:--------:|
|
28 |
+
|**Task**|**Metric**|**Value**|**Stderr**|
|
29 |
+
|*arc_challenge*|acc_norm|-|-|
|
30 |
+
|*hellaswag*|acc_norm|-|-|
|
31 |
+
|*mmlu*|acc_norm|-|-|
|
32 |
+
|*truthfulqa_mc*|mc2|0.6196|0.0151|
|
33 |
+
|**Total Average**|-|**-**||
|
34 |
+
|
35 |
+
|
36 |
+
**P.S. I am actively seeking sponsorship and partnership opportunities. If you're interested, please connect with me at www.linkedin.com/in/pankajam.**
|
37 |
+
|
38 |
+
## Example Usage
|
39 |
+
|
40 |
+
Here is the prompt format
|
41 |
+
|
42 |
+
```
|
43 |
+
### System:
|
44 |
+
You are an AI assistant that follows instruction extremely well. Help as much as you can.
|
45 |
+
|
46 |
+
### User:
|
47 |
+
Tell me about Orcas.
|
48 |
+
|
49 |
+
### Assistant:
|
50 |
+
|
51 |
+
```
|
52 |
+
|
53 |
+
Below shows a code example on how to use this model
|
54 |
+
|
55 |
+
```python
|
56 |
+
import torch
|
57 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
58 |
+
|
59 |
+
tokenizer = AutoTokenizer.from_pretrained("psmathur/orca_mini_v3_70b")
|
60 |
+
model = AutoModelForCausalLM.from_pretrained(
|
61 |
+
"psmathur/orca_mini_v3_70b",
|
62 |
+
torch_dtype=torch.float16,
|
63 |
+
load_in_8bit=True,
|
64 |
+
low_cpu_mem_usage=True,
|
65 |
+
device_map="auto"
|
66 |
+
)
|
67 |
+
system_prompt = "### System:\nYou are an AI assistant that follows instruction extremely well. Help as much as you can.\n\n"
|
68 |
+
|
69 |
+
#generate text steps
|
70 |
+
instruction = "Tell me about Orcas."
|
71 |
+
prompt = f"{system_prompt}### User: {instruction}\n\n### Assistant:\n"
|
72 |
+
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
|
73 |
+
output = model.generate(**inputs, do_sample=True, top_p=0.95, top_k=0, max_new_tokens=4096)
|
74 |
+
|
75 |
+
print(tokenizer.decode(output[0], skip_special_tokens=True))
|
76 |
+
|
77 |
+
```
|
78 |
+
|
79 |
+
|
80 |
+
#### Limitations & Biases:
|
81 |
+
|
82 |
+
While this model aims for accuracy, it can occasionally produce inaccurate or misleading results.
|
83 |
+
|
84 |
+
Despite diligent efforts in refining the pretraining data, there remains a possibility for the generation of inappropriate, biased, or offensive content.
|
85 |
+
|
86 |
+
Exercise caution and cross-check information when necessary.
|
87 |
+
|
88 |
+
|
89 |
+
|
90 |
+
### Citiation:
|
91 |
+
|
92 |
+
Please kindly cite using the following BibTeX:
|
93 |
+
|
94 |
+
```
|
95 |
+
@misc{orca_mini_v3_70b,
|
96 |
+
author = {Pankaj Mathur},
|
97 |
+
title = {orca_mini_v3_70b: An Orca Style Llama2-70b model},
|
98 |
+
year = {2023},
|
99 |
+
publisher = {HuggingFace},
|
100 |
+
journal = {HuggingFace repository},
|
101 |
+
howpublished = {\url{https://https://huggingface.co/psmathur/orca_mini_v3_70b},
|
102 |
+
}
|
103 |
+
```
|
104 |
+
|
105 |
+
```
|
106 |
+
@misc{mukherjee2023orca,
|
107 |
+
title={Orca: Progressive Learning from Complex Explanation Traces of GPT-4},
|
108 |
+
author={Subhabrata Mukherjee and Arindam Mitra and Ganesh Jawahar and Sahaj Agarwal and Hamid Palangi and Ahmed Awadallah},
|
109 |
+
year={2023},
|
110 |
+
eprint={2306.02707},
|
111 |
+
archivePrefix={arXiv},
|
112 |
+
primaryClass={cs.CL}
|
113 |
+
}
|
114 |
+
```
|
115 |
+
|
116 |
+
```
|
117 |
+
@software{touvron2023llama2,
|
118 |
+
title={Llama 2: Open Foundation and Fine-Tuned Chat Models},
|
119 |
+
author={Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava,
|
120 |
+
Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller,
|
121 |
+
Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez Madian Khabsa, Isabel Kloumann,
|
122 |
+
Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov,
|
123 |
+
Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith,
|
124 |
+
Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu , Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan,
|
125 |
+
Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, Thomas Scialom},
|
126 |
+
year={2023}
|
127 |
+
}
|
128 |
+
```
|