Views
No views yet
[!NOTE]
The model is optimized for inference on NPU using these instructions.
nncf.compress_weights with the following parameters:pip install openvino-genai huggingface_hubimport huggingface_hub as hf_hub
model_id = "OpenVINO/Mistral-7B-Instruct-v0.2-int4-cw-ov"
model_path = "Mistral-7B-Instruct-v0.2-int4-cw-ov"
hf_hub.snapshot_download(model_id, local_dir=model_path)
import openvino_genai as ov_genai
device = "NPU"
pipe = ov_genai.LLMPipeline(model_path, device)
print(pipe.generate("What is OpenVINO?", max_length=200))