maywell commited on
Commit
6c12988
β€’
1 Parent(s): b241f81

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +126 -0
README.md CHANGED
@@ -1,3 +1,129 @@
1
  ---
2
  license: apache-2.0
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ base_model: yanolja/EEVE-Korean-Instruct-10.8B-v1.0
4
  ---
5
+
6
+ # Original Model Card
7
+
8
+ [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
9
+
10
+ <p align="left">
11
+ <img src="https://huggingface.co/yanolja/EEVE-Korean-Instruct-10.8B-v1.0/resolve/main/eeve_logo.webp" width="50%"/>
12
+ <p>
13
+
14
+ # EEVE-Korean-Instruct-10.8B-v1.0
15
+
16
+ ## Join Our Community on Discord!
17
+
18
+ If you're passionate about the field of Large Language Models and wish to exchange knowledge and insights, we warmly invite you to join our Discord server. It's worth noting that Korean is the primary language used in this server. The landscape of LLM is evolving rapidly, and without active sharing, our collective knowledge risks becoming outdated swiftly. Let's collaborate and drive greater impact together! Join us here: [Discord Link](https://discord.gg/b27bAHg95m).
19
+
20
+ ## Our Dedicated Team (Alphabetical Order)
21
+ | Research | Engineering | Product Management | UX Design |
22
+ |-----------------|-----------------|--------------------|--------------
23
+ | Myeongho Jeong | Geon Kim | Bokyung Huh | Eunsue Choi |
24
+ | Seungduk Kim | Rifqi Alfi | | |
25
+ | Seungtaek Choi | Sanghoon Han | | |
26
+ | | Suhyun Kang | | |
27
+
28
+ ## About the Model
29
+
30
+ This model is a fine-tuned version of [yanolja/EEVE-Korean-10.8B-v1.0](https://huggingface.co/yanolja/EEVE-Korean-10.8B-v1.0), which is a Korean vocabulary-extended version of [upstage/SOLAR-10.7B-v1.0](https://huggingface.co/upstage/SOLAR-10.7B-v1.0). Specifically, we utilized Direct Preference Optimization (DPO) through the use of [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl).
31
+
32
+ For more details, please refer to our technical report: [Efficient and Effective Vocabulary Expansion Towards Multilingual Large Language Models](https://arxiv.org/abs/2402.14714).
33
+
34
+ ## Prompt Template
35
+ ```
36
+ A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
37
+ Human: {prompt}
38
+ Assistant:
39
+ ```
40
+ ## How to Use it
41
+ ```python
42
+ from transformers import AutoTokenizer
43
+ from transformers import AutoModelForCausalLM
44
+
45
+ model = AutoModelForCausalLM.from_pretrained("yanolja/EEVE-Korean-Instruct-10.8B-v1.0")
46
+ tokenizer = AutoTokenizer.from_pretrained("yanolja/EEVE-Korean-Instruct-10.8B-v1.0")
47
+
48
+ prompt_template = "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\nHuman: {prompt}\nAssistant:\n"
49
+ text = 'ν•œκ΅­μ˜ μˆ˜λ„λŠ” μ–΄λ””μΈκ°€μš”? μ•„λž˜ 선택지 쀑 κ³¨λΌμ£Όμ„Έμš”.\n\n(A) κ²½μ„±\n(B) λΆ€μ‚°\n(C) 평양\n(D) μ„œμšΈ\n(E) μ „μ£Ό'
50
+ model_inputs = tokenizer(prompt_template.format(prompt=text), return_tensors='pt')
51
+
52
+ outputs = model.generate(**model_inputs, max_new_tokens=256)
53
+ output_text = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
54
+ print(output_text)
55
+ ```
56
+
57
+ ### Example Output
58
+ ```
59
+ A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
60
+ Human: ν•œκ΅­μ˜ μˆ˜λ„λŠ” μ–΄λ””μΈκ°€μš”? μ•„λž˜ 선택지 쀑 κ³¨λΌμ£Όμ„Έμš”.
61
+
62
+ (A) κ²½μ„±
63
+ (B) λΆ€μ‚°
64
+ (C) 평양
65
+ (D) μ„œμšΈ
66
+ (E) μ „μ£Ό
67
+ Assistant:
68
+ (D) μ„œμšΈμ΄ ν•œκ΅­μ˜ μˆ˜λ„μž…λ‹ˆλ‹€. μ„œμšΈμ€ λ‚˜λΌμ˜ 뢁동뢀에 μœ„μΉ˜ν•΄ 있으며, μ •μΉ˜, 경제, λ¬Έν™”μ˜ μ€‘μ‹¬μ§€μž…λ‹ˆλ‹€. μ•½ 1,000만 λͺ…이 λ„˜λŠ” 인ꡬλ₯Ό 가진 μ„Έκ³„μ—μ„œ κ°€μž₯ 큰 λ„μ‹œ 쀑 ν•˜λ‚˜μž…λ‹ˆλ‹€. μ„œμšΈμ€ 높은 λΉŒλ”©, ν˜„λŒ€μ μΈ 인프라, ν™œκΈ° λ¬Έν™” μž₯면으둜 유λͺ…ν•©λ‹ˆλ‹€. λ˜ν•œ, λ§Žμ€ 역사적 λͺ…μ†Œμ™€ 박물관이 μžˆμ–΄ λ°©λ¬Έκ°λ“€μ—κ²Œ ν’λΆ€ν•œ λ¬Έν™” μ²΄ν—˜μ„ μ œκ³΅ν•©λ‹ˆλ‹€.
69
+ ```
70
+
71
+ ### Training Data
72
+ - Korean-translated version of [Open-Orca/SlimOrca-Dedup](https://huggingface.co/datasets/Open-Orca/SlimOrca-Dedup)
73
+ - Korean-translated version of [argilla/ultrafeedback-binarized-preferences-cleaned](https://huggingface.co/datasets/argilla/ultrafeedback-binarized-preferences-cleaned)
74
+ - No other dataset was used
75
+
76
+ ## Citation
77
+
78
+ ```
79
+ @misc{kim2024efficient,
80
+ title={Efficient and Effective Vocabulary Expansion Towards Multilingual Large Language Models},
81
+ author={Seungduk Kim and Seungtaek Choi and Myeongho Jeong},
82
+ year={2024},
83
+ eprint={2402.14714},
84
+ archivePrefix={arXiv},
85
+ primaryClass={cs.CL}
86
+ }
87
+ ```
88
+ ```
89
+ @misc{cui2023ultrafeedback,
90
+ title={UltraFeedback: Boosting Language Models with High-quality Feedback},
91
+ author={Ganqu Cui and Lifan Yuan and Ning Ding and Guanming Yao and Wei Zhu and Yuan Ni and Guotong Xie and Zhiyuan Liu and Maosong Sun},
92
+ year={2023},
93
+ eprint={2310.01377},
94
+ archivePrefix={arXiv},
95
+ primaryClass={cs.CL}
96
+ }
97
+ ```
98
+ ```
99
+ @misc{SlimOrcaDedup,
100
+ title = {SlimOrca Dedup: A Deduplicated Subset of SlimOrca},
101
+ author = {Wing Lian and Guan Wang and Bleys Goodson and Eugene Pentland and Austin Cook and Chanvichet Vong and "Teknium" and Nathan Hoos},
102
+ year = {2023},
103
+ publisher = {HuggingFace},
104
+ url = {https://huggingface.co/datasets/Open-Orca/SlimOrca-Dedup/}
105
+ }
106
+ ```
107
+ ```
108
+ @misc{mukherjee2023orca,
109
+ title={Orca: Progressive Learning from Complex Explanation Traces of GPT-4},
110
+ author={Subhabrata Mukherjee and Arindam Mitra and Ganesh Jawahar and Sahaj Agarwal and Hamid Palangi and Ahmed Awadallah},
111
+ year={2023},
112
+ eprint={2306.02707},
113
+ archivePrefix={arXiv},
114
+ primaryClass={cs.CL}
115
+ }
116
+ ```
117
+ # [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
118
+ Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_yanolja__EEVE-Korean-Instruct-10.8B-v1.0)
119
+
120
+ | Metric |Value|
121
+ |---------------------------------|----:|
122
+ |Avg. |66.48|
123
+ |AI2 Reasoning Challenge (25-Shot)|64.85|
124
+ |HellaSwag (10-Shot) |83.04|
125
+ |MMLU (5-Shot) |64.23|
126
+ |TruthfulQA (0-shot) |54.09|
127
+ |Winogrande (5-shot) |81.93|
128
+ |GSM8k (5-shot) |50.72|
129
+