LG-AI-EXAONE commited on
Commit
10a80fb
·
0 Parent(s):

Initial commit

Browse files
.gitattributes ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.gguf filter=lfs diff=lfs merge=lfs -text
EXAONE-Deep-2.4B-BF16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec74fc2e730ad5e9aad878144d9be7226ea20a1746dc138b22755399474a4917
3
+ size 5339454080
EXAONE-Deep-2.4B-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:761eff8e448523c0ba37b4dae255a04d04e246cfa1b01d5e9379f2ac8037e800
3
+ size 1513892480
EXAONE-Deep-2.4B-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e70e6c1714d9fe005578c35f6eea1c5d70d2a72e2cf801c8b9b811beba034369
3
+ size 1644918400
EXAONE-Deep-2.4B-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9add15ef331ae06ad61fc550794d7acd3a1eb3b2e79f841caa8c93f318de72f6
3
+ size 1910584960
EXAONE-Deep-2.4B-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:035a268fada5821c1d9e70b15baa2dbab31d075bb41db6da551fe524102c22b5
3
+ size 2192855680
EXAONE-Deep-2.4B-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a7df20b48dd67ca698b34c5cea312662a6ee988c1b113d600a953c82e4fd9fb
3
+ size 2838846080
README.md ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: LGAI-EXAONE/EXAONE-Deep-2.4B
3
+ base_model_relation: quantized
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
+ - exaone-deep
14
+ pipeline_tag: text-generation
15
+ library_name: transformers
16
+ ---
17
+
18
+ <p align="center">
19
+ <img src="assets/EXAONE_Symbol+BI_3d.png", width="300", style="margin: 40 auto;">
20
+ <br>
21
+
22
+ # EXAONE-Deep-2.4B-GGUF
23
+
24
+ ## Introduction
25
+
26
+ We introduce EXAONE Deep, which exhibits superior capabilities in various reasoning tasks including math and coding benchmarks, ranging from 2.4B to 32B parameters developed and released by LG AI Research. Evaluation results show that 1) EXAONE Deep **2.4B** outperforms other models of comparable size, 2) EXAONE Deep **7.8B** outperforms not only open-weight models of comparable scale but also a proprietary reasoning model OpenAI o1-mini, and 3) EXAONE Deep **32B** demonstrates competitive performance against leading open-weight models.
27
+
28
+ For more details, please refer to our [documentation](https://lgresearch.ai/data/upload/EXAONE_Deep__Model_Card.pdf), [blog](https://www.lgresearch.ai/news/view?seq=543) and [GitHub](https://github.com/LG-AI-EXAONE/EXAONE-Deep).
29
+
30
+ <p align="center">
31
+ <img src="assets/exaone_deep_overall_performance.png", width="100%", style="margin: 40 auto;">
32
+
33
+ This repository contains the various precisions of the reasoning 2.4B language model in GGUF format, which contains the following features:
34
+
35
+ - Number of Parameters (without embeddings): 2.14B
36
+ - Number of Layers: 30
37
+ - Number of Attention Heads: GQA with 32 Q-heads and 8 KV-heads
38
+ - Vocab Size: 102,400
39
+ - Context Length: 32,768 tokens
40
+ - Tie Word Embeddings: True (unlike 7.8B and 32B models)
41
+ - Quantization: `Q8_0`, `Q6_K`, `Q5_K_M`, `Q4_K_M`, `IQ4_XS` in GGUF format (also includes `BF16` weights)
42
+
43
+ ## Quickstart
44
+
45
+ Here are the steps to run conversational inference with the model:
46
+
47
+ 1. Install llama.cpp. Please refer to the [llama.cpp repository](https://github.com/ggerganov/llama.cpp) for more details.
48
+
49
+ 2. Download EXAONE Deep model in GGUF format.
50
+
51
+ ```bash
52
+ huggingface-cli download LGAI-EXAONE/EXAONE-Deep-2.4B-GGUF \
53
+ --include "EXAONE-Deep-2.4B-BF16*.gguf" \
54
+ --local-dir .
55
+ ```
56
+
57
+ 3. Run the model with llama.cpp in conversational mode. We set chat-template explicitly to handle reasoning steps properly.
58
+
59
+ ```bash
60
+ llama-cli -m ./EXAONE-Deep-2.4B-BF16.gguf \
61
+ -sys "" \
62
+ -c 32768 \
63
+ --temp 0.6 \
64
+ --top-p 0.95 \
65
+ --jinja \
66
+ --chat-template "{% for message in messages %}{% if loop.first and message['role'] != 'system' %}{{ '[|system|][|endofturn|]\n' }}{% endif %}{% set content = message['content'] %}{% if '</thought>' in content %}{% set content = content.split('</thought>')[-1].lstrip('\\n') %}{% endif %}{{ '[|' + message['role'] + '|]' + content }}{% if not message['role'] == 'user' %}{{ '[|endofturn|]' }}{% endif %}{% if not loop.last %}{{ '\n' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '\n[|assistant|]<thought>\n' }}{% endif %}"
67
+ ```
68
+
69
+ > ### Note
70
+ > The EXAONE Deep models are trained with an optimized configuration,
71
+ > so we recommend following the [Usage Guideline](#usage-guideline) section to achieve optimal performance.
72
+
73
+ ## Evaluation
74
+
75
+ You can check the evaluation results of original EXAONE Deep models at [GitHub](https://github.com/LG-AI-EXAONE/EXAONE-Deep) or our [documentation](https://lgresearch.ai/data/upload/EXAONE_Deep__Model_Card.pdf).
76
+
77
+ ## Deployment
78
+
79
+ EXAONE Deep models can be inferred in the various frameworks, such as:
80
+ - `TensorRT-LLM`
81
+ - `vLLM`
82
+ - `SGLang`
83
+ - `llama.cpp`
84
+ - `Ollama`
85
+
86
+ Please refer to our [EXAONE Deep GitHub](https://github.com/LG-AI-EXAONE/EXAONE-Deep) for more details about the inference frameworks.
87
+
88
+ ## Quantization
89
+
90
+ We provide the pre-quantized EXAONE Deep models with **AWQ** and several quantization types in **GGUF** format. Please refer to our [EXAONE Deep collection](https://huggingface.co/collections/LGAI-EXAONE/exaone-deep-67d119918816ec6efa79a4aa) to find corresponding quantized models.
91
+
92
+ ## Usage Guideline
93
+
94
+ To achieve the expected performance, we recommend using the following configurations:
95
+
96
+ 1. Ensure the model starts with `<thought>\n` for reasoning steps. The model's output quality may be degraded when you omit it. You can easily apply this feature by using `tokenizer.apply_chat_template()` with `add_generation_prompt=True`. Please check the example code on [Quickstart](#quickstart) section.
97
+ 2. The reasoning steps of EXAONE Deep models enclosed by `<thought>\n...\n</thought>` usually have lots of tokens, so previous reasoning steps may be necessary to be removed in multi-turn situation. The provided tokenizer handles this automatically.
98
+ 3. Avoid using system prompt, and build the instruction on the user prompt.
99
+ 4. When it comes to math problems, include **"Please reason step by step, and put your final answer within \boxed{}."** in your prompt.
100
+ 5. In our evaluation, we use `temperature=0.6` and `top_p=0.95` for generation.
101
+ 6. When evaluating the models, it is recommended to test multiple times to assess the expected performance accurately.
102
+
103
+ ## Limitation
104
+
105
+ 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.
106
+
107
+ - Inappropriate answers may be generated, which contain personal, harmful or other inappropriate information.
108
+ - Biased responses may be generated, which are associated with age, gender, race, and so on.
109
+ - The generated responses rely heavily on statistics from the training data, which can result in the generation of
110
+ semantically or syntactically incorrect sentences.
111
+ - Since the model does not reflect the latest information, the responses may be false or contradictory.
112
+
113
+ LG AI Research strives to reduce potential risks that may arise from EXAONE language models. Users are not allowed
114
+ to engage in any malicious activities (e.g., keying in illegal information) that may induce the creation of inappropriate
115
+ outputs violating LG AI’s ethical principles when using EXAONE language models.
116
+
117
+ ## License
118
+
119
+ The model is licensed under [EXAONE AI Model License Agreement 1.1 - NC](./LICENSE)
120
+
121
+ ## Citation
122
+
123
+ TBU
124
+
125
+ ## Contact
126
+ LG AI Research Technical Support: contact_us@lgresearch.ai
assets/EXAONE_Symbol+BI_3d.png ADDED
assets/exaone_deep_overall_performance.png ADDED