/ Модель

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

Контекст
4 096 токенов
Параметры
13,2 млрд
Размер весов
146 ГБ
Лицензия
Apache 2.0
Архитектура
mixtral · MoE
Библиотека
transformers
Опубликована
25 мая 2025

llm-jp-3.1-8x13b

Генерация текстаТекст → текст8 профессий

Японская и англоязычная языковая модель Mixtral для генерации текста и выполнения инструкций.

147скачиваний за 30 дней0лайковвеса обновлены30 мая 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

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

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

llm-jp-3.1-8x13b — большая языковая модель, разработанная Центром исследований и разработок больших языковых моделей Национального института информатики Японии. Это модель семейства Mixtral с архитектурой Transformer и смесью экспертов: в ней 8 маршрутизируемых экспертов, из которых активируются 2. README приводит около 73,2 млрд общих параметров и около 22,2 млрд активируемых параметров; в метаданных указано 13,2 млрд параметров. Контекст составляет 4096 токенов.

Модель продолжает предобучение LLM-jp-3 в режиме Instruction Pre-Training, а также прошла supervised fine-tuning и Direct Preference Optimization. Она предназначена для генерации текста и следования инструкциям, в частности на японском и английском языках. Доступна в формате Safetensors для Transformers.

Разработчики предупреждают, что модель находится на раннем этапе исследований и разработок и не настроена для гарантированного соответствия человеческим намерениям и требованиям безопасности. Лицензия — Apache-2.0.

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

  • создание ответов на японском языке по заданным инструкциям
  • генерация и продолжение текста на английском языке
  • подготовка черновиков и кратких пояснений
  • диалоговые ответы на текстовые запросы
  • сравнение качества генерации японских и английских моделей

Ограничения

Разработчики указывают, что модель находится на раннем этапе исследований и разработок и не настроена для гарантированного соответствия человеческим намерениям и требованиям безопасности. Контекст ограничен 4096 токенами.

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

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

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

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

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

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

Открыть на Hugging Face

llm-jp-3.1-8x13b

LLM-jp-3.1 is a series of large language models developed by the Research and Development Center for Large Language Models at the National Institute of Informatics.

Building upon the LLM-jp-3 series, the LLM-jp-3.1 models incorporate mid-training (instruction pre-training), which significantly enhances their instruction-following capabilities compared to the original LLM-jp-3 models.

This repository provides the llm-jp-3.1-8x13b model. For an overview of the LLM-jp-3.1 models across different parameter sizes, please refer to:

For more details on the training procedures and evaluation results, please refer to this blog post (in Japanese).

Checkpoints format: Hugging Face Transformers

Required Libraries and Their Versions

  • torch>=2.3.0
  • transformers>=4.40.1
  • tokenizers>=0.19.1
  • accelerate>=0.29.3
  • flash-attn>=2.5.8

Usage

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("llm-jp/llm-jp-3.1-8x13b")
model = AutoModelForCausalLM.from_pretrained("llm-jp/llm-jp-3.1-8x13b", device_map="auto", torch_dtype=torch.bfloat16)
text = "自然言語処理とは何か"
tokenized_input = tokenizer.encode(text, add_special_tokens=False, return_tensors="pt").to(model.device)
with torch.no_grad():
    output = model.generate(
        tokenized_input,
        max_new_tokens=100,
        do_sample=True,
        top_p=0.95,
        temperature=0.7,
        repetition_penalty=1.05,
    )[0]
print(tokenizer.decode(output))

Model Details

  • Model type: Transformer-based Language Model
  • Architectures:

Dense model:

ParamsLayersHidden sizeHeadsContext lengthEmbedding parametersNon-embedding parameters
1.8b242048164096407,498,7521,459,718,144
13b4051204040961,018,746,88012,688,184,320

MoE model:

ParamsLayersHidden sizeHeadsRouted ExpertsActivated ExpertsContext lengthEmbedding parametersNon-embedding parametersActivated parametersTotal parameters
8x13b405120408240961,018,746,88072,144,081,92022,200,806,40073,162,828,800

Tokenizer

The tokenizer of this model is based on huggingface/tokenizers Unigram byte-fallback model. The vocabulary entries were converted from llm-jp-tokenizer v3.0. Please refer to README.md of llm-jp-tokenizer for details on the vocabulary construction procedure (the pure SentencePiece training does not reproduce our vocabulary).

Datasets

Pre-training

The models have been pre-trained using a blend of the following datasets.

LanguageDatasetTokens
JapaneseWikipedia2.6B
Common Crawl762.8B
WARP/PDF237.3B
WARP/HTML2.7B
Kaken1.8B
EnglishWikipedia4.7B
Dolma/CC-head608.5B
Dolma/C4181.6B
Dolma/Reddit83.1B
Dolma/PeS2o62.9B
Dolma/Gutenberg5.5B
Dolma/Wiki3.9B
CodeThe Stack114.1B
ChineseWikipedia0.8B
KoreanWikipedia0.3B

Mid-training

In the LLM-jp-3.1 series, we performed continuous pre-training based on Instruction Pre-Training. Instruction Pre-Training enhances a model’s ability to follow instructions by continuing pre-training on a large collection of instruction–response pairs. We prepared approximately 90B tokens of instruction–response data and mixed it with our pre-training datasets, conducting continuous pre-training on a total of 400B tokens. Each model was initialized from existing checkpoints (llm-jp/llm-jp-3-1.8b, llm-jp/llm-jp-3-13b, and llm-jp/llm-jp-3-8x13b) and underwent continuous instruction pre-training. Since the LLM-jp-3 series was originally pre-trained on 2.1T tokens, the total pre-training token count amounts to 2.5T tokens.

Details of this training process will be released in a forthcoming paper. The instruction–response dataset used for this training will also be made publicly available.

Post-training

We have fine-tuned the pre-trained checkpoint with supervised fine-tuning and further aligned it with Direct Preference Optimization.

Supervised Fine-tuning

The datasets used for supervised fine-tuning are as follows:

LanguageDatasetDescription
Japaneseichikara-instruction-004-002A manually constructed instruction dataset.
AnswerCarefully (ver2.0)A manually constructed instruction dataset focusing on LLMs' safety.
ichikara-instruction-formatA small subset of the ichikara-instruction dataset, edited with some constraints on the output format.
AutoMultiTurnByCalm3-22BA synthetic instruction dataset.
ramdom-to-fixed-multiturn-Calm3A synthetic instruction dataset.
wizardlm8x22b-logical-math-coding-sft-jaA synthetic instruction dataset.
magpie-sft-v1.0A synthetic instruction dataset we created.
jaster v1.4.1-
extraction-wiki-jaA synthetic instruction dataset we created.
EnglishDaring-Anteater-
Japanese & EnglishSynthetic-JP-EN-Coding-DatasetA synthetic instruction dataset.

Direct Preference Optimization

For Direct Preference Optimization (DPO), we adopted rejection sampling. Prompts were sampled from the dataset used in SFT, and multiple responses were generated for each prompt. These responses were then scored (by Qwen/Qwen2.5-32B-Instruct), and DPO was performed by treating high-scoring responses as positive examples and low-scoring responses as negative examples.

We conducted DPO in two stages. In the second stage, we additionally used ac-self-inst, a Japanese preference dataset focused on safety.

Evaluation

MT Bench (Japanese and English)

We evaluated the models using gpt-4o-2024-08-06. The scores represent the average values obtained from three rounds of inference and evaluation. For more details, please refer to the codes.

Model NameJAEN
gpt-35-turbo-11066.487.56
gpt-4-06137.297.72
gpt-4o-2024-08-068.108.38
sbintuitions/sarashina2.2-1b-instruct-v0.15.305.66
sbintuitions/sarashina2.2-3b-instruct-v0.17.076.96
Rakuten/RakutenAI-2.0-8x7B-instruct6.686.33
cyberagent/calm3-22b-chat6.866.77
Qwen/Qwen2.5-14B-Instruct7.077.99
Qwen/Qwen2.5-32B-Instruct7.648.27
Qwen/Qwen3-1.7B5.466.95
Qwen/Qwen3-14B8.008.30
Qwen/Qwen3-32B8.368.33
tokyotech-llm/Llama-3.3-Swallow-70B-Instruct-v0.47.648.02
stockmark/Stockmark-2-100B-Instruct-beta7.427.17
llm-jp-3-1.8b-instruct34.644.09
llm-jp-3-13b-instruct36.216.13
llm-jp-3-8x13b-instruct36.606.49
llm-jp-3.1-1.8b-instruct46.305.70
llm-jp-3.1-13b-instruct47.377.01
llm-jp-3.1-8x13b-instruct47.507.05

AnswerCarefully-Eval

AnswerCarefully-Eval assesses the safety of Japanese language model outputs using the LLM-as-a-Judge approach, based on the test set from llm-jp/AnswerCarefully. We evaluated the models using gpt-4o-2024-08-06. The scores represent the average values obtained from three rounds of inference and evaluation. For more details, please refer to the codes.

Model nameScoreAcceptance rate (%, ↑)Violation rate (%, ↓)
gpt-35-turbo-11063.9871.712.6
gpt-4-06134.0672.313.2
gpt-4o-2024-08-064.0972.712.5
llm-jp-3-1.8b-instruct34.0375.912.2
llm-jp-3-13b-instruct34.3788.46.5
llm-jp-3-8x13b-instruct34.4891.64.3
llm-jp-3.1-1.8b-instruct43.6664.724.3
llm-jp-3.1-13b-instruct44.1782.412.2
llm-jp-3.1-8x13b-instruct44.2683.111.6

Risks and Limitations

The models released here are in the early stages of our research and development and have not been tuned to ensure outputs align with human intent and safety considerations.

Send Questions to

llm-jp(at)nii.ac.jp

License

Apache License, Version 2.0

Model Card Authors

The names are listed in alphabetical order.

Hirokazu Kiyomaru and Takashi Kodama.

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

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

GPU в ailist

vLLM

Можно запустить

Подбираем GPU…

Класс архитектуры
MixtralForCausalLM
Ревизия весов
0ea88ca

0 моделей