Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
We introduce EXAONE 3.5, a collection of instruction-tuned bilingual (English and Korean) generative models ranging from 2.4B to 32B parameters, developed and released by LG AI Research. EXAONE 3.5 language models include: 1)
2.4B model
optimized for deployment on small or resource-constrained devices, 2)
7.8B model
matching the size of its predecessor but offering improved performance, and 3)
32B model
delivering powerful performance. All models support long-context processing of up to 32K tokens. Each model demonstrates state-of-the-art performance in real-world use cases and long-context understanding, while remaining competitive in general domains compared to recently released models of similar sizes.
This repository contains the instruction-tuned 7.8B language model with the following features:
Number of Parameters (without embeddings): 6.98B
Number of Layers: 32
Number of Attention Heads: GQA with 32 Q-heads and 8 KV-heads
Vocab Size: 102,400
Context Length: 32,768 tokens
Quickstart
We recommend to use
transformers
v4.43 or later.
Here is the code snippet to run conversational inference with the model:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "LGAI-EXAONE/EXAONE-3.5-7.8B-Instruct"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.bfloat16,
trust_remote_code=True,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
# Choose your prompt
prompt = "Explain how wonderful you are"# English example
prompt = "스스로를 자랑해 봐"# Korean example
messages = [
{"role": "system",
"content": "You are EXAONE model from LG AI Research, a helpful assistant."},
{"role": "user", "content": prompt}
]
input_ids = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt"
)
output = model.generate(
input_ids.to("cuda"),
eos_token_id=tokenizer.eos_token_id,
max_new_tokens=128,
do_sample=False,
)
print(tokenizer.decode(output[0]))
Note
The EXAONE 3.5 instruction-tuned language models were trained to utilize the system prompt,
so we highly recommend using the system prompts provided in the code snippet above.
Evaluation
The following table shows the evaluation results of real-world use cases. The full evaluation results can be found in the
technical report
.
Models
MT-Bench
LiveBench
Arena-Hard
AlpacaEval
IFEval
KoMT-Bench[1]
LogicKor
EXAONE 3.5 7.8B
8.29
39.8
68.7
54.2
78.9
7.96
9.08
Qwen 2.5 7B
6.48
35.6
48.9
31.7
72.5
5.19
6.38
Llama 3.1 8B
7.59
28.3
27.7
25.7
74.5
4.85
5.99
Gemma 2 9B
7.64
32.1
43.6
47.3
54.7
7.10
8.05
Phi 3 small (7B)
7.63
27.9
26.8
29.2
59.5
3.22
3.99
[1] KoMT-Bench is a dataset created by translating MT-Bench into Korean; see
README
for more details.
Deployment
EXAONE 3.5 models can be inferred in the various frameworks, such as:
TensorRT-LLM
vLLM
SGLang
llama.cpp
Ollama
Please refer to our
EXAONE 3.5 GitHub
for more details about the inference frameworks.
Quantization
We provide the pre-quantized EXAONE 3.5 models with
AWQ
and several quantization types in
GGUF
format.
Please refer to our
EXAONE 3.5 collection
to find corresponding quantized models.
Limitation
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.
Inappropriate answers may be generated, which contain personal, harmful or other inappropriate information.
Biased responses may be generated, which are associated with age, gender, race, and so on.
The generated responses rely heavily on statistics from the training data, which can result in the generation of
semantically or syntactically incorrect sentences.
Since the model does not reflect the latest information, the responses may be false or contradictory.
LG AI Research strives to reduce potential risks that may arise from EXAONE language models. Users are not allowed
to engage in any malicious activities (e.g., keying in illegal information) that may induce the creation of inappropriate
outputs violating LG AI’s ethical principles when using EXAONE language models.
@article{exaone-3.5,
title={EXAONE 3.5: Series of Large Language Models for Real-world Use Cases},
author={LG AI Research},
journal={arXiv preprint arXiv:https://arxiv.org/abs/2412.04862},
year={2024}
}
EXAONE-3.5-7.8B-Instruct huggingface.co is an AI model on huggingface.co that provides EXAONE-3.5-7.8B-Instruct's model effect (), which can be used instantly with this LGAI-EXAONE EXAONE-3.5-7.8B-Instruct model. huggingface.co supports a free trial of the EXAONE-3.5-7.8B-Instruct model, and also provides paid use of the EXAONE-3.5-7.8B-Instruct. Support call EXAONE-3.5-7.8B-Instruct model through api, including Node.js, Python, http.
EXAONE-3.5-7.8B-Instruct huggingface.co is an online trial and call api platform, which integrates EXAONE-3.5-7.8B-Instruct's modeling effects, including api services, and provides a free online trial of EXAONE-3.5-7.8B-Instruct, you can try EXAONE-3.5-7.8B-Instruct online for free by clicking the link below.
LGAI-EXAONE EXAONE-3.5-7.8B-Instruct online free url in huggingface.co:
EXAONE-3.5-7.8B-Instruct is an open source model from GitHub that offers a free installation service, and any user can find EXAONE-3.5-7.8B-Instruct on GitHub to install. At the same time, huggingface.co provides the effect of EXAONE-3.5-7.8B-Instruct install, users can directly use EXAONE-3.5-7.8B-Instruct installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
EXAONE-3.5-7.8B-Instruct install url in huggingface.co: