/ Модель

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

Контекст
8 192 токена
Параметры
148 млн
Лицензия
fair-noncommercial-research-license
Архитектура
mobilemoe · MoE
Библиотека
transformers
Опубликована
15 окт 2026

MobileMoE-S-SFT

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

Инструкционная англоязычная MoE-модель Meta для диалогов и генерации текста с прицелом на запуск на устройствах с ограниченными ресурсами.

177скачиваний за 30 дней0лайковвеса обновлены15 окт 2026

Бенчмарки

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

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

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

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

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

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

MobileMoE-S-SFT — языковая модель Meta для локального запуска на устройствах с ограниченными ресурсами. Это инструкция-настроенная версия семейства MobileMoE с разреженной архитектурой Mixture-of-Experts: в модели 1,3 млрд параметров всего и 272 млн активных параметров, 20 слоёв, 60 маршрутизируемых экспертов и один общий эксперт. Она принимает и генерирует текст, поддерживает диалоги и рассчитана на английский язык; длина контекста — 8192 токена.

Модель предназначена для генерации ответов и диалоговых сценариев непосредственно на устройстве. В карточке сообщается, что семейство MobileMoE показывает конкурентные результаты на ряде тестов при меньших вычислительных затратах, включая задачи рассуждения и математики. Этот чекпойнт получен после этапа контролируемой донастройки инструкциями; он не включает следующий этап обучения с квантованием INT4. Для загрузки используется пользовательская архитектура, а README указывает на необходимость включить trust_remote_code.

Лицензия FAIR Noncommercial Research License разрешает только некоммерческое использование. README также отмечает предупреждение токенизатора при указанной версии Transformers и рекомендует не менять соответствующую настройку. Модель не мультимодальна и не предназначена для генерации изображений или аудио.

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

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

Ограничения

Модель рассчитана на английский язык; применима только для некоммерческого использования по лицензии FAIR Noncommercial Research License. Для загрузки требуется trust_remote_code, поскольку архитектура MobileMoE пока не входит в upstream Transformers.

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

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

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

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

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

Открыть на Hugging Face

Mirror of facebook/MobileMoE-S-SFT. All credit to the original authors. Not an official release from them. License unchanged (FAIR Noncommercial Research License, non-commercial use only); see LICENSE.

MobileMoE-S (SFT) Model Card

MobileMoE is a family of on-device Mixture-of-Experts (MoE) language models with sub-billion active parameters, designed to push the quality–efficiency Pareto frontier for on-device LLMs, including three model scales (S/M/L): 0.3B/0.5B/0.9B active parameters (1.3B/2.8B/5.3B total), with <3 GB INT4 weight footprints to fit in mobile DRAM. Each scale is released in three variants: a Base model (pre-training + mid-training), an SFT model (supervised fine-tuning), and a QAT model (quantization-aware training). You are currently in the MobileMoE-S-SFT repository — the instruction-tuned 0.3B-active model.

SML
Active / total params272M / 1.3B528M / 2.8B922M / 5.3B
Layers202632
Model dimension76810241280
Heads (Q / KV)12 / 416 / 420 / 4
Routed experts606060
Top-k444
INT4 weight memory0.68 GB1.48 GB2.75 GB
BaseMobileMoE-S-BaseMobileMoE-M-BaseMobileMoE-L-Base
SFTMobileMoE-S-SFTMobileMoE-M-SFTMobileMoE-L-SFT
QAT (INT4)MobileMoE-S-QATMobileMoE-M-QATMobileMoE-L-QAT

For the detailed technical report: 📝 MobileMoE: Scaling On-Device Mixture of Experts

For more versions, check out the 🤗 MobileMoE Collection

MobileMoE establishes a new Pareto frontier for on-device LLMs

MobileMoE establishes a new Pareto frontier for on-device LLMs. Average benchmark accuracy, computed over 14 benchmarks spanning commonsense, knowledge, science, comprehension, and reasoning, is plotted against (a) per-token inference compute Finf = 2Nact (GFLOPs) and (b) total parameters Ntotal (B); in (b), x-axis tick labels show total params (B) | projected INT4 memory (GB). Accuracy is shown for the instruction-tuned models.

Key Features

  • A new Pareto frontier for on-device LLMs. Across 14 foundational benchmarks, MobileMoE matches or exceeds leading on-device dense LLMs at 2–4× fewer inference FLOPs, and matches or surpasses the state-of-the-art MoE OLMoE-1B-7B with up to 60% fewer parameters.
  • Scaling-law-derived architecture. The architecture is derived from an on-device MoE scaling law that jointly optimizes under mobile memory and compute constraints, identifying an on-device sweet spot: moderate sparsity, with fine-grained experts and shared expert.
  • Four-stage recipe. Pre-training → mid-training → instruction fine-tuning → INT4 quantization-aware training, all on open-source datasets.

Model Information

Model: MobileMoE-S-SFT (instruction-tuned) Active Parameters: 272M Total Parameters: 1.3B Layers: 20 Model Dimension: 768 Attention Heads: 12 KV Heads: 4 (GQA) Head Dimension: 64 Routed Experts: 60 (fine-grained, FFN hidden dim 384 each) Active Experts per Token: 4 (top-k sigmoid routing, with normalization) Shared Expert: 1, always on (FFN hidden dim 1536) Vocabulary Size: 128,256 Other Features: QK-Norm, tied input/output embeddings, RoPE (θ = 500,000) Chat Template: Yes (end-of-turn token <|eot|>) Input Modality: Text Output Modality: Text Languages: English Training Stages: Pre-training → mid-training → supervised fine-tuning (SFT) Context Length: 8,192 tokens Precision: BF16 Model Developer: Meta Model Release Date: Aug 2026 License: MobileMoE is FAIR NC licensed

Results

All results below are for the instruction-tuned (SFT) models. We re-evaluated every model under identical settings in non-thinking mode with greedy decoding, using lm-eval together with the official allenai/IFBench package. Few-shot counts are shown in parentheses after benchmark names; benchmarks without a count are evaluated 0-shot. The MobileMoE results use the exact weights in this repository, which include brief fine-tuning with self-identity beyond the SFT checkpoint in the technical report, resulting in a small difference: a foundational-benchmark average of 47.2 here versus 46.7 in the report.

Foundational benchmarks

CapabilityBenchmarkGemma 3 270MSmolLM2 360MMobileMoE-S
Active / total params270M362M272M / 1.3B
Commonsense ReasoningHellaSwag39.456.956.1
PIQA67.171.674.8
SIQA39.640.643.1
WinoGrande53.057.459.6
KnowledgeMMLU (5-shot)26.525.942.9
NaturalQuestions (5-shot)2.86.410.9
TriviaQA (5-shot)9.120.430.5
ScienceARC-Challenge (25-shot)27.738.846.2
ARC-Easy50.549.173.6
OpenBookQA35.036.232.6
ReadingBoolQ56.142.572.7
DROP (3-shot)11.015.233.1
ReasoningBIG-Bench Hard (3-shot)31.830.532.5
GSM8K (8-shot)5.810.052.4
Average32.535.847.2

Other capabilities

CapabilityBenchmarkGemma 3 270MSmolLM2 360MMobileMoE-S
MathMATH-500 (4-shot)7.23.818.8
GSM-Plus (5-shot)4.34.628.9
Avg5.74.223.8
CodeHumanEval12.80.046.3
MBPP (3-shot)9.822.827.4
Avg11.311.436.9
Instruction FollowingIFEval31.240.259.5
IFBench11.219.114.2
Avg21.229.736.8

Training

MobileMoE uses a four-stage recipe. This checkpoint is the output of stage 3 (supervised fine-tuning).

MobileMoE four-stage training recipe

MobileMoE four-stage training recipe: pre-training (PT) → mid-training (MT) → instruct supervised fine-tuning (SFT) → quantization-aware training (QAT) with INT4 precision.

Pre-trainingMid-trainingSFTQAT
Context length2,0488,1928,1928,192
Total tokens~6T~500B~126B~21B
Peak learning rate4×10-44×10-54×10-64×10-6
LR scheduleCosineLinearCosineCosine
Token dispatchdrop-and-paddrop-and-paddroplessdropless

How to use

MobileMoE uses a custom architecture (model_type: mobilemoe) that is not yet part of upstream transformers, so trust_remote_code=True is required. The modeling code ships in this repo (configuration_mobilemoe.py, modeling_mobilemoe.py).

Requirements

pip install "torch>=2.1" "transformers>=4.57" "safetensors>=0.4" "accelerate>=1.0"

Verified with the following versions:

PackageVersion
torch2.8.0 (cu128)
transformers4.57.6
tokenizers0.22.2
safetensors0.7.0
accelerate1.13.0

For batch evaluation we recommend vLLM (≥ 0.10.2) with enforce_eager=True.

Known issues. Loading the tokenizer on transformers 4.57.6 prints a fix_mistral_regex=True warning. Please ignore it and do not set the flag — MobileMoE uses the Llama-3 128k text vocabulary, whose default tokenization is already correct.

Chat

This instruction-tuned model includes a chat template. Format prompts with apply_chat_template; the template uses <|eot|> to mark the end of each turn.

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

MODEL_ID = "facebook/MobileMoE-S-SFT"

tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForCausalLM.from_pretrained(
    MODEL_ID,
    trust_remote_code=True,
    dtype=torch.bfloat16,
)
model.to("cuda" if torch.cuda.is_available() else "cpu")
model.eval()

messages = [{"role": "user", "content": "Why are open-source on-device language models great?"}]
input_ids = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, return_tensors="pt"
).to(model.device)

outputs = model.generate(
    input_ids,
    attention_mask=torch.ones_like(input_ids),
    max_new_tokens=1024,
    do_sample=False,
    temperature=None,
    top_p=None,
    pad_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(outputs[0][input_ids.shape[-1]:], skip_special_tokens=True))

For multi-turn conversations, append each generated reply to messages with the assistant role. This ensures that each subsequent prompt includes the complete conversation history:

messages = []

for user_message in ["Who are you?", "Why are open-source on-device language models great?"]:
    messages.append({"role": "user", "content": user_message})
    input_ids = tokenizer.apply_chat_template(
        messages, add_generation_prompt=True, return_tensors="pt"
    ).to(model.device)
    outputs = model.generate(
        input_ids,
        attention_mask=torch.ones_like(input_ids),
        max_new_tokens=1024,
        do_sample=False,
        temperature=None,
        top_p=None,
        pad_token_id=tokenizer.eos_token_id,
    )
    reply = tokenizer.decode(outputs[0][input_ids.shape[-1]:], skip_special_tokens=True).strip()
    messages.append({"role": "assistant", "content": reply})
    print(reply)

Citation

@article{chen2026mobilemoe,
  title={MobileMoE: Scaling On-Device Mixture of Experts},
  author={Chen, Yanbei and Huang, Hanxian and Chang, Ernie and Szwejbka, Jacob and Desai, Digant and Liu, Zechun and Chandra, Vikas and Krishnamoorthi, Raghuraman},
  journal={arXiv preprint arXiv:2605.27358},
  year={2026}
}

License

MobileMoE is distributed under the FAIR Noncommercial Research License.

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

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

GPU в ailist

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

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

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

Класс архитектуры
MobileMoEForCausalLM
Ревизия весов
42878d3

0 моделей