Downloads · 30 days
5
24% of all-time downloads
RichardErkhov/vuiseng9_-_ov-gpt2-fp32-no-cache-8bits
vuiseng9_-_ov-gpt2-fp32-no-cache-8bits is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
5
24% of all-time downloads
All-time downloads
21
Public
Parameters
125M
164 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors164 MB · 98%
How the weights are stored.
I884.9M · 68%
From the Hugging Face model README
Quantization made by Richard Erkhov.
ov-gpt2-fp32-no-cache - bnb 8bits
Original model description:
This model is inherited directly from gpt2 in HF model hub. Then, GPT2 Openvino IR from OMZ is copied here. The intended usage of this model is for optimum-intel.
# Install Optimum-Intel
from transformers import AutoTokenizer, pipeline, set_seed, AutoModelForCausalLM
from optimum.intel.openvino import OVModelForCausalLM
model_id="vuiseng9/ov-gpt2-fp32-no-cache"
model = OVModelForCausalLM.from_pretrained(model_id, use_cache=False)
tokenizer = AutoTokenizer.from_pretrained(model_id)
generator_pipe = pipeline('text-generation', model=model, tokenizer=tokenizer)
output = generator_pipe("It's a beautiful day ...", max_length=30, num_return_sequences=1)