Model reference · open weights

Phi-tiny-MoE

LLMs microsoft Text gen · MoE 1 build Open weights 294k dl/mo

Phi-tiny-MoE is an open-weight language model from microsoft. Phi-tiny-MoE-instruct (BF16) weighs 7.5 GB; the smallest configuration that runs it is RTX 3060 12 GB.

  • Phi-tiny-MoE is a lightweight Mixture of Experts model developed by Microsoft for text generation in memory and compute constrained environments.
  • It features 3.8B total parameters with 1.1B activated parameters and supports a context length of 4k tokens.
  • The model is trained primarily on English data and is released under the MIT license.

Summary of the microsoft/Phi-tiny-MoE-instruct model card, 2026-10-01

What it is

Released bymicrosoft
Released2025-06-23
Parameters3.8B
VRAM7.5 GB for the weights

What it runs on

Memory and cards for Phi-tiny-MoE-instruct (BF16)

7.5 GBweights, file size
66 MBcache per 1K tokens
533 MBruntime overhead, at least
4,096 tokenscontext max
CardRequests at onceContext maxMemory
4K each
RTX 3060 12 GB13all 4K11.6 GB
RTX 4060 Ti 16 GB27all 4K15.4 GB
RTX 3090 24 GB57all 4K23.4 GB
RTX 4090 24 GB57all 4K23.4 GB
RTX 5090 32 GB85all 4K31.0 GB
L40S 48 GB133all 4K44.0 GB
A100 80 GB261all 4K78.2 GB
H100 80 GB250all 4K78.1 GB
RTX PRO 6000 Blackwell 96 GB309all 4K93.8 GB
DGX Spark (GB10) 128 GB unified359all 4K107 GB
H200 141 GB473all 4K138 GB
B200 180 GB615all 4K176 GB
Memory needed at each load
Requests at once4K tokens each
18.3 GB
59.4 GB
810.2 GB
1612.3 GB
3216.6 GB
6425.2 GB

One card, with vLLM's small-card settings.

From the model card

What microsoft says about Phi-tiny-MoE

Read the model card

Model Summary

Phi-tiny-MoE is a lightweight Mixture of Experts (MoE) model with 3.8B total parameters and 1.1B activated parameters. It is compressed and distilled from the base model shared by Phi-3.5-MoE and GRIN-MoE using the SlimMoE approach, then post-trained via supervised fine-tuning and direct preference optimization for instruction following and safety. The model is trained on Phi-3 synthetic data and filtered public documents, with a focus on high-quality, reasoning-dense content. It is part of the SlimMoE series, which includes a larger variant, Phi-mini-MoE, with 7.6B total and 2.4B activated parameters.

References: 📖 SlimMoE Paper 📖 Phi-3 Technical Report 📖 GRIN-MoE

Intended Uses

Primary Use Cases

The model is intended for commercial and research use in English. The model provides uses for general purpose AI systems and applications which require memory/compute constrained environments and latency bound scenarios.

Use Case Considerations

Our models are not specifically designed or evaluated for all downstream purposes. Developers should consider common limitations of language models as they select use cases, and evaluate and mitigate for accuracy, safety, and fariness before using within a specific downstream use case, particularly for high risk scenarios. Developers should be aware of and adhere to applicable laws or regulations (including privacy, trade compliance laws, etc.) that are relevant to their use case.

Nothing contained in this Model Card should be interpreted as or deemed a restriction or modification to the license the model is released under.

Usage

Input Formats

Given the nature of the training data, the Phi-tiny-MoE model is best suited for prompts using the chat format as follows:

You are a helpful assistant.
How to explain Internet for a medieval knight?

Loading the model locally

After obtaining the Phi-tiny-MoE model checkpoints, users can use this sample code for inference.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline

torch.random.manual_seed(0)

model = AutoModelForCausalLM.from_pretrained(
    "microsoft/Phi-tiny-MoE-instruct",
    device_map="cuda",
    torch_dtype="auto",
    trust_remote_code=True,
)

tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-tiny-MoE-instruct")

messages = [
    {"role": "system", "content": "You are a helpful AI assistant."},
    {"role": "user", "content": "Can you provide ways to eat combinations of bananas and dragonfruits?"},
    {"role": "assistant", "content": "Sure! Here are some ways to eat bananas and dragonfruits together: 1. Banana and dragonfruit smoothie: Blend bananas and dragonfruits together with some milk and honey. 2. Banana and dragonfruit salad: Mix sliced bananas and dragonfruits together with some lemon juice and honey."},
    {"role": "user", "content": "What about solving an 2x + 3 = 7 equation?"},
]

pipe = pipeline(
    "text-generation",
    model=model,
    tokenizer=tokenizer,
)

generation_args = {
    "max_new_tokens": 500,
    "return_full_text": False,
    "temperature": 0.0,
    "do_sample": False,
}

output = pipe(messages, **generation_args)
print(output[0]['generated_text'])

Benchmarks

To understand the capabilities, we compare Phi-tiny-MoE with a set of models over a variety of benchmarks using lm-evaluation-harness. Detailed evaluation settings can be found in the SlimMoE paper.

Model# Total param# Act. paramMMLUMMLU proBBHArc-C (chat)Human-evalGSM8KMT-bench
MoE Models
Phi 3.5-MoE42B6.6B78.3659.3863.9391.3881.7087.878.34
Qwen 1.5 MoE14B2.7B60.7326.4942.6567.2446.3053.076.55
DeepSeek V2 Lite16B2.4B56.6917.8936.3061.0954.4063.236.82
OL-MoE7B1.3B54.2720.8738.0055.6337.8071.496.60
Granite 3.0 MoE3.4B0.8B50.064.8239.6556.0651.8060.126.91
Dense Models
LLaMA 3.1 8B8B8B68.7145.2850.8682.4269.5084.848.03
Qwen 2.5 7B7.6B7.6B73.4756.2453.7488.8281.7084.848.34
Phi 3 small7.4B7.4B75.3552.0662.0784.3070.1084.848.03
Gemma 3 4B4B4B59.4940.1349.4575.8567.1078.928.28
Phi 3 mini3.8B3.8B69.9445.6554.9485.5872.6084.617.46
LLaMA 3.2 3B3.2B3.2B61.7336.7045.4675.7752.4077.417.46
Qwen 2.5 3B3B3B65.0641.0046.6180.2073.8076.577.60
Gemma 3 1B1B1B40.8014.7034.8037.4641.5041.776.67
LLaMA 3.2 1B1B1B46.3018.6735.1849.9135.4044.965

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms