/ Модель

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

Контекст
65 536 токенов
Параметры
2,2 млрд
Лицензия
Apache 2.0
Архитектура
Klear · MoE
Библиотека
transformers
Опубликована
4 сен 2025

Klear-46B-A2.5B-Base

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

Базовая MoE-языковая модель Kuaishou для генерации текста на китайском и английском языках с контекстом до 65 536 токенов.

124скачиваний за 30 дней29лайковвеса обновлены7 сен 2025

Бенчмарки

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

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

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

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

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

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

Klear-46B-A2.5B-Base — базовая языковая модель со sparse Mixture-of-Experts архитектурой, разработанная командой Kwai-Klear компании Kuaishou. В модели 46 млрд параметров, при генерации активируются около 2,5 млрд; всего используется 256 экспертов, из которых на слой выбираются 8 экспертов и один общий. Каталог указывает 2,2 млрд параметров, а README — 46 млрд общих и 2,5 млрд активных; вероятно, значение каталога отражает иной способ подсчёта.

Модель предназначена для генерации текста и служит базой для последующей адаптации под диалоговые, математические, STEM- и программные задачи. Она обучена на более чем 22 трлн токенов, поддерживает контекст до 65 536 токенов и рассчитана на китайский и английский языки. Для запуска README рекомендует Transformers версии 4.56.0 или новее с trust_remote_code=True; также упоминается форк vLLM.

Модель опубликована под лицензией Apache-2.0. Это базовая, а не instruction-tuned версия, поэтому для прямого диалогового использования может потребоваться дополнительная настройка. README приводит результаты внутренних и внешних бенчмарков; для HumanEval авторы отдельно отмечают чувствительность оценки к формату запросов.

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

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

Ограничения

Это базовая модель, а не версия, специально настроенная для следования инструкциям и диалога. README отмечает, что результат HumanEval чувствителен к формату промпта; заявленные бенчмарки частично основаны на внутренних оценках.

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

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

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

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

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

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

Открыть на Hugging Face

Klear

🔥News

  • 2025.09.05: We’ve released the Klear-46B-A2.5B series, which currently includes a base model and an instruction-tuned model with DPO. A reasoning-enhanced variant is also in training — stay tuned for upcoming updates!

1. Introduction

Klear-46B-A2.5B is a sparse Mixture-of-Experts (MoE) large language model developed by the Kwai-Klear Team at Kuaishou, designed to deliver both high performance and inference efficiency. It features 256 experts, with only 8 experts and 1 shared expert activated per layer during the forward pass, resulting in 46 billion total parameters but just 2.5 billion active — achieving dense-level performance at a fraction of the computational cost.

The model was trained on over 22 trillion tokens using a three-stage progressive curriculum:

1. Foundational Knowledge Learning (12T tokens): General-purpose datasets such as CommonCrawl were processed with stratified quality filters, following a curriculum learning strategy that progresses from lower to higher data quality.

2. Data Complexity Enhancement (8T tokens): The proportion of mathematical, coding, and STEM-related data was gradually increased to strengthen the model's reasoning and problem-solving capabilities.

3. Reasoning Enhancement and Longcontext Stage (2T tokens): Training focused on synthetic and reasoning-intensive data, combined with a fast learning rate annealing strategy to maximize data efficiency and optimize final performance.

As a result, Klear-46B-A2.5B-Base matches or surpasses the performance of dense models with several times more active parameters, while offering significantly better efficiency and cost-effectiveness for real-world deployment.

Model Summary

The base and instruction tuned + DPO models have the following architecture:

keyvalue
hidden_size2048
moe_intermediate_size896
n_shared_experts1
num_attention_heads32
num_experts256
num_experts_per_tok8
num_hidden_layers32
num_key_value_heads4
vocab_size151936
tie_word_embeddingsfalse
context length65536

Model Downloads

Model#Total Params#Activated ParamsContext LengthDownload Link
Klear-46B-A2.5B-Base46B2.5B64K🤗 Hugging Face
Klear-46B-A2.5B-Instruct46B2.5B64K🤗 Hugging Face

2. Benchmark Evaluation

Klear-46B-A2.5B-Base Evaluation Results

AbilityBenchmarkKlear-46B-A2.5B-BaseMiMO-7B-BaseQwen3-8B-BASEQwen3-14B-BASELing-lite-1.5-BaseQwen3-30B-A3B-BASE
# Total Params46B7B8B14B16.8B30B
# Activated Params2.5B7B8B14B2.75B3B
CodeHumanEval† (0-shot)89-84.187.883.590.9
MBPP (3-shot)7669.2*697466.675.6
MathMATH (4-shot, cot)55.738.860.8*62.02*59.959.04*
CMATH (3-shot)87.8378.588.390.785.789.7
GSM8K (4-shot, cot)87.378.4789.490.387.691.1
GeneralMMLU-Pro (5-shot, cot)57.643.155.258.149.958.8
MMLU (5-shot)80.569.2477.180.673.780.4
CEval (5-shot)89.867.9881.984.878.287.4
CMMLU (5-shot)8870.798285.681.287.1
GPQA (0-shot)35.331.0333.935.730.135.5
AGIEval (0-shot)52.348.3*51.755.754.356
BBH (3-shot, cot)77.975.678.180.175.481.2
HellaSwag (0-shot)80.580*78.781.58081.2
Triviaqa (5-shot)69.660.8*56.362.160.965.6
Naturalqs (5-shot)37.523.4625.729.12830.7
PIQA (0-shot)81.680.1479.581.98280.7
OpenBookQA (0-shot)37.834.23535.638.234.6
Average69.66-66.6269.6065.6070.41

Note:

  1. Results marked with * are sourced from their public report, other evaluations are conducted based on internal evaluation frameworks.
  2. †During pretraining, we found that the HumanEval metric fluctuated significantly and was extremely sensitive to formatting. Therefore, we referred to the prompt from Ling-series paper to modify the original HumanEval. The results in the table are the evaluation metrics after this modification.

Klear-46B-A2.5B-Instruct Evaluation Results

AbilityBenchmarkKlear-46B-A2.5B--InstructInternLM3-8B-InstructMiniCPM4-8BQwen3-8B (NoThink)gemma3-12b-itPhi4-14BQwen3-30B-A3B-2507
# Total Params46B8B8B8B12B14B30B
# Activated Params2.5B8B8B8B12B14B3B
GeneralMMLU-Redux81.9574.6577.6379.3278.3983.0988.11
MMLU-Pro63.6150.8754.6963.860.6967.2578.22
GPQA-Diamoind49.1238.7638.5151.7739.0259.4771.21
SimpleQA6.24.443.515.56.223.2823.39
CLUEWSC88.4977.6381.9182.8991.1288.1692.11
CEval85.9884.2681.7881.6660.8164.7988.57
C-SimpleQA42.825.8723.1337.0728.9724.7775.37
LiveBench 11255026.325.552.143.14068.4
MathMATH50086.468.479.88586.880.697.2
AIME2428.3311.2522.9228.3323.9615.8375
AIME2519.178.1215.2120.6218.3318.7561.88
CodeHumanEval86.5982.3*78.0583.5482.3285.3781.71
HumanEval+79.27-73.1776.8375.6183.5476.83
MBPPEvalplus79.962.483.376.285.777.589.4
MBPPEvalplus++68.850.471.766.174.166.775.1
LiveCodeBench v5(2408-2501)27.9614.712.1927.2424.7323.6641.22
AlignmentIF-Eval81.8979.373.0184.4781.5259.3383.92
Multi-IF(en+zh)78.4661.8361.7978.9576.5662.777.75
MTBench8.427.866.8758.218.688.629.33
MT-Eval8.137.366.78.188.458.12-
AlignBench v1.176.135.996.956.36.337.06
Average53.74-46.5452.6150.5448.95-

Note:

  1. For InternLM3-8B-Instruct, the results marked with * are sourced from their official website, other evaluations are conducted based on internal evaluation frameworks.
  2. For Multi-IF, we report the overall average computed across all three rounds, pooling the Chinese and English metrics.

3. Quick start

Inference with huggingface

You can now inference in Transformers starting from version 4.56.0 and set trust_remote_code=True.

Klear-46B-A2.5B-Base

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

model_path = "/path/to/Klear-Base"
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
    
model = AutoModelForCausalLM.from_pretrained(model_path, device_map="auto", dtype=torch.bfloat16, trust_remote_code=True)

text = "世界上最大的湖是"
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs.to(model.device), max_new_tokens=256)
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)

Klear-46B-A2.5B-Instruct

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig

model_path = "/path/to/Klear-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_path)

model = AutoModelForCausalLM.from_pretrained(model_path, device_map="auto", dtype=torch.bfloat16, trust_remote_code=True)

messages = [
    {"role": "user", "content": "帮我用 python 写一个计算器的代码吧。"}
]
input_tensor = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
outputs = model.generate(input_tensor.to(model.device), max_new_tokens=1024)

result = tokenizer.decode(outputs[0][input_tensor.shape[1]:], skip_special_tokens=True)
print(result)

Inference with vllm

vLLM is a high-speed and memery-efficicent inference framework. We provide our own forked version of vLLM here.

git clone https://github.com/Kwai-Klear/vllm.git
cd vllm
VLLM_USE_PRECOMPILED=1 pip install --editable .
vllm serve /path/to/Klear-Instruct --port 8000 --tensor-parallel-size 8 --trust-remote-code

An OpenAI-compatible API will be available at http://localhost:8000/v1.

Or you can refer to the following Python script for offline inference

import torch
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer

model_path = "/path/to/Klear-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)

llm = LLM(
    model=model_path,
    trust_remote_code=True,
    tensor_parallel_size=torch.cuda.device_count(),
    gpu_memory_utilization=0.7
)
messages = [
    {"role": "user", "content": "帮我用 python 写一个计算器的代码吧。"}
]

prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)

sampling_params = SamplingParams(
    temperature=0.6, top_p=0.95, top_k=40, max_new_tokens=1024
)

outputs = llm.generate([prompt], sampling_params)

print(outputs[0].outputs[0].text)

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

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

GPU в ailist

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

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

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

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

0 моделей