/ Модель

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

Контекст
8 192 токена
Параметры
1,4 млрд
Размер весов
34,5 ГБ
Лицензия
Apache 2.0
Архитектура
xverse · MoE
Базовая модель
XVERSE-MoE-A4.2B
Библиотека
transformers
Опубликована
29 дек 2025

XVERSE-Ent-A4.2B

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

Китайская MoE-модель XVERSE для генерации художественных и диалоговых текстов в сфере развлечений.

126скачиваний за 30 дней1лайквеса обновлены30 дек 2025

Бенчмарки

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

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

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

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

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

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

XVERSE-Ent-A4.2B — языковая модель для индустрии развлечений, разработанная XVERSE (Shenzhen Yuanxiang). Это китайская версия семейства XVERSE-Ent: модель предназначена для генерации и понимания текстов художественной прозы и диалогов, сохраняя общие языковые возможности. Архитектура — разреженная Mixture-of-Experts (MoE); в карточке указано 25 млрд общих параметров, а метаданные репозитория — 1,4 млрд. Контекст составляет 8 192 токена. Модель дообучена на базе xverse/XVERSE-MoE-A4.2B с многоэтапным усилением языковых и тематических возможностей; файлы представлены в формате safetensors для Transformers.

Модель подходит для создания рассказов и диалогов на китайском языке, а также для генерации текстов развлекательной тематики. README сообщает о хороших результатах на художественной прозе и разговорной генерации при сохранении общих возможностей, но не приводит полные численные результаты оценки. Лицензия — Apache-2.0. Как и другие большие языковые модели, она может выдавать неточные, предвзятые или оскорбительные ответы; перед внедрением рекомендуется проверка безопасности.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Model Introduction

The XVERSE-Ent series is a family of domain-specific, pretrained models developed by XVERSE (Shenzhen Yuanxiang) for the Entertainment domain. These models are trained and optimized on XVERSE’s large-scale, high-quality entertainment-domain data, thereby filling the gap for open-source large language models in the entertainment domain.

XVERSE-Ent includes both Chinese and English models:

  • XVERSE-Ent-A4.2B (Chinese)
  • XVERSE-Ent-A5.7B (English)

Both models adopt a Mixture-of-Experts (MoE) architecture. Detailed technical information is provided below.

ModelXVERSE-Ent-A4.2BXVERSE-Ent-A5.7B
LanguageChineseEnglish
Training RecipeMulti-stage TrainingFine-grained Upcycling + Multi-stage Training
Total Parameters25B36B
Activated Parameters4.2B5.7B
Number of Layers2832
Hidden Dimension25603072
Number of Attention Heads3232
Number of Shared Experts22
Number of Non-Shared Experts6464
Selected Experts per Token88
Vocabulary Size100K128K
Context Length8K8K

Technical Overview

XVERSE-Ent leverages Sparse Upcycling to convert a dense model into a large-scale MoE model. Combined with a carefully designed multi-stage training strategy, the models substantially enhance domain-specific capabilities while preserving most general-purpose abilities.

Sparse Upcycling

Sparse Upcycling is a technique that transforms a pretrained dense model into a MoE model without training from scratch. This approach enables a significant increase in total model capacity while substantially reducing training cost and time.

The upcycling process consists of two main steps:

  1. Fine-grained FFN Decomposition
    The Feed-Forward Network (FFN) layers of the dense model are decomposed into multiple smaller sub-networks. Each sub-network is treated as an independent expert in the MoE model. To better accommodate inference-time GPU memory constraints, expert sub-networks can be replicated as needed, enabling flexible adaptation to different hardware configurations.

  2. Attention Reuse
    The attention layers of the original dense model are preserved and directly reused in the MoE model. This design choice maximizes the retention of the original model’s general-purpose capabilities and ensures training stability during architectural transformation.

An illustration of the fine-grained FFN decomposition is shown below. In this example, a single FFN is split into two sub-networks, each serving as a separate expert.

In contrast, when the FFN is not decomposed, and the entire FFN is treated as a single expert, the approach we call coarse-grained decomposition is illustrated below.

Multi-Stage Training Strategy

XVERSE-Ent adopts a three-stage training pipeline to build models optimized for specific languages and domains:

  • S0: Capability Reconstruction – recovering general-purpose capabilities after architectural transformation
  • S1: Language Enhancement – enhancing the model’s modeling capability for the target language
  • S2: Domain Enhancement – enhancing the model’s generation and understanding abilities in the entertainment domain

The first two stages use general-domain data, while the final stage uses a mixture of general-domain and entertainment-domain data. This multi-stage design maximizes retention of general capabilities while significantly improving domain-specific performance.

XVERSE-Ent-A4.2B (Chinese) is obtained by applying S2 domain-enhancement training on the general-domain backbone XVERSE-MoE-A4.2B.
XVERSE-Ent-A5.7B (English) is built by transforming a general dense backbone into a MoE model via fine-grained MoE upcycling, followed by the full multi-stage training pipeline. Both the Chinese and English models support an 8K context window and are trained on ~1T tokens.

Model Evaluation

To evaluate domain-specific performance, we constructed multiple evaluation datasets across different domains:

  • fiction: novel and story-oriented texts
  • conversation: dialogue-oriented texts
  • webcc: general web text

The evaluation metric is Perplexity (PPL), where lower values indicate better performance.

The evaluation results demonstrate that XVERSE-Ent achieves excellent performance on entertainment tasks such as fiction writing and conversational generation, while maintaining strong general capabilities:

  • Performance on general benchmarks (e.g., MMLU, mathematics, and code) shows minimal degradation
  • Overall general capability retention exceeds 98%

These results confirm that XVERSE-Ent effectively enhances entertainment-domain performance without sacrificing general-purpose reasoning ability.

PerplexityXVERSE-MoE-A4.2B(General-domain)XVERSE-Ent-A4.2B(Entertainment-domain)
XfictionEN1.73741.7516
XfictionZH1.73151.5368
XwebccEN1.55191.6008
XwebccZH1.56461.6861
XconversationEN1.39181.3517
XconversationZH1.4131.3353
AVG(all)1.56501.5437
AVG(fiction + conversation)1.56841.4939
PerplexityDense-BaseCoarse-grained Upcycling(General-domain)Coarse-grained Upcycling(Entertainment-domain)Fine-grained Upcycling(General-domain)XVERSE-Ent-A5.7B(Fine-grained Upcycling, Entertainment-domain)
XfictionEN2.59912.60892.37402.59432.3620
XfictionZH2.73442.25652.17232.24372.1528
XwebccEN2.54752.47112.45572.44852.4283
XwebccZH2.92992.07912.11162.06512.0905
XconversationEN2.14432.08921.94392.07111.9194
XconversationZH2.34781.86101.85131.82491.8045
AVG(all)2.55052.22762.15152.20792.1263
AVG(fiction + conversation)2.45642.20392.08542.18352.0597

Usage

Loading with Transformers

The XVERSE-Ent-A4.2B model can be loaded for inference using the following code:

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("xverse/XVERSE-Ent-A4.2B")
model = AutoModelForCausalLM.from_pretrained("xverse/XVERSE-Ent-A4.2B", trust_remote_code=True, torch_dtype=torch.bfloat16, device_map='auto')
model = model.eval()
inputs = tokenizer('时间一分一秒地过去。雨声、冰箱偶尔的嗡鸣、墙壁里不知名管道的水流声,全都被放大。林屿意识到自己在数呼吸,仿佛只要停下来,房间里就会多出一个不属于他的存在。', return_tensors='pt').input_ids
inputs = inputs.cuda()
generated_ids = model.generate(inputs, max_new_tokens=70, eos_token_id=tokenizer.eos_token_id, repetition_penalty=1.1)
print(tokenizer.batch_decode(generated_ids, skip_special_tokens=True))

Limitations and Disclaimer

Like all other Large Language Models (LLMs), XVERSE-Ent series models may produce inaccurate, biased, or otherwise offensive content under certain circumstances. Therefore, please use the model-generated content with caution and refrain from disseminating harmful content. Before deploying any application based on the XVERSE-Ent series models, developers should conduct safety tests and optimize the model for its specific application.

We strongly discourage the use of the XVERSE-Ent series models for producing or disseminating harmful information, or for conducting any activities that might harm the public, national security, or social security, or violate regulations. We assume no responsibility for any problems arising from the use of the XVERSE-Ent series models, including data security issues, public opinion risks, or risks arising from misunderstanding, misuse, dissemination, or non-compliance with the model.

Open Source License

The use of the source code in this repository must follow the Apache-2.0 open-source license, while the use of the model weights of XVERSE-Ent series models needs to adhere to the Model License Agreement.

The weights of XVERSE-Ent series models are fully open to academic research and support unrestricted commercial use. For other questions or collaborations, please contact opensource@xverse.cn.

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
XverseForCausalLM
Ревизия весов
f37f333

0 моделей