Phi 3 Medium 128K Instruct by microsoft

 »  All LLMs  »  microsoft  »  Phi 3 Medium 128K Instruct   URL Share it on

Phi 3 Medium 128K Instruct is an open-source language model by microsoft. Features: 14b LLM, VRAM: 28GB, Context: 128K, License: mit, Instruction-Based, HF Score: 73, LLM Explorer Score: 0.28, Arc: 66.5, HellaSwag: 84.9, MMLU: 76.8, TruthfulQA: 54.6, WinoGrande: 74.7, GSM8K: 80.5.

  Code   Conversational   Custom code   Endpoints compatible   Instruct   Multilingual   Phi3   Region:us   Safetensors   Sharded   Tensorflow

Phi 3 Medium 128K Instruct Benchmarks

Phi 3 Medium 128K Instruct Parameters and Internals

Model Type 
text-generation, code
Use Cases 
Areas:
Commercial, Research
Applications:
Language and multimodal models, Generative AI
Primary Use Cases:
Memory/compute constrained environments for general AI system, Latency bound scenarios requiring strong reasoning, Research acceleration
Limitations:
Not evaluated for all downstream purposes, High risk scenarios may require debiasing techniques
Considerations:
Evaluate and mitigate accuracy, safety, and fairness before use in specific downstream scenarios.
Supported Languages 
English (primary)
Training Details 
Data Sources:
Publicly available documents, Newly created synthetic text data, High quality chat format supervised data
Data Volume:
4.8 trillion tokens
Methodology:
Supervised fine-tuning (SFT) and Direct Preference Optimization (DPO)
Context Length:
128000
Training Time:
42 days
Hardware Used:
512 H100-80G GPUs
Model Architecture:
Dense decoder-only Transformer
Responsible Ai Considerations 
Fairness:
Trained primarily on English text, under-representation of some English language varieties is possible.
Transparency:
Models may generate inappropriate or offensive content; transparent communication with users recommended.
Accountability:
Developers should adhere to applicable laws and verify outputs before use in high-risk scenarios.
Mitigation Strategies:
Built-in safety classifiers and custom solutions for high-risk contexts.
Input Output 
Input Format:
Chat format prompts
Accepted Modalities:
Text
Output Format:
Generated text
Performance Tips:
Add a BOS token (`~~`) at the start of the conversation for reliable results.
Release Notes 
Version:
May 21, 2024
Date:
2024-05-21
Notes:
Phi-3-Medium-128K-Instruct model released with 14B parameters and advanced capabilities.
LLM NamePhi 3 Medium 128K Instruct
Repository 🤗https://huggingface.co/microsoft/Phi-3-medium-128k-instruct 
Model Size14b
Required VRAM28 GB
Updated2026-04-16
Maintainermicrosoft
Model Typephi3
Instruction-BasedYes
Model Files  4.9 GB: 1-of-6   5.0 GB: 2-of-6   4.9 GB: 3-of-6   4.8 GB: 4-of-6   4.8 GB: 5-of-6   3.6 GB: 6-of-6
Model ArchitecturePhi3ForCausalLM
Licensemit
Context Length131072
Model Max Length131072
Transformers Version4.39.3
Tokenizer ClassLlamaTokenizer
Padding Token<|endoftext|>
Vocabulary Size32064
Torch Data Typebfloat16

Quantized Models of the Phi 3 Medium 128K Instruct

Model
Likes
Downloads
VRAM
...hi 3 Medium 128K Instruct GGUF21175 GB
...hi 3 Medium 128K Instruct GGUF0755 GB

Best Alternatives to Phi 3 Medium 128K Instruct

Best Alternatives
Context / RAM
Downloads
Likes
Phi 4 Mini Instruct128K / 7.7 GB637798706
Phi 3 Mini 128K Instruct128K / 7.7 GB2523721699
Phi 4 Mini Instruct ONNX GQA128K /  GB365
Phi 3.5 Mini Instruct Onnx Web128K /  GB61215
Phi 3.5 Mini Instruct Onnx128K /  GB10837
Phi 3 Mini 128K Instruct Onnx128K /  GB97192
...i 3 Mini 128K Instruct Ov Int4128K / 2 GB50
...Medium 128K Instruct Onnx Cuda128K /  GB2723
... Medium 128K Instruct Onnx Cpu128K /  GB3913
...3 Mini 128K Instruct Asym Int4128K / 2.5 GB1220
Note: green Score (e.g. "73.2") means that the model is better than microsoft/Phi-3-medium-128k-instruct.

Rank the Phi 3 Medium 128K Instruct Capabilities

🆘 Have you tried this model? Rate its performance. This feedback would greatly assist ML community in identifying the most suitable model for their needs. Your contribution really does make a difference! 🌟

Instruction Following and Task Automation  
Factuality and Completeness of Knowledge  
Censorship and Alignment  
Data Analysis and Insight Generation  
Text Generation  
Text Summarization and Feature Extraction  
Code Generation  
Multi-Language Support and Translation  

What open-source LLMs or SLMs are you in search of? 53185 in total.

Our Social Media →  
Original data from HuggingFace, OpenCompass and various public git repos.
Check out Ag3ntum — our secure, self-hosted AI agent for server management.
Release v20260328a