Views
No views yet
[!NOTE]
The model is optimized for inference on NPU using these instructions.
nncf.compress_weights with the following parameters:[!NOTE] NPU support is compatible with Intel® Core™ Ultra 200V Series processors and Intel® Core™ Ultra Series 3 processors.
pip install openvino-genai huggingface_hub1import huggingface_hub as hf_hub
2
3model_id = "OpenVINO/Phi-3.5-mini-instruct-int4-gq-ov"
4model_path = "Phi-3.5-mini-instruct-int4-gq-ov"
5
6hf_hub.snapshot_download(model_id, local_dir=model_path)1import openvino_genai as ov_genai
2
3device = "NPU"
4pipe = ov_genai.LLMPipeline(model_path, device)
5print(pipe.generate("What is OpenVINO?", max_length=200))