Update README.md
Browse files
README.md
CHANGED
@@ -22,9 +22,8 @@ ov_model = OVModelForCausalLM.from_pretrained(
|
|
22 |
trust_remote_code=True,
|
23 |
)
|
24 |
|
25 |
-
tokenizer_kwargs = model_configuration.get("tokenizer_kwargs", {})
|
26 |
test_string = "What is OpenVino?"
|
27 |
-
input_tokens = tok(test_string, return_tensors="pt"
|
28 |
answer = ov_model.generate(**input_tokens, max_new_tokens=200)
|
29 |
print(tok.batch_decode(answer, skip_special_tokens=True)[0])
|
30 |
```
|
|
|
22 |
trust_remote_code=True,
|
23 |
)
|
24 |
|
|
|
25 |
test_string = "What is OpenVino?"
|
26 |
+
input_tokens = tok(test_string, return_tensors="pt")
|
27 |
answer = ov_model.generate(**input_tokens, max_new_tokens=200)
|
28 |
print(tok.batch_decode(answer, skip_special_tokens=True)[0])
|
29 |
```
|