facebook / MobileMoE-S-SFT

huggingface.co
Total runs: 251
24-hour runs: 3
7-day runs: 56
30-day runs: 251
Model's Last Updated: August 28 2026
text-generation

Introduction of MobileMoE-S-SFT

Model Details of MobileMoE-S-SFT

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.

S M L
Active / total params 272M / 1.3B 528M / 2.8B 922M / 5.3B
Layers 20 26 32
Model dimension 768 1024 1280
Heads (Q / KV) 12 / 4 16 / 4 20 / 4
Routed experts 60 60 60
Top-k 4 4 4
INT4 weight memory 0.68 GB 1.48 GB 2.75 GB
Base MobileMoE-S-Base MobileMoE-M-Base MobileMoE-L-Base
SFT MobileMoE-S-SFT MobileMoE-M-SFT MobileMoE-L-SFT
QAT (INT4) MobileMoE-S-QAT MobileMoE-M-QAT MobileMoE-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 F inf = 2 N act (GFLOPs) and (b) total parameters N total (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
Capability Benchmark Gemma 3 270M SmolLM2 360M MobileMoE-S
Active / total params 270M 362M 272M / 1.3B
Commonsense Reasoning HellaSwag 39.4 56.9 56.1
PIQA 67.1 71.6 74.8
SIQA 39.6 40.6 43.1
WinoGrande 53.0 57.4 59.6
Knowledge MMLU (5-shot) 26.5 25.9 42.9
NaturalQuestions (5-shot) 2.8 6.4 10.9
TriviaQA (5-shot) 9.1 20.4 30.5
Science ARC-Challenge (25-shot) 27.7 38.8 46.2
ARC-Easy 50.5 49.1 73.6
OpenBookQA 35.0 36.2 32.6
Reading BoolQ 56.1 42.5 72.7
DROP (3-shot) 11.0 15.2 33.1
Reasoning BIG-Bench Hard (3-shot) 31.8 30.5 32.5
GSM8K (8-shot) 5.8 10.0 52.4
Average 32.5 35.8 47.2
Other capabilities
Capability Benchmark Gemma 3 270M SmolLM2 360M MobileMoE-S
Math MATH-500 (4-shot) 7.2 3.8 18.8
GSM-Plus (5-shot) 4.3 4.6 28.9
Avg 5.7 4.2 23.8
Code HumanEval 12.8 0.0 46.3
MBPP (3-shot) 9.8 22.8 27.4
Avg 11.3 11.4 36.9
Instruction Following IFEval 31.2 40.2 59.5
IFBench 11.2 19.1 14.2
Avg 21.2 29.7 36.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-training Mid-training SFT QAT
Context length 2,048 8,192 8,192 8,192
Total tokens ~6T ~500B ~126B ~21B
Peak learning rate 4×10 -4 4×10 -5 4×10 -6 4×10 -6
LR schedule Cosine Linear Cosine Cosine
Token dispatch drop-and-pad drop-and-pad dropless dropless
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:

Package Version
torch 2.8.0 (cu128)
transformers 4.57.6
tokenizers 0.22.2
safetensors 0.7.0
accelerate 1.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 .

Runs of facebook MobileMoE-S-SFT on huggingface.co

251
Total runs
3
24-hour runs
4
3-day runs
56
7-day runs
251
30-day runs

More Information About MobileMoE-S-SFT huggingface.co Model

MobileMoE-S-SFT huggingface.co

MobileMoE-S-SFT huggingface.co is an AI model on huggingface.co that provides MobileMoE-S-SFT's model effect (), which can be used instantly with this facebook MobileMoE-S-SFT model. huggingface.co supports a free trial of the MobileMoE-S-SFT model, and also provides paid use of the MobileMoE-S-SFT. Support call MobileMoE-S-SFT model through api, including Node.js, Python, http.

MobileMoE-S-SFT huggingface.co Url

https://huggingface.co/facebook/MobileMoE-S-SFT

facebook MobileMoE-S-SFT online free

MobileMoE-S-SFT huggingface.co is an online trial and call api platform, which integrates MobileMoE-S-SFT's modeling effects, including api services, and provides a free online trial of MobileMoE-S-SFT, you can try MobileMoE-S-SFT online for free by clicking the link below.

facebook MobileMoE-S-SFT online free url in huggingface.co:

https://huggingface.co/facebook/MobileMoE-S-SFT

MobileMoE-S-SFT install

MobileMoE-S-SFT is an open source model from GitHub that offers a free installation service, and any user can find MobileMoE-S-SFT on GitHub to install. At the same time, huggingface.co provides the effect of MobileMoE-S-SFT install, users can directly use MobileMoE-S-SFT installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

MobileMoE-S-SFT install url in huggingface.co:

https://huggingface.co/facebook/MobileMoE-S-SFT

Url of MobileMoE-S-SFT

MobileMoE-S-SFT huggingface.co Url

Provider of MobileMoE-S-SFT huggingface.co

facebook
ORGANIZATIONS

Other API from facebook

huggingface.co

Total runs: 8.0M
Run Growth: 18.9K
Growth Rate: 0.24%
Updated:January 20 2022
huggingface.co

Total runs: 7.9M
Run Growth: -9.0M
Growth Rate: -113.24%
Updated:September 15 2023
huggingface.co

Total runs: 3.7M
Run Growth: -956.9K
Growth Rate: -25.81%
Updated:September 06 2023
huggingface.co

Total runs: 3.3M
Run Growth: 881.3K
Growth Rate: 27.28%
Updated:January 17 2024
huggingface.co

Total runs: 2.8M
Run Growth: -596.8K
Growth Rate: -21.95%
Updated:December 28 2021
huggingface.co

Total runs: 2.3M
Run Growth: 210.2K
Growth Rate: 9.50%
Updated:March 23 2023
huggingface.co

Total runs: 2.2M
Run Growth: 468.2K
Growth Rate: 20.84%
Updated:January 25 2024
huggingface.co

Total runs: 1.9M
Run Growth: -434.9K
Growth Rate: -23.25%
Updated:November 21 2025
huggingface.co

Total runs: 821.6K
Run Growth: -184.9K
Growth Rate: -25.05%
Updated:September 06 2023
huggingface.co

Total runs: 473.6K
Run Growth: -142.4K
Growth Rate: -29.96%
Updated:May 22 2023
huggingface.co

Total runs: 452.0K
Run Growth: 75.0K
Growth Rate: 16.95%
Updated:February 29 2024
huggingface.co

Total runs: 426.2K
Run Growth: -69.0K
Growth Rate: -16.06%
Updated:March 17 2025
huggingface.co

Total runs: 381.8K
Run Growth: -206.1K
Growth Rate: -53.73%
Updated:January 12 2024
huggingface.co

Total runs: 333.7K
Run Growth: -73.3K
Growth Rate: -22.19%
Updated:January 12 2024
huggingface.co

Total runs: 311.3K
Run Growth: -64.5K
Growth Rate: -20.98%
Updated:September 06 2023
huggingface.co

Total runs: 308.1K
Run Growth: 32.9K
Growth Rate: 10.65%
Updated:September 15 2023
huggingface.co

Total runs: 288.5K
Run Growth: 53.5K
Growth Rate: 19.03%
Updated:June 15 2023
huggingface.co

Total runs: 286.2K
Run Growth: -37.1K
Growth Rate: -13.19%
Updated:November 17 2022
huggingface.co

Total runs: 258.8K
Run Growth: 165.2K
Growth Rate: 63.55%
Updated:May 22 2023
huggingface.co

Total runs: 236.9K
Run Growth: 14.3K
Growth Rate: 6.02%
Updated:July 23 2024
huggingface.co

Total runs: 211.3K
Run Growth: -148.8K
Growth Rate: -70.85%
Updated:July 25 2023
huggingface.co

Total runs: 187.2K
Run Growth: 78.9K
Growth Rate: 42.04%
Updated:February 12 2023
huggingface.co

Total runs: 179.6K
Run Growth: 74.8K
Growth Rate: 42.42%
Updated:September 06 2023
huggingface.co

Total runs: 168.2K
Run Growth: -207.4K
Growth Rate: -122.30%
Updated:November 17 2023
huggingface.co

Total runs: 162.8K
Run Growth: -984
Growth Rate: -0.60%
Updated:September 01 2023
huggingface.co

Total runs: 146.1K
Run Growth: 107.3K
Growth Rate: 72.91%
Updated:November 16 2023
huggingface.co

Total runs: 119.7K
Run Growth: -6.4K
Growth Rate: -5.35%
Updated:June 03 2022
huggingface.co

Total runs: 113.7K
Run Growth: 26.5K
Growth Rate: 24.14%
Updated:November 20 2023
huggingface.co

Total runs: 112.9K
Run Growth: 26.2K
Growth Rate: 23.95%
Updated:January 25 2023
huggingface.co

Total runs: 108.3K
Run Growth: -10.3K
Growth Rate: -9.51%
Updated:September 15 2023
huggingface.co

Total runs: 105.2K
Run Growth: -12.9K
Growth Rate: -12.29%
Updated:June 13 2023
huggingface.co

Total runs: 100.4K
Run Growth: -207.3K
Growth Rate: -206.66%
Updated:June 13 2023
huggingface.co

Total runs: 87.8K
Run Growth: 60.8K
Growth Rate: 70.16%
Updated:February 12 2023
huggingface.co

Total runs: 61.7K
Run Growth: -17.5K
Growth Rate: -28.31%
Updated:March 28 2026
huggingface.co

Total runs: 59.5K
Run Growth: 16.8K
Growth Rate: 28.34%
Updated:January 25 2023
huggingface.co

Total runs: 48.5K
Run Growth: -19.8K
Growth Rate: -39.48%
Updated:January 29 2026