aashish1904 commited on
Commit
698b623
β€’
1 Parent(s): 3758bce

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +131 -0
README.md ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ license: other
5
+ license_name: exaone
6
+ license_link: LICENSE
7
+ language:
8
+ - en
9
+ - ko
10
+ tags:
11
+ - lg-ai
12
+ - exaone
13
+
14
+ ---
15
+
16
+ ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)
17
+
18
+ # QuantFactory/EXAONE-3.0-7.8B-Instruct-GGUF
19
+ This is quantized version of [LGAI-EXAONE/EXAONE-3.0-7.8B-Instruct](https://huggingface.co/LGAI-EXAONE/EXAONE-3.0-7.8B-Instruct) created using llama.cpp
20
+
21
+ # Original Model Card
22
+
23
+
24
+ <p align="center">
25
+ <img src="assets/EXAONE_Symbol+BI_3d.png", width="300", style="margin: 40 auto;">
26
+ <br>
27
+
28
+ # EXAONE-3.0-7.8B-Instruct
29
+
30
+ **πŸ‘‹πŸ‘‹ We have revised our [license](./LICENSE) for revitalizing the research ecosystem.πŸ‘‹πŸ‘‹**
31
+
32
+ ## Introduction
33
+
34
+ We introduce EXAONE-3.0-7.8B-Instruct, a pre-trained and instruction-tuned bilingual (English and Korean) generative model with 7.8 billion parameters.
35
+ The model was pre-trained with 8T curated tokens and post-trained with supervised fine-tuning and direct preference optimization.
36
+ It demonstrates highly competitive benchmark performance against other state-of-the-art open models of similar size.
37
+
38
+ For more details, please refer to our [technical report](https://arxiv.org/abs/2408.03541), [blog](https://www.lgresearch.ai/blog/view?seq=460) and [GitHub](https://github.com/LG-AI-EXAONE).
39
+
40
+ ## Quickstart
41
+
42
+ We recommend to use transformers v4.41 or later.
43
+
44
+ ```python
45
+ import torch
46
+ from transformers import AutoModelForCausalLM, AutoTokenizer
47
+
48
+ model = AutoModelForCausalLM.from_pretrained(
49
+ "LGAI-EXAONE/EXAONE-3.0-7.8B-Instruct",
50
+ torch_dtype=torch.bfloat16,
51
+ trust_remote_code=True,
52
+ device_map="auto"
53
+ )
54
+ tokenizer = AutoTokenizer.from_pretrained("LGAI-EXAONE/EXAONE-3.0-7.8B-Instruct")
55
+
56
+ # Choose your prompt
57
+ prompt = "Explain who you are" # English example
58
+ prompt = "λ„ˆμ˜ μ†Œμ›μ„ 말해봐" # Korean example
59
+
60
+ messages = [
61
+ {"role": "system",
62
+ "content": "You are EXAONE model from LG AI Research, a helpful assistant."},
63
+ {"role": "user", "content": prompt}
64
+ ]
65
+ input_ids = tokenizer.apply_chat_template(
66
+ messages,
67
+ tokenize=True,
68
+ add_generation_prompt=True,
69
+ return_tensors="pt"
70
+ )
71
+
72
+ output = model.generate(
73
+ input_ids.to("cuda"),
74
+ eos_token_id=tokenizer.eos_token_id,
75
+ max_new_tokens=128
76
+ )
77
+ print(tokenizer.decode(output[0]))
78
+ ```
79
+
80
+ > ### Note
81
+ > The EXAONE 3.0 instruction-tuned language model was trained to utilize the system prompt,
82
+ > so we highly recommend using the system prompts provided in the code snippet above.
83
+
84
+ ## Evaluation
85
+
86
+ We compared EXAONE-3.0-7.8B-Instruct with similar-sized instruction-tuned LLMs. To verify the performance of real-world use cases, we measured benchmarks that have a high correlation with [LMSYS Chatbot Arena](https://chat.lmsys.org/).
87
+ Some experimental results are shown below. The full evaluation results can be found in the [technical report](https://arxiv.org/abs/2408.03541).
88
+
89
+ | Language | Benchmark | EXAONE 3.0 <br>7.8B Inst. | Llama 3.1 <br>8B Inst. | Gemma 2 <br>9B Inst. | QWEN 2 <br>7B Inst. | Phi 3 <br>7B Inst. | Mistral 7B <br>Inst. |
90
+ | :-----: | :----- | :-----: | :-----: | :-----: | :-----: | :-----: | :-----: |
91
+ | English | MT-Bench | **9.01** | 7.95 | 8.52 | 8.41 | 8.52 | 7.72 |
92
+ | | Arena-Hard-v0.1 | **46.8** | 28.0 | 42.1 | 21.7 | 29.1 | 16.2 |
93
+ | | WildBench | **48.2** | 34.5 | 41.5 | 34.9 | 32.8 | 29.0 |
94
+ | | AlpacaEval 2.0 LC | 45.0 | 31.5 | **47.5** | 24.5 | 37.1 | 31.0 |
95
+ | Korean | KoMT-Bench<sup>[1] | **8.92** | 6.06 | 7.92 | 7.69 | 4.87 | 5.20 |
96
+ | | LogicKor | **8.62** | 5.40 | 8.07 | 6.12 | 3.76 | 3.42 |
97
+
98
+ - [1] KoMT-Bench is a dataset created by translating MT-Bench into Korean; see [README](https://github.com/LG-AI-EXAONE/KoMT-Bench) for more details.
99
+
100
+ ## Limitation
101
+
102
+ The EXAONE language model has certain limitations and may occasionally generate inappropriate responses. The language model generates responses based on the output probability of tokens, and it is determined during learning from training data. While we have made every effort to exclude personal, harmful, and biased information from the training data, some problematic content may still be included, potentially leading to undesirable responses. Please note that the text generated by EXAONE language model does not reflects the views of LG AI Research.
103
+
104
+ - Inappropriate answers may be generated, which contain personal, harmful or other inappropriate information.
105
+ - Biased responses may be generated, which are associated with age, gender, race, and so on.
106
+ - The generated responses rely heavily on statistics from the training data, which can result in the generation of
107
+ semantically or syntactically incorrect sentences.
108
+ - Since the model does not reflect the latest information, the responses may be false or contradictory.
109
+
110
+ LG AI Research strives to reduce potential risks that may arise from EXAONE language model. Users are not allowed
111
+ to engage in any malicious activities (e.g., keying in illegal information) that may induce the creation of inappropriate
112
+ outputs violating LG AI’s ethical principles when using EXAONE language model.
113
+
114
+ ## License
115
+
116
+ The model is licensed under [EXAONE AI Model License Agreement 1.1 - NC](./LICENSE)
117
+
118
+ ## Citation
119
+
120
+ ```
121
+ @article{exaone-3.0-7.8B-instruct,
122
+ title={EXAONE 3.0 7.8B Instruction Tuned Language Model},
123
+ author={LG AI Research},
124
+ journal={arXiv preprint arXiv:2408.03541},
125
+ year={2024}
126
+ }
127
+ ```
128
+
129
+ ## Contact
130
+ LG AI Research Technical Support: [email protected]
131
+