Update README.md
Browse files
README.md
CHANGED
@@ -7,11 +7,11 @@ language:
|
|
7 |
- vi
|
8 |
license: llama3
|
9 |
---
|
10 |
-
# Llama3 8B CPT SEA-
|
11 |
|
12 |
SEA-LION is a collection of Large Language Models (LLMs) which has been pretrained and instruct-tuned for the Southeast Asia (SEA) region.
|
13 |
|
14 |
-
Llama3 8B CPT SEA-
|
15 |
These instructions have been carefully curated and rewritten to ensure the model was trained on truly open, commercially permissive and high quality datasets.
|
16 |
|
17 |
SEA-LION stands for _Southeast Asian Languages In One Network_.
|
@@ -25,12 +25,12 @@ SEA-LION stands for _Southeast Asian Languages In One Network_.
|
|
25 |
## Model Details
|
26 |
|
27 |
### Model Description
|
28 |
-
We performed instruction tuning in English and also in ASEAN languages such as Indonesian, Thai and Vietnamese on our [continued pre-trained Llama3 CPT 8B SEA-
|
29 |
|
30 |
The model has a context length of 8192.
|
31 |
|
32 |
### Benchmark Performance
|
33 |
-
We evaluated Llama3 8B SEA-
|
34 |
|
35 |
#### General Language Capabilities
|
36 |
For the evaluation of general language capabilities, we employed the [BHASA evaluation benchmark](https://arxiv.org/abs/2309.06085v2) across a variety of tasks.
|
@@ -42,7 +42,7 @@ The evaluation was done zero-shot with native prompts and only a sample of 100-1
|
|
42 |
|
43 |
|
44 |
#### Instruction-following Capabilities
|
45 |
-
Since LLaMa3 8B SEA-
|
46 |
|
47 |
As these two datasets were originally in English, the linguists and native speakers in the team worked together to filter, localize and translate the datasets into the respective target languages to ensure that the examples remained reasonable, meaningful and natural.
|
48 |
|
@@ -56,7 +56,7 @@ IFEval evaluates a model's ability to adhere to constraints provided in the prom
|
|
56 |
MT-Bench evaluates a model's ability to engage in multi-turn (2 turns) conversations and respond in ways that align with human needs. We use `gpt-4-1106-preview` as the judge model and compare against `gpt-3.5-turbo-0125` as the baseline model. The metric used is the weighted win rate against the baseline model (i.e. average win rate across each category (Math, Reasoning, STEM, Humanities, Roleplay, Writing, Extraction)). A tie is given a score of 0.5.
|
57 |
|
58 |
|
59 |
-
For more details on Llama3 8B CPT SEA-
|
60 |
|
61 |
|
62 |
### Usage
|
@@ -67,7 +67,7 @@ SEA-LION can be run using the 🤗 Transformers library
|
|
67 |
import transformers
|
68 |
import torch
|
69 |
|
70 |
-
model_id = "aisingapore/llama3-8b-cpt-
|
71 |
|
72 |
pipeline = transformers.pipeline(
|
73 |
"text-generation",
|
@@ -100,10 +100,10 @@ Current SEA-LION models, including this commercially permissive release, have no
|
|
100 |
|
101 |
## Technical Specifications
|
102 |
### Fine-Tuning Details
|
103 |
-
The Llama3 8B CPT SEA-
|
104 |
|
105 |
## Data
|
106 |
-
Llama3 8B CPT SEA-
|
107 |
|
108 |
In addition, special care was taken to ensure that the datasets used had commercially permissive licenses through verification with the original data source.
|
109 |
|
|
|
7 |
- vi
|
8 |
license: llama3
|
9 |
---
|
10 |
+
# Llama3 8B CPT SEA-Lionv2.1 Instruct
|
11 |
|
12 |
SEA-LION is a collection of Large Language Models (LLMs) which has been pretrained and instruct-tuned for the Southeast Asia (SEA) region.
|
13 |
|
14 |
+
Llama3 8B CPT SEA-Lionv2.1 Instruct is a multilingual model which has been fine-tuned with around **100,000 English instruction-completion pairs** alongside a smaller pool of around **50,000 instruction-completion pairs** from other ASEAN languages, such as Indonesian, Thai and Vietnamese.
|
15 |
These instructions have been carefully curated and rewritten to ensure the model was trained on truly open, commercially permissive and high quality datasets.
|
16 |
|
17 |
SEA-LION stands for _Southeast Asian Languages In One Network_.
|
|
|
25 |
## Model Details
|
26 |
|
27 |
### Model Description
|
28 |
+
We performed instruction tuning in English and also in ASEAN languages such as Indonesian, Thai and Vietnamese on our [continued pre-trained Llama3 CPT 8B SEA-Lionv2](https://huggingface.co/aisingapore/llama3-8b-cpt-SEA-Lionv2.1-base), a decoder model using the Llama3 architecture, to create Llama3 8B SEA-Lionv2.1 Instruct.
|
29 |
|
30 |
The model has a context length of 8192.
|
31 |
|
32 |
### Benchmark Performance
|
33 |
+
We evaluated Llama3 8B SEA-Lionv2.1 Instruct on both general language capabilities and instruction-following capabilities.
|
34 |
|
35 |
#### General Language Capabilities
|
36 |
For the evaluation of general language capabilities, we employed the [BHASA evaluation benchmark](https://arxiv.org/abs/2309.06085v2) across a variety of tasks.
|
|
|
42 |
|
43 |
|
44 |
#### Instruction-following Capabilities
|
45 |
+
Since LLaMa3 8B SEA-Lionv2.1 is an instruction-following model, we also evaluated it on instruction-following capabilities with two datasets, [IFEval](https://arxiv.org/abs/2311.07911) and [MT-Bench](https://arxiv.org/abs/2306.05685).
|
46 |
|
47 |
As these two datasets were originally in English, the linguists and native speakers in the team worked together to filter, localize and translate the datasets into the respective target languages to ensure that the examples remained reasonable, meaningful and natural.
|
48 |
|
|
|
56 |
MT-Bench evaluates a model's ability to engage in multi-turn (2 turns) conversations and respond in ways that align with human needs. We use `gpt-4-1106-preview` as the judge model and compare against `gpt-3.5-turbo-0125` as the baseline model. The metric used is the weighted win rate against the baseline model (i.e. average win rate across each category (Math, Reasoning, STEM, Humanities, Roleplay, Writing, Extraction)). A tie is given a score of 0.5.
|
57 |
|
58 |
|
59 |
+
For more details on Llama3 8B CPT SEA-Lionv2.1 Instruct benchmark performance, please refer to the SEA HELM leaderboard, https://leaderboard.sea-lion.ai/
|
60 |
|
61 |
|
62 |
### Usage
|
|
|
67 |
import transformers
|
68 |
import torch
|
69 |
|
70 |
+
model_id = "aisingapore/llama3-8b-cpt-SEA-Lionv2.1-instruct"
|
71 |
|
72 |
pipeline = transformers.pipeline(
|
73 |
"text-generation",
|
|
|
100 |
|
101 |
## Technical Specifications
|
102 |
### Fine-Tuning Details
|
103 |
+
The Llama3 8B CPT SEA-Lionv2.1 Instruct was fine-tuned using 8x A100-40GB using parameter efficient fine tuning in the form of LoRA.
|
104 |
|
105 |
## Data
|
106 |
+
Llama3 8B CPT SEA-Lionv2.1 Instruct was trained on a wide range of instructions that were manually and stringently verified by our team. A large portion of the effort was dedicated to ensuring that each instruction-completion pair that the model sees is of high quality and any errors were corrected and rewritten by native speakers or else dropped from our mix.
|
107 |
|
108 |
In addition, special care was taken to ensure that the datasets used had commercially permissive licenses through verification with the original data source.
|
109 |
|