aisingapore / sea-lion-7b-instruct

Model Overview

Description

SEA-LION-7B-Instruct is a multilingual model for natural language understanding (NLU), natural language generation (NLG), and natural language reasoning (NLR) tasks that has been fine-tuned with thousands of English and Indonesian instruction-completion pairs alongside a smaller pool of instruction-completion pairs from other Association of Southeast Asian Nations (ASEAN) languages. These instructions have been carefully curated and rewritten to ensure the model was trained on truly open, commercially permissive and high quality datasets. This model is for demonstration purposes and not-for-production usage.

SEA-LION stands for Southeast Asian Languages In One Network.

Third-Party Community Consideration

This model is not owned or developed by NVIDIA. This model has been developed and built to a third-party’s requirements for this application and use case; see link to the SEA-LION Model Card.

License and Terms of use

GOVERNING TERMS: Your use of this API is governed by the NVIDIA API Trial Service Terms of Use; and the use of this model is governed by the NVIDIA AI Foundation Models Community License and MIT License.

Model Developer: Products Pillar, AI Singapore

Model Release Date: Jan 31, 2024.

Model Architecture

  • Architecture Type: Transformer
  • Network Architecture: MosaicML Pretrained Transformer (MPT)

Input

  • Input Type: Text
  • Input Format: String
  • Input Parameters: max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed

Output

  • Output Type: Text
  • Output Format: String

Training dataset

SEA-LION-7B-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 a high quality and any errors were corrected and rewritten by native speakers or else dropped from our mix.

In addition, special care was taken to ensure that the datasets used had commercially permissive licenses through verification with the original data source.

Benchmark Performance

SEA-LION-7B-Instruct was evaluated on the BHASA benchmark (arXiv and GitHub) across a variety of tasks.

BHASA stands out amongst other evaluations for SEA languages for its holistic approach to evaluation, including not just traditional Natural Language Processing (NLP) benchmarking tasks (such as sentiment analysis and question answering), but also linguistic and cultural diagnostic tests which are meticulously handcrafted.

The evaluation was done zero-shot with Indonesian prompts and only a sample of 100-1000 instances for each dataset was used as per the setting described in the BHASA paper. The scores shown in the table below have been adjusted to only consider answers provided in the appropriate language.

ModelQA (F1)Sentiment (F1)Toxicity (F1)Eng>Indo (ChrF++)Indo>Eng (ChrF++)Summary (ROUGE-L)NLI (Acc)Causal (Acc)
SEA-LION-7B-Instruct-Research24.8676.1324.4552.5046.8215.4433.2023.80
SEA-LION-7B-Instruct68.4191.4517.9857.4858.0417.5453.1060.80
SeaLLM 7B v130.9656.2922.6062.2341.5514.0326.5056.60
SeaLLM 7B v244.4080.1355.2464.0163.2817.3143.6082.00
Sailor-7B (Base)65.4359.4820.4864.2760.688.6915.1038.40
Sailor-7B-Chat38.0287.6452.0764.2561.8715.2868.3085.60
Llama 2 7B Chat11.1252.320.0044.0957.589.240.000.00
Mistral 7B Instruct v0.138.8574.3820.8330.6051.4315.6328.6050.80
GPT-4 (gpt-4-0314)73.6074.1463.9669.3867.5318.7183.2096.00
  • For Natural Language Understanding (NLU) tasks, the model was tested on Sentiment Analysis (Sentiment) using the NusaX dataset, Question Answering (QA) using the TyDiQA dataset, and Toxicity Detection (Toxicity) using the Indonesian Multi-Label Hate Speech Detection dataset. The metrics used are F1 scores for all three tasks.
  • For Natural Language Generation (NLG) tasks, the model was tested on Machine Translation from English to Indonesian (Eng>Indo) and from Indonesian to English (Indo>Eng) using the FLORES-200 dataset, and Abstractive Summarization (Summary) using the XLSum dataset. The metrics used for Machine Translation and Abstractive Summarization are ChrF++ and ROUGE-L respectively.
  • For Natural Language Reasoning (NLR) tasks, the model was tested on Natural Language Inference (NLI) using the IndoNLI lay dataset and on Causal Reasoning (Causal) using the XCOPA dataset. The metrics are based on accuracy for both tasks.

Software Integration:

  • Supported Hardware Platform(s): Lovelace

[Preferred/Supported] Operating System(s):

  • Linux

Model Version

SEA-LION-7B-Instruct

Inference

Engine: Triton + TensorRT-LLM

Test Hardware: L40S