/ Модель

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

Контекст
32 768 токенов
Параметры
284 млн
Лицензия
Apache 2.0
Архитектура
nekomind_moe · MoE
Библиотека
transformers
Опубликована
23 июн 2026

NekoMind1.6-Base

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

NekoMind1.6-Base — предварительно обученная MoE-языковая модель для генерации текста и построения диалоговых приложений.

342скачиваний за 30 дней1лайквеса обновлены13 сен 2026

Бенчмарки

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

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

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

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

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

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

NekoMind1.6-Base — базовая предварительно обученная языковая модель серии NekoMind от nekocyrene для генерации текста. Это декодерный Transformer с архитектурой Mixture-of-Experts: 20 слоёв, из которых 18 используют разреженные блоки экспертов с маршрутизацией top-4, а первые два — плотные MLP. В README указано 1,5 млрд параметров всего и около 300 млн активируемых на токен; метаданные каталога указывают 284,4 млн параметров, поэтому фактический размер следует считать расходящимся между источниками. Модель использует RoPE, SwiGLU, RMSNorm и GQA, имеет контекст до 32 768 токенов и поддерживает чатовый шаблон и интерфейс вызова инструментов.

Модель предназначена для продолжения текста и диалоговых сценариев, а также может служить основой для дальнейшей адаптации. README не приводит оценок качества, перечня поддерживаемых естественных языков или специализированных предметных областей. Для загрузки требуется Transformers не ниже 4.51.0, PyTorch не ниже 2.1.0 и включение trust_remote_code=True, поскольку пользовательский код архитектуры ещё не включён в основную библиотеку Transformers. Лицензия репозитория — Apache-2.0.

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

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

Ограничения

В карточке не приведены результаты оценки качества и сведения о поддерживаемых языках; параметрический размер расходится между README (1,5 млрд всего, около 300 млн активных) и метаданными каталога (284,4 млн). Для загрузки нужна поддержка пользовательского кода через trust_remote_code=True.

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

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

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

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

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

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

Открыть на Hugging Face

NekoMind1.6-Base

Introduction

NekoMind1.6 is the latest series of NekoMind large language models. It adopts a Mixture-of-Experts (MoE) architecture to achieve a strong balance between model capacity and inference efficiency. With 1.5B total parameters but only ~300M activated per token, NekoMind1.6 delivers competitive performance while maintaining low computational cost during inference.

This repo contains the base (pre-trained) NekoMind1.6 model, which has the following features:

  • Type: Causal Language Models
  • Training Stage: Pretraining
  • Architecture: Transformer decoder with RoPE, SwiGLU, RMSNorm, GQA, and Mixture-of-Experts
  • Number of Parameters: 1.5B (Total) / ~300M (Activated)
  • Number of Parameters (Non-Embedding): 1.47B
  • Number of Layers: 20
  • Number of Attention Heads (GQA): 8 for Q and 4 for KV
  • Head Dimension: 128
  • Context Length: 32,768 tokens
  • Number of Experts: 32 (Top-4 routing)
  • Shared Expert: Yes (with gating)
  • Vocabulary Size: 32,006

Key Design Choices

  • Mixture-of-Experts (MoE): 18 out of 20 layers use sparse MoE blocks with 32 experts and top-4 routing, enabling high model capacity with efficient inference.
  • Dense Layers: The first 2 layers (layer 0 and 1) use standard dense MLP for stable early feature extraction.
  • Shared Expert with Gating: Each MoE layer includes a shared expert with a sigmoid gate, ensuring a baseline of knowledge is always available regardless of routing decisions.
  • Grouped Query Attention (GQA): Uses 8 query heads and 4 key-value heads to reduce KV-cache memory usage.
  • QK-Norm: Applies RMSNorm to query and key projections for training stability.
  • RoPE: Rotary Position Embedding with a base frequency of 1,000,000 for strong long-context extrapolation.

Architecture

The following diagram illustrates the overall architecture of NekoMind1.6:

┌─────────────────────────────────────────────────────────────┐
│                    NekoMind1.6-Base                          │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  Input Tokens                                               │
│       │                                                     │
│       ▼                                                     │
│  ┌──────────┐                                               │
│  │Embedding │  (vocab: 32006, dim: 1024)                    │
│  └────┬─────┘                                               │
│       │                                                     │
│       ▼                                                     │
│  ╔══════════════════════════════════════════════════════╗    │
│  ║  Decoder Layer × 20                                  ║    │
│  ║                                                      ║    │
│  ║  ┌─────────────────────────────────────────────┐     ║    │
│  ║  │ RMSNorm                                     │     ║    │
│  ║  │     │                                       │     ║    │
│  ║  │     ▼                                       │     ║    │
│  ║  │ GQA Attention (8Q / 4KV, head_dim=128)      │     ║    │
│  ║  │ ├─ Q/K Projections → QK-Norm → RoPE        │     ║    │
│  ║  │ └─ Output Projection                       │     ║    │
│  ║  │     │                                       │     ║    │
│  ║  │     + (residual)                            │     ║    │
│  ║  │     │                                       │     ║    │
│  ║  │ RMSNorm                                     │     ║    │
│  ║  │     │                                       │     ║    │
│  ║  │     ▼                                       │     ║    │
│  ║  │ ┌───────────────────────────────────────┐   │     ║    │
│  ║  │ │ Layer 0-1: Dense MLP (SwiGLU)         │   │     ║    │
│  ║  │ │   gate_proj ─┐                        │   │     ║    │
│  ║  │ │   up_proj ───┼─→ SiLU(gate) * up      │   │     ║    │
│  ║  │ │              └─→ down_proj → output    │   │     ║    │
│  ║  │ ├───────────────────────────────────────┤   │     ║    │
│  ║  │ │ Layer 2-19: Sparse MoE Block          │   │     ║    │
│  ║  │ │                                       │   │     ║    │
│  ║  │ │  input ──┬──→ Router (TopK=4/32)      │   │     ║    │
│  ║  │ │          │       │                    │   │     ║    │
│  ║  │ │          │       ▼                    │   │     ║    │
│  ║  │ │          │    Expert × 32 (SwiGLU)    │   │     ║    │
│  ║  │ │          │       │ (weighted sum)     │   │     ║    │
│  ║  │ │          │       ▼                    │   │     ║    │
│  ║  │ │          └──→ Shared Expert (SwiGLU)  │   │     ║    │
│  ║  │ │                  │ × σ(gate)          │   │     ║    │
│  ║  │ │                  ▼                    │   │     ║    │
│  ║  │ │          expert_out + shared_out      │   │     ║    │
│  ║  │ └───────────────────────────────────────┘   │     ║    │
│  ║  │     │                                       │     ║    │
│  ║  │     + (residual)                            │     ║    │
│  ║  └─────────────────────────────────────────────┘     ║    │
│  ╚══════════════════════════════════════════════════════╝    │
│       │                                                     │
│       ▼                                                     │
│  ┌──────────┐                                               │
│  │ RMSNorm  │                                               │
│  └────┬─────┘                                               │
│       │                                                     │
│       ▼                                                     │
│  ┌──────────┐                                               │
│  │ LM Head  │  (tied with embedding weights)                │
│  └────┬─────┘                                               │
│       │                                                     │
│       ▼                                                     │
│  Output Logits (vocab: 32006)                               │
│                                                             │
└─────────────────────────────────────────────────────────────┘

Requirements

Note: The NekoMind1.6 model code has not yet been merged into the main transformers library. You must enable trust_remote_code=True when loading the model to use the custom modeling code hosted in this repository.

  • transformers >= 4.51.0
  • torch >= 2.1.0

Install the required dependencies:

pip install transformers>=4.51.0 torch accelerate

Quickstart

Here is a code snippet showing how to load the model and generate text. Since the model architecture is not yet integrated into the upstream transformers library, you need to set trust_remote_code=True to load the custom model code from this repository.

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "nekocyrene/NekoMind1.6-Base"

model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto",
    trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(
    model_name,
    trust_remote_code=True,
)

prompt = "The theory of relativity"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

generated_ids = model.generate(
    **inputs,
    max_new_tokens=512,
)
generated_ids = [
    output_ids[len(input_ids):] for input_ids, output_ids in zip(inputs.input_ids, generated_ids)
]

response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)

Chat Usage

For chat-style interaction, use apply_chat_template:

prompt = "Give me a short introduction to large language models."
messages = [
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)

generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=512,
)
generated_ids = [
    output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]

response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)

License

This model is released under the Apache 2.0 License.

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

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

GPU в ailist

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

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

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

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

0 моделей