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)
Runs of helenai gpt2-ov on huggingface.co
912
Total runs
0
24-hour runs
12
3-day runs
-107
7-day runs
1
30-day runs
More Information About gpt2-ov huggingface.co Model
gpt2-ov huggingface.co
gpt2-ov huggingface.co is an AI model on huggingface.co that provides gpt2-ov's model effect (), which can be used instantly with this helenai gpt2-ov model. huggingface.co supports a free trial of the gpt2-ov model, and also provides paid use of the gpt2-ov. Support call gpt2-ov model through api, including Node.js, Python, http.
gpt2-ov huggingface.co is an online trial and call api platform, which integrates gpt2-ov's modeling effects, including api services, and provides a free online trial of gpt2-ov, you can try gpt2-ov online for free by clicking the link below.
helenai gpt2-ov online free url in huggingface.co:
gpt2-ov is an open source model from GitHub that offers a free installation service, and any user can find gpt2-ov on GitHub to install. At the same time, huggingface.co provides the effect of gpt2-ov install, users can directly use gpt2-ov installed effect in huggingface.co for debugging and trial. It also supports api for free installation.