Model reference · open weights
Phi-3.5-MoE is an open-weight language model from microsoft. Phi-3.5-MoE-instruct (BF16) weighs 83.7 GB; the smallest configuration that runs it is 4× RTX 4090 24 GB.
Summary of the microsoft/Phi-3.5-MoE-instruct model card, 2026-10-01
What it is
| Released by | microsoft |
|---|---|
| Released | 2024-08-17 |
| Parameters | 41.9B |
| VRAM | 83.7 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … H100 80 GB 8 smaller cards | — | — | — | |
| RTX PRO 6000 Blackwell 96 GB | 6 | 1 | 49K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 18 | 4 | all 128K | 107 GB |
| H200 141 GB | 47 | 11 | all 128K | 138 GB |
| B200 180 GB | 82 | 20 | all 128K | 176 GB |
| 4× RTX 4090 24 GB tensor parallel | 6 | 1 | 54K | 23.4 GB a card |
| 4× RTX 3090 24 GB tensor parallel | 7 | 1 | 56K | 23.4 GB a card |
| 4× RTX 5090 32 GB tensor parallel | 35 | 8 | all 128K | 31.0 GB a card |
| 2× H100 80 GB tensor parallel | 61 | 15 | all 128K | 78.1 GB a card |
| 2× A100 80 GB tensor parallel | 66 | 16 | all 128K | 78.2 GB a card |
| 4× L40S 48 GB tensor parallel | 83 | 20 | all 128K | 44.0 GB a card |
| 2× RTX PRO 6000 Blackwell 96 GB tensor parallel | 90 | 22 | all 128K | 93.8 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 85.4 GB | 88.6 GB |
| 5 | 89.7 GB | 106 GB |
| 8 | 92.9 GB | 119 GB |
| 16 | 102 GB | 153 GB |
| 32 | 119 GB | 222 GB |
| 64 | 153 GB | 359 GB |
One card, with vLLM's small-card settings.
From the model card
Phi-3.5-MoE is a lightweight, state-of-the-art open model built upon datasets used for Phi-3 - synthetic data and filtered publicly available documents - with a focus on very high-quality, reasoning dense data. The model supports multilingual and comes with 128K context length (in tokens). The model underwent a rigorous enhancement process, incorporating supervised fine-tuning, proximal policy optimization, and direct preference optimization to ensure precise instruction adherence and robust safety measures.
🏡 Phi-3 Portal 📰 Phi-3 Microsoft Blog 📖 Phi-3 Technical Report 👩🍳 Phi-3 Cookbook 🖥️ Try It
MoE references: 📜Phi-3.5-MoE Blog | 😁GRIN MoE
Phi-3.5: [mini-instruct]; [MoE-instruct] ; [vision-instruct]
The model is intended for commercial and research use in multiple languages. The model provides uses for general purpose AI systems and applications which require:
Our model is designed to accelerate research on language and multimodal models, for use as a building block for generative AI powered features.
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.
Phi-3.5-MoE-instruct is integrated in the official version of transformers starting from 4.46.0.
The current transformers version can be verified with: pip list | grep transformers.
Examples of required packages:
flash_attn==2.5.8
torch==2.3.1
accelerate==0.31.0
transformers==4.46.0
Phi-3.5-MoE-instruct is also available in Azure AI Studio
Phi-3.5-MoE-Instruct supports a vocabulary size of up to 32064 tokens. The tokenizer files already provide placeholder tokens that can be used for downstream fine-tuning, but they can also be extended up to the model's vocabulary size.
Given the nature of the training data, the Phi-3.5-MoE-instruct 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?
After obtaining the Phi-3.5-MoE-instruct 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-3.5-MoE-instruct",
device_map="cuda",
torch_dtype="auto",
trust_remote_code=False,
)
tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3.5-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'])
To understand the capabilities, we compare Phi-3.5-MoE with a set of models over a variety of benchmarks using our internal benchmark platform. At the high-level overview of the model quality on representative benchmarks:
| Category | Benchmark | Phi-3.5-MoE-instruct | Mistral-Nemo-12B-instruct-2407 | Llama-3.1-8B-instruct | Gemma-2-9b-It | Gemini-1.5-Flash | GPT-4o-mini-2024-07-18 (Chat) |
|---|---|---|---|---|---|---|---|
| Popular aggregated benchmark | Arena Hard | 37.9 | 39.4 | 25.7 | 42.0 | 55.2 | 75.0 |
| BigBench Hard CoT (0-shot) | 79.1 | 60.2 | 63.4 | 63.5 | 66.7 | 80.4 | |
| MMLU (5-shot) | 78.9 | 67.2 | 68.1 | 71.3 | 78.7 | 77.2 | |
| MMLU-Pro (0-shot, CoT) | 54.3 | 40.7 | 44.0 | 50.1 | 57.2 | 62.8 | |
| Reasoning | ARC Challenge (10-shot) | 91.0 | 84.8 | 83.1 | 89.8 | 92.8 | 93.5 |
| BoolQ (2-shot) | 84.6 | 82.5 | 82.8 | 85.7 | 85.8 | 88.7 | |
| GPQA (0-shot, CoT) | 36.8 | 28.6 | 26.3 | 29.2 | 37.5 | 41.1 | |
| HellaSwag (5-shot) | 83.8 | 76.7 | 73.5 | 80.9 | 67.5 | 87.1 | |
| OpenBookQA (10-shot) | 89.6 | 84.4 | 84.8 | 89.6 | 89.0 | 90.0 | |
| PIQA (5-shot) | 88.6 | 83.5 | 81.2 | 83.7 | 87.5 | 88.7 | |
| Social IQA (5-shot) |
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.