Phi-4-mini-instruct W4A16

Ampere-friendly serving build of microsoft/Phi-4-mini-instruct. Text-side linears are compressed-tensors W4A16.

Stock proof

docker run --rm -it \
  --gpus all \
  --ipc=host \
  -p 8001:8000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  vllm/vllm-openai:latest \
  microsoft/Phi-4-mini-instruct \
  --served-model-name Phi-4-mini-instruct-stock \
  --dtype bfloat16 \
  --max-model-len 4096 \
  --gpu-memory-utilization 0.7

Serve the packaged artifact

docker run --rm -it \
  --gpus all \
  --ipc=host \
  -p 8002:8000 \
  -v /path/to/Phi-4-mini-instruct-W4A16:/model \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  vllm/vllm-openai:latest \
  /model \
  --served-model-name Phi-4-mini-instruct-W4A16 \
  --dtype bfloat16 \
  --quantization compressed-tensors \
  --max-model-len 4096 \
  --gpu-memory-utilization 0.7

Smoke test

python verify.py --url http://localhost:8002/v1/completions

Notes

  • Best fit: RTX 30xx/40xx Ampere cards.
  • The package is text-only and stays compatible with clean vLLM.
Downloads last month
9
Safetensors
Model size
4B params
Tensor type
I64
I32
BF16
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support

Model tree for useful-quants/Phi-4-mini-instruct-W4A16

Quantized
(168)
this model