openvino_language_model.bin 2.5 GBopenvino_text_embeddings_model.bin 615 MBopenvino_audio_encoder_model.bin 431 MBopenvino_vision_embeddings_model.bin 399 MBopenvino_vision_projection_model.bin 13 MBopenvino_audio_forward_embeddings_model.bin 13 MBopenvino_audio_speech_projection_model.bin 13 MBopenvino_audio_vision_projection_model.bin 13 MBopenvino_tokenizer.bin 8 MBopenvino_detokenizer.bin 3 MBopenvino_audio_embeddings_model.bin 0.6 kBThis is Phi-4-multimodal-instruct model converted to the OpenVINO™ IR (Intermediate Representation) format with weights compressed to INT4 by NNCF.
The converted package includes the vision and audio encoders.
[!NOTE] The model is optimized for inference on NPU using these instructions.
Weight compression was performed using nncf.compress_weights with the following parameters:
For more information on quantization, check the OpenVINO model optimization guide.
The provided OpenVINO™ IR model is compatible with:
pip install openvino-genai huggingface_hub pillow
import huggingface_hub as hf_hub
model_id = "OpenVINO/Phi-4-multimodal-instruct-int4-cw-ov"
model_path = "Phi-4-multimodal-instruct-int4-cw-ov"
hf_hub.snapshot_download(model_id, local_dir=model_path)
import numpy as np
import openvino as ov
import openvino_genai as ov_genai
from PIL import Image
device = "NPU"
pipe = ov_genai.VLMPipeline(model_path, device)
image = ov.Tensor(np.array(Image.open("image.jpg").convert("RGB")))
result = pipe.generate("What is in this image?", image=image, max_new_tokens=100)
print(result.texts[0])
[!NOTE] With
device="NPU", OpenVINO GenAI runs the language model on the NPU.
More GenAI usage examples can be found in OpenVINO GenAI library docs and samples.
You can find more detailed usage examples in OpenVINO Notebooks:
Check the original model card for limitations.
The original model is distributed under the MIT License. More details can be found in Phi-4-multimodal-instruct.
Intel is committed to respecting human rights and avoiding causing or contributing to adverse impacts on human rights. See Intel's Global Human Rights Principles. Intel's products and software are intended only to be used in applications that do not cause or contribute to adverse impacts on human rights.
有文件?提交种子。
提交种子