Model Card for MediaTek Research Breeze-7B-Instruct-v1_0
MediaTek Research Breeze-7B (hereinafter referred to as Breeze-7B) is a language model family that builds on top of
Mistral-7B
, specifically intended for Traditional Chinese use.
Breeze-7B-Base
is the base model for the Breeze-7B series.
It is suitable for use if you have substantial fine-tuning data to tune it for your specific use case.
Breeze-7B-Instruct
derives from the base model Breeze-7B-Base, making the resulting model amenable to be used as-is for commonly seen tasks.
The current release version of Breeze-7B is v1.0, which has undergone a more refined training process compared to Breeze-7B-v0_1, resulting in significantly improved performance in both English and Traditional Chinese.
Breeze-7B-Base expands the original vocabulary with an additional 30,000 Traditional Chinese tokens. With the expanded vocabulary, and everything else being equal, Breeze-7B operates at twice the inference speed for Traditional Chinese to Mistral-7B and Llama 7B. [See
Inference Performance
.]
Breeze-7B-Instruct can be used as is for common tasks such as Q&A, RAG, multi-round chat, and summarization.
Performance-wise:
Breeze-7B-Instruct demonstrates impressive performance in benchmarks for Traditional Chinese and English when compared to similar-sized open-source contemporaries such as Taiwan-LLM-7B/13B-chat, QWen(1.5)-7B-Chat, and Yi-6B-Chat. [See
Chat Model Performance
.]
A project by the members (in alphabetical order): Chan-Jan Hsu 許湛然, Chang-Le Liu 劉昶樂, Feng-Ting Liao 廖峰挺, Po-Chun Hsu 許博竣,
Yi-Chang Chen 陳宜昌
, and the supervisor Da-Shan Shiu 許大山.
Here we compare Breeze-7B-Instruct-v1_0 with other open-source instruction-tuned language models of similar parameter size that are widely recognized for their good performance in Chinese.
Also, we listed the benchmark scores of GPT-3.5 Turbo (1106), which represents one of the most widely used high-quality cloud language model API services, for reference.
TMMLU+
,
DRCD
,
Table
, and
MT-Bench-tw
source from
MediaTek-Research/TCEval-v2
.
MediaTek-Research/TCEval-v2
derives from
TCEval-v1
and
ikala/tmmluplus
.
MMLU
sources from
hails/mmlu_no_train
.
MT-Bench
source from
lmsys/mt_bench_human_judgments
.
We use the code revised from
EleutherAI/lm-evaluation-harness
to evaluate
TMMLU+
,
DRCD
,
Table
, and
MMLU
. All choice problems adapt the selection by the log-likelihood.
We use the code revised from
fastchat llm_judge
(GPT4 as judge) to evaluate
MT-Bench-tw
and
MT-Bench
.
* Taiwan-LLM models respond to multi-turn questions (English) in Traditional Chinese.
Details on MT-Bench-tw (0 shot):
Models
STEM
Extraction
Reasoning
Math
Coding
Roleplay
Writing
Humanities
AVG
GPT-3.5-Turbo
7.8
6.1
5.1
6.4
6.2
8.7
7.4
9.3
7.1
Qwen1.5-7B-Chat
9
5.6
4.7
2.8
3.7
8.0
8.0
9.4
6.4
Breeze-7B-Instruct-v1_0
7.8
5.2
4.2
4.2
4.1
7.6
5.9
9.1
6.0
Mistral-7B-v0.2-Instruct
6.9
4.6
4.3
3.3
4.4
7.2
6.2
7.8
5.6
Yi-6B-Chat
7.3
2.7
3.1
3.3
2.3
7.2
5.2
8.8
5.0
Taiwan-LLM-13B-v2.0-chat
6.1
3.4
4.1
2.3
3.1
7.4
6.6
6.8
5.0
Taiwan-LLM-7B-v2.1-chat
5.2
2.6
2.3
1.2
3.4
6.6
5.7
6.8
4.2
Details on TMMLU+ (0 shot):
Model
STEM
Social Science
Humanities
Other
AVG
GPT-3.5-Turbo
41.58
48.52
40.96
43.18
43.56
Qwen1.5-7B-Chat
41.48
51.66
44.05
45.40
45.65
Breeze-7B-Instruct-v1_0
36.46
48.38
45.11
40.75
42.67
Mistral-7B-v0.2-Instruct
32.79
38.05
34.89
34.04
34.94
Yi-6B-Chat
37.80
51.74
45.36
44.25
44.79
Taiwan-LLM-13B-v2.0-chat
27.74
33.69
27.03
29.43
29.47
Taiwan-LLM-7B-v2.1-chat
25.58
31.76
27.36
27.61
28.08
Inference Performance
In this test, we use the first 700 characters of the
web article
as the input and ask the model to write the same article again.
All inferences run on 2 RTX A6000 GPUs (using
vllm
, with a tensor-parallel size of 2).
Models
↓ Inference Time (sec)
Estimated Max Input Length (Char)
Qwen1.5-7B-Chat
9.35
38.9k
Yi-6B-Chat
10.62
5.2k
Breeze-7B-Instruct-v1_0
10.74
11.1k
Mistral-7B-Instruct-v0.2
20.48
5.1k
Taiwan-LLM-7B-v2.1-chat
26.26
2.2k
Use in Transformers
First install direct dependencies:
pip install transformers torch accelerate
If you want faster inference using flash-attention2, you need to install these dependencies:
@article{MediaTek-Research2024breeze7b,
title={Breeze-7B Technical Report},
author={Chan-Jan Hsu and Chang-Le Liu and Feng-Ting Liao and Po-Chun Hsu and Yi-Chang Chen and Da-Shan Shiu},
year={2024},
eprint={2403.02712},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Runs of MediaTek-Research Breeze-7B-Instruct-v1_0 on huggingface.co
947
Total runs
-4
24-hour runs
56
3-day runs
409
7-day runs
199
30-day runs
More Information About Breeze-7B-Instruct-v1_0 huggingface.co Model
Breeze-7B-Instruct-v1_0 huggingface.co is an AI model on huggingface.co that provides Breeze-7B-Instruct-v1_0's model effect (), which can be used instantly with this MediaTek-Research Breeze-7B-Instruct-v1_0 model. huggingface.co supports a free trial of the Breeze-7B-Instruct-v1_0 model, and also provides paid use of the Breeze-7B-Instruct-v1_0. Support call Breeze-7B-Instruct-v1_0 model through api, including Node.js, Python, http.
Breeze-7B-Instruct-v1_0 huggingface.co is an online trial and call api platform, which integrates Breeze-7B-Instruct-v1_0's modeling effects, including api services, and provides a free online trial of Breeze-7B-Instruct-v1_0, you can try Breeze-7B-Instruct-v1_0 online for free by clicking the link below.
MediaTek-Research Breeze-7B-Instruct-v1_0 online free url in huggingface.co:
Breeze-7B-Instruct-v1_0 is an open source model from GitHub that offers a free installation service, and any user can find Breeze-7B-Instruct-v1_0 on GitHub to install. At the same time, huggingface.co provides the effect of Breeze-7B-Instruct-v1_0 install, users can directly use Breeze-7B-Instruct-v1_0 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Breeze-7B-Instruct-v1_0 install url in huggingface.co: