AI SeedbankHelp preserve open and free AI for humanity's future

← All models

microsoft_Phi-tiny-MoE-instruct

microsoft · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


language:

  • en license: mit pipeline_tag: text-generation context_length:
  • 4k library_name: transformers

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:

<|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-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. param MMLU MMLU pro BBH Arc-C (chat) Human-eval GSM8K MT-bench
MoE Models
Phi 3.5-MoE 42B 6.6B 78.36 59.38 63.93 91.38 81.70 87.87 8.34
Qwen 1.5 MoE 14B 2.7B 60.73 26.49 42.65 67.24 46.30 53.07 6.55
DeepSeek V2 Lite 16B 2.4B 56.69 17.89 36.30 61.09 54.40 63.23 6.82
OL-MoE 7B 1.3B 54.27 20.87 38.00 55.63 37.80 71.49 6.60
Granite 3.0 MoE 3.4B 0.8B 50.06 4.82 39.65 56.06 51.80 60.12 6.91
Dense Models
LLaMA 3.1 8B 8B 8B 68.71 45.28 50.86 82.42 69.50 84.84 8.03
Qwen 2.5 7B 7.6B 7.6B 73.47 56.24 53.74 88.82 81.70 84.84 8.34
Phi 3 small 7.4B 7.4B 75.35 52.06 62.07 84.30 70.10 84.84 8.03
Gemma 3 4B 4B 4B 59.49 40.13 49.45 75.85 67.10 78.92 8.28
Phi 3 mini 3.8B 3.8B 69.94 45.65 54.94 85.58 72.60 84.61 7.46
LLaMA 3.2 3B 3.2B 3.2B 61.73 36.70 45.46 75.77 52.40 77.41 7.46
Qwen 2.5 3B 3B 3B 65.06 41.00 46.61 80.20 73.80 76.57 7.60
Gemma 3 1B 1B 1B 40.80 14.70 34.80 37.46 41.50 41.77 6.67
LLaMA 3.2 1B 1B 1B 46.30 18.67 35.18 49.91 35.40 44.96 5.23
Our (SlimMoE) Models
Phi-mini-MoE 7.6B 2.4B 70.68 49.68 55.27 84.91 73.80 84.89 7.59
Phi-tiny-MoE 3.8B 1.1B 60.83 36.34 45.58 76.37 58.50 78.47 7.05

Training

Model

Architecture: Phi-tiny-MoE has 3.8 total parameters with 1.1B 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-tiny-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

  • PyTorch
  • Transformers
  • Flash-Attention

Hardware

Note that by default, the Phi-tiny-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-tiny-MoE-instruct/blob/main/data_summary_card.md

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:5fa6a667cd9fb6386760a605ab2789694784fdce&dn=microsoft_Phi-tiny-MoE-instruct

Open magnet in torrent client · infohash 5fa6a667cd9fb6386760a605ab2789694784fdce

Files & hashes

PathSizesha1sha256
CODE_OF_CONDUCT.md444 B (444 B)f9ba8cf65f3e3104dd061c178066ec8247811f339daeae709a0bd71bcfd1c96dc5822ecec5210327eff929da64b0ae7f8faf1444
LICENSE1.1 KB (1,105 B)700edcc5f42c4816520bc554926ad7e0d9e613d7c49419617a6070bcb197cfe272f7007fdec3e790dbb529cb995473bd69c0bd51
NOTICE.md1.7 KB (1,772 B)ee58e836b8cb628406447bae6b6b75a0fa5531436ac541192c253d21cd16a597ce69c515868e031db3f32f75d996b993b5aca216
README.md12.9 KB (13,174 B)704dcd9e333dcd9d2fb5ebd89a87af22da8f55dc27832c445de98d51b2de2fb54616ca50053640ea3a8141ad21a500267fd7a3f3
SECURITY.md2.6 KB (2,656 B)b3c89efc852e22f71eabf5dfbc6ac62493425eb67b6976eec43edfa68b79a459dd089c56b7a395916dbf1a01bd11e6d86e12128f
added_tokens.json315 B (315 B)f818a19807fe0c9c4cda11b60a04c5118c7260fd84addd9b7448d7b7f5320d3ed40274ba90c58340ffe183a5d13ce5293cbd1f82
config.json1.0 KB (1,069 B)d1559c13752758fd3eb7d764a2f70b6a08cdd550cdc9b948bf96ecbd2facb5540bc113621a74baf67e8e02fd50121fcc6db32354
configuration_slimmoe.py12.0 KB (12,279 B)21c08301657cff7cc73c064b5394d072deb4057531e4b0096a467ae6a50948e7a54cc28030148e4872cc37c8d2279238c71094f1
data_summary_card.md4.2 KB (4,348 B)75645b76a1200ef7cb0bfe05f79f74381a0a5612dcc9cad772ef4e56bee0035536df7297afa1277d8d48d5c96575eea956b58ba0
generation_config.json177 B (177 B)ab0f0ffe13d2ad4b717194befaceca6a706e92f6689a3630f4b3ba9bed78cde16c7f5fdbbbbd562efd85da06bf3f72f7db4a97d2
model-00001-of-00002.safetensors4.66 GB (4,998,945,744 B)60d41b283d39e669064d01f9563fe93187e5e23bdcb4621a07a01e28cc2161d6a2a5ce3a15f343057722da2169e2c6907bfdb2ae
model-00002-of-00002.safetensors2.34 GB (2,511,742,008 B)25fe4c190f696eec365f1017ab3d5185d4f59ccf1bc35ff74f5dfc65ed0cb968ba4c707ffcdc30c84d799ff4dfe2e9525a38f12c
model.safetensors.index.json178.3 KB (182,552 B)524307a328eab3eb60e261f33f485d5cf810bf015c1854eba7eeed34a62f0113fc9545627b781e9cf58491487dd90606a1129644
modeling_slimmoe.py78.7 KB (80,615 B)e43dbc48b515c4ae6d119eb343d75d6c0556811d9ab50e875106cbf6544db2a231727bfe0fdb897776c0875179573e03077c0c02
sample_finetune.py4.8 KB (4,936 B)d98ed37247c97f4a31ce793cc6e9cfc516a69cc4684314343e336315526468e6d4dcec1e2354ebf6f13ce6c799f7707b9a1861c6
special_tokens_map.json569 B (569 B)50b4d340a6844ec4ac9e7c9b194cdd75b108aca1474d699677e264edd3851559548cbbb61801ad8da6b249c81455007602313c34
tokenizer.json1.8 MB (1,844,436 B)2f4cf1e18cb543d31aedc307a6b5968a201569bcd0f067e1e15cd0a36ebef3668024882cb67a80b86fb4b7b4b128481f0d474db7
tokenizer_config.json3.0 KB (3,103 B)ec8c1f281f077e584c2742015a4515fb8ff66056f1dd849855d10277cec0457162688f71e5c9230a7b69370ae66f804755f5e90f

Cite this release

Canonical URL
https://aiseedbank.org/models/microsoft_Phi-tiny-MoE-instruct/
Slug
microsoft_Phi-tiny-MoE-instruct
Infohash
5fa6a667cd9fb6386760a605ab2789694784fdce
License
mit
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: microsoft_Phi-tiny-MoE-instruct.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorymicrosoft/Phi-tiny-MoE-instruct
Revision (pinned)2fe50e88d0e2a5a132563815686ea0dcc8e252b5
Fetched at2026-09-04T02:25:55Z
License at fetchmit
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T02:27:04Z

mit7.00 GB (7,512,841,302 bytes)transformerssafetensorsphimoetext-generationconversationalcustom_code1 language (en)paper: 2506.18349paper: 2404.14219paper: 2409.12136