alt.freeweights.phi / Phi-mini-MoE-instruct
From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.phiSubject:

Phi-mini-MoE-instruct

Date: 2026-11-15Commit: f620b32Signed: 2DC28CC7B26A283B ✓

Text generation model with 7.6B parameters. Safetensors weights, 15.3 GB in all. Published by microsoft under MIT.

7.6B params15.3GBPhi-mini-MoE-instructsafetensorspermissive
FactsParams7.6BSize15.3 GBFormatssafetensorsTasktext generationLicenseMITFrom sourcepermissive
$ fw get microsoft/Phi-mini-MoE-instruct
# manifest sha256 87fdaecfc481… · 15.3 GB · 21 files
$ fw verify ./Phi-mini-MoE-instruct microsoft/Phi-mini-MoE-instruct
From sourceHosted (signed)microsoft/Phi-mini-MoE-instructLast check: 2026-11-15 03:22 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
15.3 GB
Weights
15.3 GB (safetensors)
Parameters
7.6B
Formats
safetensors
Task
text generation
License
MIT (permissive)
Files
21, each with a sha256
Publisher
microsoft
Added
2026-11-15
Section
alt.freeweights.phi
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:22 UTCpassed

Model card

From the publisher at commit f620b32. Shown as plain text with links; images open at the publisher.

Model Summary#

Phi-mini-MoE is a lightweight Mixture of Experts (MoE) model with 7.6B total parameters and 2.4B 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 smaller variant, Phi-tiny-MoE, with 3.8B total and 1.1B activated parameters.

References:

📖 SlimMoE

📖 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-mini-MoE model is best suited for prompts using the chat format as follows:

<|system|>
You are a helpful assistant.<|end|>
<|user|>
How to explain Internet for a medieval knight?<|end|>
<|assistant|>
Loading the model locally#

After obtaining the Phi-mini-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-mini-MoE-instruct",  
    device_map="cuda",  
    torch_dtype="auto",  
    trust_remote_code=True,  
) 

tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-mini-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-mini-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.23
SlimMoE Models
Phi-mini-MoE7.6B2.4B70.6849.6855.2784.9173.8084.897.59
Phi-tiny-MoE3.8B1.1B60.8336.3445.5876.3758.5078.477.05

Training#

Model#

Architecture: Phi-mini-MoE has 7.6B total parameters with 2.4B active parameters. The model is a mixture-of-expert decoder-only Transformer model using the tokenizer with vocabulary size of 32,064.

Inputs: Text. It is best suited for prompts using chat format.

Context length: 4k tokens

GPUs: 64 A100-80G

Training time: 11 days

Training data: 400B tokens

Outputs: Generated text in response to the input

Dates: Trained between September 2024 and March 2025

Status: This is a static model trained on an offline dataset with cutoff date October 2023 for publicly available data.

Training Datasets#

Our training data is a subset with 400B tokens of Phi-3 datasets, which includes a wide variety of sources and is a combination of

  1. publicly available documents filtered rigorously for quality, selected high-quality educational data, and code;
  2. newly created synthetic, “textbook-like” data for the purpose of teaching math, coding, common sense reasoning, general knowledge of the world (science, daily activities, theory of mind, etc.);
  3. high quality chat format supervised data covering various topics to reflect human preferences on different aspects such as instruct-following, truthfulness, honesty and helpfulness.

More details about data can be found in the Phi-3 Technical Report.

Responsible AI Considerations#

Like other language models, Phi-mini-MoE can potentially behave in ways that are unfair, unreliable, or offensive. Some of the limiting behaviors to be aware of include:

  • Quality of Service: The models are trained primarily on English text and some additional multilingual text. Languages other than English will experience worse performance as well as performance disparities across non-English. English language varieties with less representation in the training data might experience worse performance than standard American English.
  • Representation of Harms & Perpetuation of Stereotypes: These models can over- or under-represent groups of people, erase representation of some groups, or reinforce demeaning or negative stereotypes. Despite safety post-training, these limitations may still be present due to differing levels of representation of different groups, cultural contexts, or prevalence of examples of negative stereotypes in training data that reflect real-world patterns and societal biases.
  • Inappropriate or Offensive Content: These models may produce other types of inappropriate or offensive content, which may make it inappropriate to deploy for sensitive contexts without additional mitigations that are specific to the use case.
  • Information Reliability: Language models can generate nonsensical content or fabricate content that might sound reasonable but is inaccurate or outdated.
  • Limited Scope for Code: Majority of Phi-3 training data is based in Python and use common packages such as "typing, math, random, collections, datetime, itertools". If the model generates Python scripts that utilize other packages or scripts in other languages, we strongly recommend users manually verify all API uses.
  • The High ECI: The model has an elevated defect rate when responding to election-critical queries, which may result in incorrect or unauthoritative election critical information being presented. Users should verify information related to elections with the election authority in their region.
  • Long Conversation: Phi-3 models, like other models, can in some cases generate responses that are repetitive, unhelpful, or inconsistent in very long chat sessions in both English and non-English languages. Developers are encouraged to place appropriate mitigations, like limiting conversation turns to account for the possible conversational drift

Developers should apply responsible AI best practices, including mapping, measuring, and mitigating risks associated with their specific use case and cultural, linguistic context. Important areas for consideration include:

  • Allocation: Models may not be suitable for scenarios that could have consequential impact on legal status or the allocation of resources or life opportunities (ex: housing, employment, credit, etc.) without further assessments and additional debiasing techniques.
  • High-Risk Scenarios: Developers should assess the suitability of using models in high-risk scenarios where unfair, unreliable or offensive outputs might be extremely costly or lead to harm. This includes providing advice in sensitive or expert domains where accuracy and reliability are critical (ex: legal or health advice). Additional safeguards should be implemented at the application level according to the deployment context.
  • Misinformation: Models may produce inaccurate information. Developers should follow transparency best practices and inform end-users they are interacting with an AI system. At the application level, developers can build feedback mechanisms and pipelines to ground responses in use-case specific, contextual information, a technique known as Retrieval Augmented Generation (RAG).
  • Generation of Harmful Content: Developers should assess outputs for their context and use available safety classifiers or custom solutions appropriate for their use case.
  • Misuse: Other forms of misuse such as fraud, spam, or malware production may be possible, and developers should ensure that their applications do not violate applicable laws and regulations.

Software#

Hardware#

Note that by default, the Phi-mini-MoE model uses flash attention, which requires certain types of GPU hardware to run. We have tested on the following GPU types:

  • NVIDIA A100
  • NVIDIA A6000
  • NVIDIA H100

License#

The model is licensed under the MIT license.

Trademarks#

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.

Data Summary#

https://huggingface.co/microsoft/Phi-mini-MoE-instruct/blob/main/data_summary_card.md

Files

21 files · 15.3 GBWeights 15.3 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 21 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
CODE_OF_CONDUCT.md444 B9daeae709a0bd71bcfd1c96dc5822ecec5210327eff929da64b0ae7f8faf1444
LICENSE1.10 KBc49419617a6070bcb197cfe272f7007fdec3e790dbb529cb995473bd69c0bd51
NOTICE.md1.77 KB6ac541192c253d21cd16a597ce69c515868e031db3f32f75d996b993b5aca216
README.md13.2 KB7dedc738c9ab31c017f973341ee970d9092cfc53f676f0535dda37fd82068688
SECURITY.md2.66 KB7b6976eec43edfa68b79a459dd089c56b7a395916dbf1a01bd11e6d86e12128f
added_tokens.json315 B84addd9b7448d7b7f5320d3ed40274ba90c58340ffe183a5d13ce5293cbd1f82
config.json1.07 KB9594149f9fed36a5f74cace363b38423b39be5983c7146930c5569807cd2c90c
configuration_slimmoe.py12.4 KB60f00c37c7b6a139030284aa0770b696500af3789504c47caccf6ec8a2ba843f
data_summary_card.md4.35 KBdcc9cad772ef4e56bee0035536df7297afa1277d8d48d5c96575eea956b58ba0
generation_config.json177 B689a3630f4b3ba9bed78cde16c7f5fdbbbbd562efd85da06bf3f72f7db4a97d2
model-00001-of-00004.safetensors4.99 GB687038db8ecdb59d4e73cf28ae42d948d8aebdaf3e86210fe42b9e5ea34ac8d7
model-00002-of-00004.safetensors5.00 GB05ab30d97d5e6353e9ca011c9b7ce644c89b496d9ce344ca48a431b484f74e1e
model-00003-of-00004.safetensors5.00 GBc79304dadfedfd6663cbd52cdc56e8159bd7bb2b6ae2302028a8f71bfc04fab9
model-00004-of-00004.safetensors310 MB9488be6ca13cd9a8ba35a2c305ca2e142f592b089e321ce5e0ee5a44d43df113
model.safetensors.index.json183 KB360a12cfe0095bcf9738a121073dd5210ae4ba21fd485ffd6fba4e0452aac345
modeling_slimmoe.py80.6 KB9ab50e875106cbf6544db2a231727bfe0fdb897776c0875179573e03077c0c02
sample_finetune.py4.94 KB0afc98a78ae49cbd125a919b182a0c1e4c10c090773b079f3eeffc5bc2b69975
special_tokens_map.json569 B474d699677e264edd3851559548cbbb61801ad8da6b249c81455007602313c34
tokenizer.json1.84 MBd0f067e1e15cd0a36ebef3668024882cb67a80b86fb4b7b4b128481f0d474db7
tokenizer_config.json3.10 KBf1dd849855d10277cec0457162688f71e5c9230a7b69370ae66f804755f5e90f
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
f620b32c0d pinned now2026-11-15 03:22 UTC21 files · 15.3 GB

Use it

$ fw get microsoft/Phi-mini-MoE-instruct
# manifest sha256 87fdaecfc481… · 15.3 GB · 21 files
$ fw verify ./Phi-mini-MoE-instruct microsoft/Phi-mini-MoE-instruct
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/Phi-mini-MoE-instruct.json --dir ./Phi-mini-MoE-instruct $ python3 fw.py verify ./Phi-mini-MoE-instruct ./microsoft__Phi-mini-MoE-instruct.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/Phi-mini-MoE-instruct --revision f620b32c0d3e8f7e76f57ccdaa88e0df8bc8bfcd --local-dir ./Phi-mini-MoE-instruct
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("microsoft/Phi-mini-MoE-instruct", revision="f620b32c0d3e8f7e76f57ccdaa88e0df8bc8bfcd") model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-mini-MoE-instruct", revision="f620b32c0d3e8f7e76f57ccdaa88e0df8bc8bfcd", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve microsoft/Phi-mini-MoE-instruct --revision f620b32c0d3e8f7e76f57ccdaa88e0df8bc8bfcd

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
LICENSE
Text sha256
c49419617a6070bcb197cfe272f7007fdec3e790dbb529cb995473bd69c0bd51
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.phiSubject: Phi-mini-MoE-instructDate: 2026-11-15Commit: f620b32Signed: 2DC28CC7B26A283B ✓
Upstream
microsoft/Phi-mini-MoE-instruct
Pinned commit
f620b32c0d3e8f7e76f57ccdaa88e0df8bc8bfcd
Manifest
Phi-mini-MoE-instruct.json · .minisig
Manifest sha256
87fdaecfc4817bdb39903abf07ff9e98897a003ce097f839c5bc0d35efdfa865
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:22 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/Phi-mini-MoE-instruct.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/Phi-mini-MoE-instruct.json.minisig $ minisign -Vm Phi-mini-MoE-instruct.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/Phi-mini-MoE-instruct
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Phi-mini-MoE-instruct.json. Provenance. Takedown history: none.
From: BAAI <huggingface.co/BAAI>Subject: bunny-phi-2-siglip-lora
From: microsoft <huggingface.co/microsoft>Subject: MediPhi
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Clinical
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Guidelines
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-Instruct
From: microsoft <huggingface.co/microsoft>Subject: MediPhi-MedCode