phi-2
Support summary
phi-2 is a checkpoint published by Microsoft, built on the PhiForCausalLM architecture. vLLM 0.28.0, the newest indexed vLLM release, documents support.
vLLM documents support in 20 of 20 indexed releases, from 0.17.0 to 0.28.0.
- Configured context
- 2,048 tokens
- License
- mit
Hugging Face model card
- Publisher
- Microsoft
- Task
- text generation
- License
- mit
- Library
- transformers
- Architecture
- PhiForCausalLM
- Weight tensor elements
- 2.8B
- Tensor types
- F16
- Configured context
- 2,048 tokens
- Languages
- en
- Weight access
- Public
- Repository created
- 2023-12-13
Model notes and sources
- vLLM v0.28.0 · docs/models/supported_models.md · 20 indexed revisions, v0.17.0 to v0.28.0
- microsoft/phi-2 · publisher model card
- microsoft/phi-2 · Hugging Face metadata
- microsoft/phi-2 · publisher configuration
- Reviewed
Engine support
3 engines
| Engine | Release | Checkpoint support | Evidence scope | Last known supported |
|---|---|---|---|---|
| vLLM | 0.28.0Newest indexed | Checkpoint evidenceSource: vLLM v0.28.0 · docs/models/supported_models.mdReviewed | 0.28.0This release | |
Features, dependencies and evidence for vLLM 0.28.0 | ||||
| SGLang | 0.5.19Newest indexed | No matching evidence curated | No supported release indexed | |
Features, dependencies and evidence for SGLang 0.5.19 | ||||
| TensorRT-LLM | 1.2.1Newest indexed | No matching evidence curated | No supported release indexed | |
Features, dependencies and evidence for TensorRT-LLM 1.2.1 | ||||
Plan a deployment of phi-2
Pin checkpoint microsoft/phi-2 at revision 810d367871c1d460086d9f82db8696f2e0a0fcd0 on a documented release (vLLM). Verify quantized kernels, chat templates, and parser flags on your target GPU before production rollout.
- Indexed weights store F16 tensors; confirm your GPU architecture and engine build support this format natively.
- Configured maximum context is 2,048 tokens; cap
--max-model-len(or SGLang’s--context-length) to the longest prompt your workload actually serves so KV blocks stay available for concurrency. - Estimate weight and KV-cache memory for phi-2, leaving headroom for runtime activations and CUDA graphs, then benchmark TTFT, TPOT, and throughput on representative traffic.
No standalone engine cookbook is indexed for microsoft/phi-2; check the publisher’s model card and release table above for launch arguments.