/ Модель

Характеристики

Контекст
262 144 токена
Размер весов
1,1 ТБ
Лицензия
MIT
Архитектура
qwen4_exp · dense
Базовая модель
Qwen3.5-397B-A17B
Библиотека
transformers
Опубликована
7 ноя 2026

Qwen-SEA-LION-v5-397B-A17B-Plus

Изображение и текст → текст15 профессий
207скачиваний за 30 дней0лайковвеса обновлены26 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Мультимодальная модель AI Singapore для диалогов, анализа изображений и видео, рассуждений и агентных задач на английском и языках Юго-Восточной Азии.

Qwen-SEA-LION-v5-397B-A17B-Plus — мультимодальная модель семейства SEA-LION, разработанная AI Products Pillar организации AI Singapore при финансировании National Research Foundation Singapore. Это дообученная на английском и языках Юго-Восточной Азии версия Qwen/Qwen3.5-397B-A17B, преобразованная в архитектуру Qwen4Exp: гибридную Mixture-of-Experts с Gated DeltaNet и разреженным вниманием. Модель содержит около 398 млрд эффективных параметров, из которых активируется около 19 млрд на токен; контекстное окно — 262 144 токена.

Модель принимает текст, изображения и видео, а генерирует текст. Она рассчитана на диалоги, рассуждения, визуальный анализ, программирование и агентные сценарии с вызовом инструментов. Основной акцент — английский и языки Юго-Восточной Азии: бирманский, китайский, индонезийский, филиппинский, малайский, тамильский, тайский и вьетнамский. По умолчанию модель использует режим рассуждения. Лицензия — MIT.

Модель может галлюцинировать, выдавать нерелевантные или неподтверждённые ответы; её устойчивость к состязательным запросам не проверялась. Карточка предупреждает, что модель не прошла настройку безопасности, поэтому для применения следует предусмотреть собственные меры безопасности. Обучение продолжается в экспериментальном режиме.

Сценарии применения

  • ответы на вопросы по изображениям
  • анализ содержания видео
  • многоязычный диалог на языках Юго-Восточной Азии
  • помощь в программировании
  • выполнение агентных задач с вызовом инструментов

Ограничения

Модель может галлюцинировать и выдавать нерелевантные или неподтверждённые ответы; её устойчивость к состязательным запросам не проверялась. Модель не настроена на безопасность, поэтому для применения нужны собственные меры защиты.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит15

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

AI Singapore SEA-LION v5, Qwen 3.5 397B-A17B Plus

Model Card for Qwen-SEA-LION-v5-397B-A17B-Plus

Last update: 2026-11-23

SEA-LION is a collection of Large Language Models (LLMs) built for Southeast Asia (SEA). Qwen-SEA-LION-v5-397B-A17B-Plus is based on Qwen/Qwen3.5-397B-A17B, converted to Qwen4Exp, the architecture of Qwen/Qwen3.8-Flash-Next. It is a multimodal Mixture-of-Experts model with about 398B effective parameters (569B with its n-gram tables), about 19B of them activated per token. It takes text, image and video input, generates text output, and has a 262,144-token context window.

From Qwen/Qwen3.5-397B-A17B, Qwen-SEA-LION-v5-397B-A17B-Plus inherits:

  • Thinking mode by default: the model reasons step by step before giving its final response
  • A unified vision-language foundation: early-fusion training on multimodal tokens achieves parity with Qwen3 and outperforms Qwen3-VL across reasoning, coding, agent and visual-understanding benchmarks
  • An efficient hybrid architecture of Gated DeltaNet and sparse Mixture-of-Experts, for high-throughput inference with minimal latency and cost
  • Reinforcement learning scaled across million-agent environments, for robust real-world adaptability
  • Strong tool calling for agentic use, including with Qwen-Agent and Qwen Code
  • Native multi-token prediction (MTP) for faster inference with speculative decoding
  • Coverage of 201 languages and dialects, with nuanced cultural and regional understanding
  • A native context of 262,144 tokens, extensible to about 1M tokens with YaRN

Model Description

SEA-LION stands for Southeast Asian Languages In One Network. We converted Qwen/Qwen3.5-397B-A17B to Qwen4Exp and post-trained it in English and SEA languages to create Qwen-SEA-LION-v5-397B-A17B-Plus. The tokenizer, vision encoder and sampling defaults are inherited from Qwen unchanged. The chat template is Qwen/Qwen3.8-27B's without reasoning effort, so thinking and preserved thinking are enabled by default. Set preserve_thinking=False to keep only the reasoning since the latest user message, as in Qwen3.5.

  • Developed by: AI Products Pillar, AI Singapore
  • Funded by: National Research Foundation Singapore
  • Shared by: AI Products Pillar, AI Singapore
  • Model type: Causal language model with vision encoder
  • Context length: 262,144 tokens
  • Language(s): Burmese, Chinese, English, Indonesian, Filipino, Malay, Tamil, Thai, and Vietnamese
  • License: MIT
  • Finetuned from model: Qwen/Qwen3.5-397B-A17B
  • Repository: SEA-LION v5 - an aisingapore Collection

Other versions: aisingapore/Qwen-SEA-LION-v5-397B-A17B-Plus-FP8, aisingapore/Qwen-SEA-LION-v5-397B-A17B-Plus-NVFP4 and aisingapore/Qwen-SEA-LION-v5-397B-A17B-Plus-GGUF (llama.cpp). aisingapore/Qwen-SEA-LION-v5-397B-A17B-Plus-SpecDecoder is a draft model for faster generation with speculative decoding.

Architecture Conversion

We converted Qwen3.5-397B-A17B to Qwen4Exp, the architecture of Qwen3.8-Flash-Next, using its three components with settings adapted where needed:

  • QSA hybrid attention: Qwen4Exp pairs Gated DeltaNet with Qwen Sparse Attention (QSA). In each QSA layer, a small indexer scores compressed four-token blocks of the context, and each query attends to up to 2,048 tokens from the highest-scoring complete blocks, plus the incomplete trailing block. This reduces the work of full attention on long contexts. We kept Qwen3.5-397B's 45 Gated DeltaNet layers and converted its 15 full-attention layers to QSA with Qwen4Exp's indexer settings.
  • Gated Residual: Qwen4Exp widens the residual stream into four parallel branches. Each attention and feed-forward block reads an input-dependent blend of them and writes back with one weight per branch, so layers can route information more flexibly. We used the same four branches, with the bottleneck scaled to our wider model.
  • N-gram Embedding: Qwen4Exp adds a hashed bigram and trigram memory at layer 2, with sparse lookups that can sit in host memory. We seeded our tables from Qwen3.8-Flash-Next's trained ones, widened each head from 160 to 256 channels for our 4,096-wide backbone, and doubled the buckets to about 40M per head, for about 164B parameters in the n-gram tables.

We also added QSA and Gated Residual to the MTP draft layer, and kept Qwen3.5-397B's SiLU output gating in Gated DeltaNet (Flash-Next uses sigmoid).

Getting Started

Use the code below to get started with the model using 🤗 Transformers, vLLM or SGLang.

pip install -U transformers torch torchvision pillow accelerate
from transformers import AutoProcessor, AutoModelForImageTextToText

MODEL_ID = "aisingapore/Qwen-SEA-LION-v5-397B-A17B-Plus"

# Load model
processor = AutoProcessor.from_pretrained(MODEL_ID)
model = AutoModelForImageTextToText.from_pretrained(
    MODEL_ID,
    dtype="auto",
    device_map="auto"
)

# Prompt
messages = [
    {
        "role": "user",
        "content": "Saya mau kirim 40 kardus durian beku dari Medan ke Singapura lewat Pelabuhan Belawan. Jelaskan dokumen ekspor yang wajib saya siapkan, perkiraan waktu transit, dan risiko rantai dingin yang paling sering terjadi di rute ini. Jawab dalam Bahasa Indonesia, format poin.",
    },
]

# Process input
inputs = processor.apply_chat_template(
    messages,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
    add_generation_prompt=True,
    enable_thinking=False
).to(model.device)
input_len = inputs["input_ids"].shape[-1]

# Generate output
outputs = model.generate(**inputs, max_new_tokens=2048)
response = processor.decode(outputs[0][input_len:], skip_special_tokens=False)

# Parse output
processor.parse_response(response, prefix=inputs["input_ids"])

Thinking is enabled by default. The example above turns it off with enable_thinking=False; without that line, the model thinks before answering and parse_response separates the thinking from the answer. The thinking often runs to several thousand tokens, so raise max_new_tokens when it is on (Qwen recommends 32,768 for most queries).

vllm serve aisingapore/Qwen-SEA-LION-v5-397B-A17B-Plus \
  --tensor-parallel-size 8 \
  --enable-expert-parallel \
  --model-loader-extra-config '{"enable_weights_track":false}' \
  --reasoning-parser qwen3 \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_coder

vLLM keeps the n-gram tables (about 164B parameters, 328 GB in BF16) in host memory by default and fetches the rows each step needs. vLLM 0.34 pads one Gated Residual projection to a multiple of 16 rows and then reports the padding as a missing weight; --model-loader-extra-config '{"enable_weights_track":false}' skips that check.

Then call the model:

from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")

response = client.chat.completions.create(
    model="aisingapore/Qwen-SEA-LION-v5-397B-A17B-Plus",
    messages=[
        {
            "role": "user",
            "content": "Saya mau kirim 40 kardus durian beku dari Medan ke Singapura lewat Pelabuhan Belawan. Jelaskan dokumen ekspor yang wajib saya siapkan, perkiraan waktu transit, dan risiko rantai dingin yang paling sering terjadi di rute ini. Jawab dalam Bahasa Indonesia, format poin.",
        },
    ],
    extra_body={"chat_template_kwargs": {"enable_thinking": True}},
)

message = response.choices[0].message
print(message.reasoning)
print(message.content)

Tool calling:

tools = [
    {
        "type": "function",
        "function": {
            "name": "get_weather",
            "description": "Get the current weather for a city",
            "parameters": {
                "type": "object",
                "properties": {"city": {"type": "string"}},
                "required": ["city"],
            },
        },
    }
]

response = client.chat.completions.create(
    model="aisingapore/Qwen-SEA-LION-v5-397B-A17B-Plus",
    messages=[{"role": "user", "content": "Bagaimana cuaca di Jakarta hari ini?"}],
    tools=tools,
)

for call in response.choices[0].message.tool_calls or []:
    print(call.function.name, call.function.arguments)
sglang serve --model-path aisingapore/Qwen-SEA-LION-v5-397B-A17B-Plus \
  --tp 8 \
  --ple-offload-embedding \
  --reasoning-parser qwen3 \
  --tool-call-parser qwen3_coder

--ple-offload-embedding keeps the n-gram tables (about 164B parameters, 328 GB in BF16) in pinned host memory. SGLang turns it on by default.

Then call the model:

from openai import OpenAI

client = OpenAI(base_url="http://localhost:30000/v1", api_key="EMPTY")

response = client.chat.completions.create(
    model="aisingapore/Qwen-SEA-LION-v5-397B-A17B-Plus",
    messages=[
        {
            "role": "user",
            "content": "Saya mau kirim 40 kardus durian beku dari Medan ke Singapura lewat Pelabuhan Belawan. Jelaskan dokumen ekspor yang wajib saya siapkan, perkiraan waktu transit, dan risiko rantai dingin yang paling sering terjadi di rute ini. Jawab dalam Bahasa Indonesia, format poin.",
        },
    ],
    extra_body={"chat_template_kwargs": {"enable_thinking": True}},
)

message = response.choices[0].message
print(message.reasoning_content)
print(message.content)

For tool calling, pass tools as in the vLLM example above.

These examples are adapted from the Qwen/Qwen3.5-397B-A17B model card, which also covers image and video input, multi-token prediction and recommended sampling settings. For hardware, N-gram Embedding offload and more vLLM options, see vLLM's Qwen3.8-Flash-Next recipe. For more SGLang options, see SGLang's Qwen3.8-Flash-Next cookbook.

Out-of-Scope Use

The model has not been aligned for safety. Developers and users should perform their own safety fine-tuning and related security measures. In no event shall the authors be held liable for any claims, damages, or other liabilities arising from the use of the released weights and codes.

Bias, Risks, and Limitations

The model was not tested for robustness against adversarial prompting. It is important for users to be aware that our model exhibits certain limitations that warrant consideration. Like many LLMs, the model can hallucinate and occasionally generates irrelevant content, introducing fictional elements that are not grounded in the provided context. Users should also exercise caution in interpreting and validating the model's responses due to the potential inconsistencies.

For Qwen's training and evaluation details, see the Qwen/Qwen3.5-397B-A17B and Qwen/Qwen3.8-Flash-Next model cards.

Training

Training was text-only, using prompts from aisingapore/SEA-Instruct-2602, an instruction dataset in English and Southeast Asian languages. We trained with Reinforcement Learning and On-Policy Distillation simultaneously, with Qwen/Qwen3.8-2.4T-A95B as the teacher and an LLM judge (DeepSeek-V4.1-Flash-1017) grading answers against per-prompt rubrics.

Training is experimental and still in progress.

Evaluation

We evaluated SEA-LION-v5 on multilingual, multicultural, multi-turn chat and instruction-following capabilities. For the evaluation used in SEA-LION-v5, the new version of SEA-HELM (Southeast Asian Holistic Evaluation of Language Models) is adopted as the evaluation framework.

Testing Data

General language capabilities: For the evaluation of general language capabilities, we employed the SEA-HELM evaluation benchmark across a variety of tasks. These tasks include Question Answering (QA), Sentiment Analysis (Sentiment), Metaphor Understanding, Toxicity Detection (Toxicity), SEA-SafeguardBench, Translation in both directions (Eng>Lang & Lang>Eng), Abstractive Summarisation (Abssum), Causal Reasoning (Causal), Natural Language Inference (NLI), Linguistic Diagnostics (LINDSEA), KOPI-SEA, Cultural Knowledge (Kalahi), Thai Exam, and Global MMLU Lite. Language coverage within SEA-HELM includes Filipino, Indonesian, Tamil, Thai, and Vietnamese, and is now further extended to Malay and Burmese.

Instruction-following and Multi-turn Chat: We evaluated instruction following with SEA-IFEval (based on IFEval) and multi-turn chat with SEA-MTBench (based on MT-Bench). Both datasets were originally in English. Linguists and native speakers in the team filtered, localised and translated them into each target language so that the examples remain reasonable, meaningful and natural, avoiding the translationese and cultural erasure of machine-translated benchmarks. Native speakers of the target languages took part in every stage of dataset planning and construction.

Factors

All evaluations ran with the model-specific generation parameters defined in the model config. Each evaluation consisted of 8 runs with different seeds, and the average score for each prompt was then calculated.

Bootstrapping with replacement for each prompt was done to obtain the task score. The final result is then the aggregation of the various task scores.

For tasks that are not judged by an LLM, the model was expected to provide an answer tag from which the answer was automatically extracted. Additionally, when options were provided, the answer should comprise one of the pre-defined options. For tasks that are judged using an LLM, the entire generated text was given to the LLM for judging.

The evaluation was done zero-shot with native prompts on a sample of 100-1000 instances for each dataset. Task prompts are issued in the target language itself, on the view that full support for a language requires a model both to interpret native instructions and to respond coherently in that language.

  • SEA-IFEval: SEA-IFEval evaluates a model's ability to adhere to constraints provided in the prompt, for example, beginning a response with a specific word/phrase or answering with a certain number of sections. Additionally, accuracy is normalised by the proportion of responses in the correct language (if the model performs the task correctly but responds in the wrong language, it is judged to have failed the task).
  • SEA-MTBench: SEA-MTBench 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-oss-120b as the judge model. The metric used is the average criteria score where model responses were judged based on a set of specific criteria for each prompt.
  • KOPI-SEA: KOPI-SEA evaluates a model’s ability to generate a cultural concept based on a set of related words. We use gpt-oss-120b as the judge model to determine if the model identifies the correct concept. The metric used is the average criteria score.
  • LINDSEA 2.0: LINDSEA 2.0 evaluates a model’s ability to generate a text that contains a particular syntactic phenomenon. We use gpt-oss-120b to judge if the syntactic phenomenon can be found in the text and follows the prescribed grammar rules. The metric used is the average criteria score.

Metrics

The following metrics were used for text capabilities:

TaskMetric
Sentiment AnalysisAccuracy
Extractive QA (ID, VI, TH, TA)ChrF++
MCQ-QA (TL, MY, MS)Accuracy
MetaphorAccuracy
Abstractive SummarisationRouge-L
TranslationsMetricX-24 score (with reference)
Toxicity DetectionAccuracy
SEA-SafeguardAccuracy
Causal ReasoningAccuracy
Natural Language InferenceAccuracy
LINDSEAAccuracy
LINDSEA 2.0Average criteria score
Global MMLU LiteAccuracy
ThaiExamAccuracy
KalahiAccuracy
Kalahi (LLM-as-a-Judge)Average criteria score
KOPI-SEAAverage criteria score
SEA-IFEvalAccuracy
SEA-MTBench (LLM-as-a-Judge)Average criteria score

Results

SEA-LION Leaderboard, Overall SEA Average, 17 November 2026 Figure 1. Overall SEA-HELM average, with the SEA-LION v5 models in orange. Leaderboard captured on 17 November 2026.

SEA-LION Leaderboard, SEA Overall vs. Model Size, 17 November 2026 Figure 2. Qwen-SEA-LION-v5-397B-A17B-Plus leads the Pareto frontier across open models of similar or larger sizes.

SEA-LION Leaderboard, scores by language, 17 November 2026 Figure 3. SEA-HELM score per language: Comparing Qwen-SEA-LION-v5-397B-A17B-Plus (in orange) against Qwen 3.5 397B and other open and commercial models of similar or larger sizes.

For more details and a breakdown by task and language, see the SEA-LION Leaderboard.

Quant Results

SEA-LION Leaderboard, full precision vs. FP8 and NVFP4, 17 November 2026 Figure 4. SEA-HELM scores for the full-precision, FP8 and NVFP4 models. On the SEA average, FP8 and NVFP4 both score 77.17, against 77.10 for full precision.

More details on throughput for the FP8 and NVFP4 checkpoints are available at aisingapore/Qwen-SEA-LION-v5-397B-A17B-Plus-FP8 and aisingapore/Qwen-SEA-LION-v5-397B-A17B-Plus-NVFP4.

Team

AI Products Pillar, AI Singapore

Acknowledgement

This project is supported by the National Research Foundation Singapore and Infocomm Media Development Authority (IMDA), Singapore under its National Large Language Model Funding Initiative.

Qwen-SEA-LION-v5-397B-A17B-Plus is built on Qwen/Qwen3.5-397B-A17B, part of the Qwen team's Qwen3.5 family (blog), and uses the Qwen4Exp architecture of Qwen/Qwen3.8-Flash-Next (technical report).

Contact

sealion@aisingapore.org

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Модель не помещается в память одной GPU (80 ГБ).

Класс архитектуры
Qwen4ExpForConditionalGeneration
Ревизия весов
611a0cb

0 моделей