Install and start
The default uses one GPU. The checkpoint includes vision and speech adapters, selected automatically for the input modality.phi4mm
Text, image, audio → text. The default phi4mm.yaml uses 1 GPU. Beta. The weights use MIT.
Send a request
Run either client example in a second terminal after/health returns 200.
Ask about an image
Supply a photograph asscene.png and read the model’s description.
Python SDK
Deployment configs
Settings and defaults
The checkpoint ships a vision LoRA and a speech LoRA, and the model picks one per request from its media: vision for any prompt with an image, speech for audio alone, the base model for text. The config serves them from the engine’s LoRA pool:max_rank stays at 320 or more. A text-only prompt may run an adapter of the deployment’s own; raise max_slots to hold it, and see LoRA.
Request knobs are the sampler’s: temperature, top_p, top_k, repetition_penalty, penalize_prompt and max_output_tokens. A min_p above 0 is refused unless the checkpoint’s generation_config.json sets one.
Limits
- Video input is refused.
- Audio below 8 kHz is refused. Audio between 8 and 16 kHz runs through the 8 kHz front end, and higher rates are resampled to 16 kHz.
- LongRoPE picks its table from the prompt’s length: a prompt past 4096 tokens runs on the long table throughout. Unlike the reference, a request whose output crosses 4096 tokens stays on the table it started on.
- The chat route refuses tool calls,
nabove 1, stop sequences and OpenAIlogprobs.