Open LLMs/microsoft

Open-Weight LLM · Private & Custom AI

Phi-3.5-MoE-instruct

A 41B-parameter mixture-of-experts model engineered for resource-constrained private deployments that need strong reasoning, code, and multilingual capability without the footprint of a dense 70B+ system.

Phi-3.5-MoE is Microsoft's latest open-weight instruction-tuned model combining synthetic high-quality data, supervised fine-tuning, and preference optimization. It activates only ~6.6B parameters at inference despite 41B total, making it viable for on-premises and edge deployments while maintaining competitive reasoning and math performance. For ops teams, it's a self-hostable foundation that runs latency-sensitive workflows—document processing, knowledge QA, code assist—without external API calls or data egress.

41.9B
Parameters
mit
License (OSI/permissive)
Unknown
Context
169.7k
Downloads

Model facts

Developermicrosoft
Parameters41.9B
Context windowUnknown
Licensemit — OSI/permissive
Tasktext-generation
GatedNo
Downloads169.7k
Likes574
Updated2025-12-10
Sourcemicrosoft/Phi-3.5-MoE-instruct

Private deployment

Run Phi-3.5-MoE-instruct in your own environment

Self-hosting requires transformers ≥4.46.0, torch 2.3.1+, flash_attn 2.5.8, and accelerate. A single GPU with 24–48GB VRAM (depending on quantization) handles inference comfortably; deployment via HuggingFace Inference Server, vLLM, or TGI simplifies integration. Private deployment means all customer documents, queries, and reasoning stay in your infrastructure—critical for regulated industries (finance, healthcare) and organizations with data residency mandates. You control model updates, fine-tuning data, and inference logs.

Operational AI use cases

01

Internal Support & Knowledge QA Agent

Route employee and partner questions to a private instance running Phi-3.5-MoE with RAG over your internal wiki, runbooks, and FAQ. Strong multilingual and reasoning benchmarks (78.9 MMLU, 79.1 BBH CoT) mean fewer hallucinated answers; MoE efficiency keeps per-token cost and latency low. Self-hosted = compliance-friendly for GDPR/SOC2 audits.

02

Code & SQL Generation for Ops Automation

Use Phi-3.5-MoE to generate and validate infrastructure-as-code snippets, SQL queries, and process automation scripts from natural-language requests. 70.7 HumanEval, 80.8 MBPP performance rivals much larger models; on-premises execution eliminates API rate limits and secures proprietary schema/logic. Fine-tune on internal coding standards and patterns.

03

Multilingual Document Triage & Extraction

Process incoming contracts, invoices, and compliance reports across 10+ languages with Phi-3.5-MoE's 69.9 multilingual MMLU score. Extract entities, classify by risk/department, and summarize without sending sensitive docs to third-party APIs. 128K context window handles long PDFs; private inference keeps financial and legal data in-house.

Custom AI

As a base for custom AI

Strong foundation for domain-specific custom AI products. The model's code (HumanEval 70.7), math (GSM8K 88.7), and reasoning (BBH CoT 79.1) enable building vertical solutions—a technical support chatbot for SaaS, a legal-doc analyzer, an internal automation copilot. MIT license permits commercial redistribution. MoE architecture and official transformer support (4.46.0+) simplify fine-tuning on proprietary data. Lightweight inference footprint lets you ship as a private agent or embed in workflows without scaling costs.

In the operating system

Where it fits

Acts as the **reasoning & generation layer** in an LLM.co-style ops AI system. Sits above your document/knowledge connectors (RAG indexing layer) and below orchestration (agent/workflow layer). Phi-3.5-MoE routes structured queries from document processors or form data, generates answers/code/actions, and logs all reasoning on-premises. Its long context (128K) bridges retrieval and decision-making without requiring expensive larger models or cloud APIs.

Data control & security

Self-hosting architecture ensures customer data—employee queries, internal docs, operational logs—never leaves your network. No telemetry, no model training on your inputs, no third-party inference. You own the model weights and can audit, version, and update privately. Important: self-hosting does not automatically confer compliance (HIPAA, PCI-DSS); you remain responsible for encryption, access controls, and audit trails. Phi-3.5-MoE's safety training (DPO, PPO) reduces—but does not eliminate—risks of harmful outputs; test against your use case.

Hardware footprint

**Estimate (unquantized, FP16):** ~80–100 GB VRAM for full model in-memory (41B params × 2 bytes + KV cache overhead). **In practice, inference is cheaper:** active parameters are ~6.6B; batch inference on a single 48GB GPU (e.g., A6000, RTX 6000) is feasible with careful paging. **Quantized (int8):** ~40–50 GB. **Mobile/edge (int4):** ~20–25 GB. Hardware depends on throughput SLA; test your workload.

Integration

Load via transformers (AutoModelForCausalLM, AutoTokenizer) or deploy on vLLM/TGI for high-throughput inference. Chat format templates (`<|system|>`, `<|user|>`, `<|assistant|>`) are built-in. Integrate with your ops stack via REST API (inference server) or direct Python calls in workers/scripts. Tokenizer vocab is 32,064; placeholder tokens support downstream fine-tuning without re-tokenizing. Quantization (int4, int8) reduces VRAM by 50–75% with minimal quality loss—useful for edge/multi-tenant deployments.

When it's not the right fit

  • Factual knowledge base is required without RAG: 41B total parameters (6.6B active) is smaller than dense 70B+ models; limited capacity for memorizing domain facts. Augment with retrieval or fine-tune on domain corpora.
  • Extreme latency sensitivity on CPU-only: MoE routers add overhead; GPU/accelerator recommended for sub-100ms targets.
  • Multi-lingual code-switching is critical: multilingual MMLU is strong (69.9) but not evaluated on rapid language-switching in single prompts; test empirically.
  • Long-context retrieval tasks at scale: 128K window is solid, but benchmarks show mixed results (Qasper 40.0, SQuALITY 24.1); still inferior to models explicitly trained on long-context reasoning.

Alternatives to consider

Mistral Nemo 12B

Denser 12B model, lower MoE overhead, simpler deployment. Slightly weaker on math (84.2 GSM8K vs 88.7) and reasoning (BBH 60.2 vs 79.1), but still competitive on general tasks. Good if you want a simpler single-expert baseline.

Llama 3.1 8B

Pure dense 8B, Llama 2 license (permissive). Lower reasoning (MMLU 68.1 vs 78.9) and weaker code (HumanEval 66.5 vs 70.7), but excellent ecosystem and LoRA fine-tuning tooling. Pick if you need maximum community support and minimal inference overhead.

Gemma 2 9B

Google's 9B dense model, permissive license. Better on some benchmarks (Arena Hard 42.0 vs 37.9), weaker on math and code. Good generalist if you prioritize broad NLU over reasoning.

FAQ

Can I run Phi-3.5-MoE entirely on-premises without cloud APIs?

Yes. Deploy with vLLM, TGI, or Ollama on your own GPU cluster or on-prem data center. Weights are fully open (MIT license). All inference, fine-tuning, and logs stay private. You manage infra, scaling, and security.

Is Phi-3.5-MoE licensed for commercial products?

Yes, MIT license permits commercial use, redistribution, and modification. You can build and sell applications using this model. No royalties or restrictions on scale.

How do I fine-tune Phi-3.5-MoE on proprietary data?

Use transformers' Trainer API or parameter-efficient methods (LoRA, QLoRA) on a private GPU. The model card notes 32K placeholder tokens; you can extend fine-tuning without re-tokenizing. Keep fine-tuned weights and training data private.

Will Phi-3.5-MoE hallucinate facts in customer-facing apps?

All LLMs hallucinate. Phi-3.5-MoE's 41B params limit factual storage. Mitigate via RAG (retrieve documents before generation), test on your domain, and use chain-of-thought prompts. Benchmark on real use cases before shipping.

Build Your Private Operations AI

Phi-3.5-MoE is designed for teams ready to own their AI stack. LLM.co helps you integrate it into workflows—RAG pipelines, agent orchestration, fine-tuning on proprietary data. Start a private deployment that keeps your data, your rules, your control.