phi-2

Checkpointmicrosoft/phi-2Model card indexedModel card

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
Source 1: microsoft/phi-2 · publisher model cardSource 2: microsoft/phi-2 · Hugging Face metadataSource 3: microsoft/phi-2 · publisher configurationReviewed
Model notes and sources

Engine support

3 engines

Engine support for phi-2
EngineReleaseCheckpoint supportEvidence scopeLast known supported
vLLM0.28.0Newest indexedCheckpoint evidenceSource: vLLM v0.28.0 · docs/models/supported_models.mdReviewed 0.28.0This release
Features, dependencies and evidence for vLLM 0.28.0
SGLang0.5.19Newest indexedNo matching evidence curatedNo supported release indexed
Features, dependencies and evidence for SGLang 0.5.19
TensorRT-LLM1.2.1Newest indexedNo matching evidence curatedNo 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.