/ Модель

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

Контекст
512 токенов
Параметры
138 млн
Лицензия
Apache 2.0
Архитектура
qmoe · MoE
Опубликована
22 дек 2025

QMoE-400

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

QMoE-400 — разреженная языковая модель для генерации текста и исследования эффективности архитектур смеси экспертов.

326скачиваний за 30 дней2лайкавеса обновлены31 дек 2025

Бенчмарки

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

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

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

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

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

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

QMoE-400 — исследовательская языковая модель семейства QMoE с архитектурой разреженной смеси экспертов, разработанная проектом Q-MoE. В README указано 400 млн параметров; метаданные Hugging Face указывают 137,7 млн параметров, поэтому размер модели в доступных источниках расходится. Модель обучена на OpenWebText с использованием JAX/Flax на восьми TPU v3 и доступна в формате safetensors; для загрузки через Transformers требуется trust_remote_code=True.

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

Практические ограничения: описание характеризует модель как исследовательский артефакт, а обучение проводилось на OpenWebText, поэтому её возможности за пределами текстовой генерации общего назначения не подтверждены. Для загрузки требуется разрешить выполнение пользовательского кода репозитория.

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

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

Ограничения

Это исследовательский артефакт, обученный на OpenWebText; качество для специализированных задач и других языков не подтверждено. Загрузка через Transformers требует trust_remote_code=True.

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

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

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

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

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

Открыть на Hugging Face

QMoE-400

QMoE-400 is a 400 million parameter Lightweight Sparse Mixture of Experts (MoE) model trained on the OpenWebText dataset using JAX/Flax on 8 TPU v3 chips.

This model serves as a research artifact for studying the compute efficiency of sparse architectures compared to dense transformers. It demonstrates how routing mechanisms can enable high-capacity models with lower inference costs.

💻 Usage

You can use this model directly with the Hugging Face transformers library. Since this model uses a custom architecture, trust_remote_code=True is required.

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

path = "QuarkML/QMoE-400"

# Load tokenizer and model
tok = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    path,
    trust_remote_code=True,
    dtype=torch.float16,  # optional but recommended for GPU
    device_map="auto"     # automatically maps to available device (CUDA/CPU)
)

# Generate text
text = """

Title: Why Simplicity Matters in Software Design

Many software systems become difficult to maintain not because the problems are hard, but because unnecessary complexity accumulates over time. Extra abstractions, premature optimizations, and unclear design choices often make systems fragile.

Experienced engineers tend to favor simple designs that are easy to understand, test, and evolve. Simplicity reflects clarity of thought and strong fundamentals rather than lack of sophistication.

"""
inputs = tok(text, return_tensors="pt")
inputs = {k: v.to(model.device) for k, v in inputs.items()}

out = model.generate(
    **inputs,
    max_new_tokens=50,
    do_sample=True,
    temperature=1
)

print(tok.decode(out[0], skip_special_tokens=True))

🎯 Project Goal

The primary goal of the Q-MoE project is to investigate:

  1. Compute Efficiency: Analyzing how sparse MoE models scale compared to dense counterparts with similar active parameter counts.
  2. Routing Dynamics: Studying load balancing and expert specialization during pre-training.
  3. Interoperability: Providing a bridge between research frameworks (JAX/Flax) and accessible inference (PyTorch).

📊 Training Metrics

The model was evaluated at step 79,100. The final validation metrics indicate stable routing and convergence on the OpenWebText validation split.

MetricValueDescription
Step79,100Total training steps
Train Loss3.2190Total training loss (CE + Aux)
Train CE3.0987Cross-Entropy loss on training data
Val Loss3.2028Total validation loss
Val CE3.0825Cross-Entropy loss on validation data
Router Loss0.1202Auxiliary load-balancing loss
Dropped Tokens0.0No tokens dropped (perfect capacity utilization)

Training Progress

Training Curve

📝 Generation Example

The following example demonstrates the model's generation capabilities after training.

Prompt:

Many software systems become difficult to maintain not because the problems are hard, but because unnecessary complexity accumulates over time. Extra abstractions, premature optimizations, and unclear design choices often make systems fragile. Experienced engineers tend to favor simple designs that are easy to understand, test, and evolve. Simplicity reflects clarity of thought and strong fundamentals rather than lack of sophistication.

Model Prediction:

is a key design feature in many software systems, from the ubiquitous Open Source Unix to the free software system to the proprietary Java APIs that allow a developer to do any other job at work.

While this is an obvious disadvantage for software development, the reality is that there are many aspects of software that are highly important to a programmer's day-to-day life. This is why even a moderately experienced programmer should never be concerned about this.

The best way to learn about your code is by going through its source code. That way, it's always safe to do something new when writing code. This gives your programmer freedom and confidence.

⚙️ Training Details

  • Architecture: Sparse Mixture of Experts (Transformer Decoder)
  • Parameters: ~400M (Total), significantly fewer active parameters per token.
  • Dataset: OpenWebText
  • Hardware: 8 x TPU v3
  • Framework: JAX / Flax

📜 Citation

If you find this model or the associated research useful, please cite:

@misc{qmoe-400,
  author = {Quark Machine Learning},
  title = {QMoE-400: A Sparse Mixture of Experts Model},
  year = {2025},
  publisher = {Hugging Face},
  journal = {Hugging Face Repository},
  howpublished = {\url{https://huggingface.co/QuarkML/QMoE-400}}
}

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

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

GPU в ailist

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

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

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

Класс архитектуры
QMoEForCausalLM
Ревизия весов
93123fb

0 моделей