helenai commited on
Commit
b1b4ba5
1 Parent(s): fab73e3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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)