amokrov commited on
Commit
7b19016
·
verified ·
1 Parent(s): 8fc8dbd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -42
README.md CHANGED
@@ -36,49 +36,7 @@ Weight compression was performed using `nncf.compress_weights` with the followin
36
  The provided OpenVINO™ IR model is compatible with:
37
 
38
  * OpenVINO version 2025.2.0 and higher
39
- * Optimum Intel 1.26.0 and higher
40
 
41
- ## Running Model Inference with [Optimum Intel](https://huggingface.co/docs/optimum/intel/index)
42
-
43
- 1. Install packages required for using [Optimum Intel](https://huggingface.co/docs/optimum/intel/index) integration with the OpenVINO backend:
44
-
45
- ```
46
- pip install --pre -U --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/pre-release openvino_tokenizers openvino
47
-
48
- pip install git+https://github.com/huggingface/optimum-intel.git
49
- ```
50
-
51
- 2. Run model inference
52
-
53
- ```
54
- from PIL import Image
55
- import requests
56
- from optimum.intel.openvino import OVModelForVisualCausalLM
57
- from transformers import AutoTokenizer, TextStreamer
58
-
59
- model_id = "OpenVINO/llava-v1.6-mistral-7b-hf-int4-ov"
60
-
61
- tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
62
-
63
- ov_model = OVModelForVisualCausalLM.from_pretrained(model_id, trust_remote_code=True)
64
- prompt = "What is unusual on this picture?"
65
-
66
- url = "https://github.com/openvinotoolkit/openvino_notebooks/assets/29454499/d5fbbd1a-d484-415c-88cb-9986625b7b11"
67
- image = Image.open(requests.get(url, stream=True).raw)
68
-
69
- inputs = ov_model.preprocess_inputs(text=prompt, image=image, tokenizer=tokenizer, config=ov_model.config)
70
-
71
- generation_args = {
72
- "max_new_tokens": 100,
73
- "streamer": TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
74
- }
75
-
76
- generate_ids = ov_model.generate(**inputs, **generation_args)
77
-
78
- generate_ids = generate_ids[:, inputs['input_ids'].shape[1]:]
79
- response = tokenizer.batch_decode(generate_ids, skip_special_tokens=True)[0]
80
-
81
- ```
82
 
83
  ## Running Model Inference with [OpenVINO GenAI](https://github.com/openvinotoolkit/openvino.genai)
84
 
 
36
  The provided OpenVINO™ IR model is compatible with:
37
 
38
  * OpenVINO version 2025.2.0 and higher
 
39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
  ## Running Model Inference with [OpenVINO GenAI](https://github.com/openvinotoolkit/openvino.genai)
42