Update README.md
Browse files
README.md
CHANGED
@@ -17,7 +17,7 @@ from transformers import AutoTokenizer, pipeline
|
|
17 |
# model_id should be set to either a local directory or a model available on the HuggingFace hub.
|
18 |
model_id = "helenai/xverse-XVERSE-7B-ov"
|
19 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
20 |
-
model = OVModelForCausalLM.from_pretrained(model_id)
|
21 |
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
|
22 |
result = pipe("hello world")
|
23 |
print(result)
|
|
|
17 |
# model_id should be set to either a local directory or a model available on the HuggingFace hub.
|
18 |
model_id = "helenai/xverse-XVERSE-7B-ov"
|
19 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
20 |
+
model = OVModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
|
21 |
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
|
22 |
result = pipe("hello world")
|
23 |
print(result)
|