Downloads · 30 days
798
3% of all-time downloads
helenai/gpt2-ov
gpt2-ov is a text generation model from helenai. Use it when you need the model to write or continue text. It is set up for transformers.
This is the gpt2 model converted to OpenVINO, for accellerated inference.
Downloads · 30 days
798
3% of all-time downloads
All-time downloads
24.1K
Public
Repo size
903 MB
Likes
2
Public
Click a slice to open those files.
.bin653 MB · 99%
From the Hugging Face model README
This is the gpt2 model converted to OpenVINO, for accellerated inference.
An example of how to do inference on this model:
from optimum.intel.openvino import OVModelForCausalLM
from transformers import AutoTokenizer, pipeline
# model_id should be set to either a local directory or a model available on the HuggingFace hub.
model_id = "helenai/gpt2-ov"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = OVModelForCausalLM.from_pretrained(model_id)
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
result = pipe("My name is Julien and I like to")
print(result)