Downloads · 30 days
50
8% of all-time downloads
echarlaix/distilgpt2-openvino-4bit
distilgpt2-openvino-4bit is a text generation model from echarlaix. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a quantized version of echarlaix/distilgpt2-openvino and is converted to the OpenVINO format. This model was obtained via the nncf-quantization space with optimum-intel.
Downloads · 30 days
50
8% of all-time downloads
All-time downloads
635
Public
Repo size
322 MB
Likes
0
Public
Click a slice to open those files.
.bin68.7 MB · 96%
From the Hugging Face model README
This model is a quantized version of echarlaix/distilgpt2-openvino and is converted to the OpenVINO format. This model was obtained via the nncf-quantization space with optimum-intel.
First make sure you have optimum-intel installed:
pip install optimum[openvino]
To load your model you can do as follows:
from optimum.intel import OVModelForCausalLM
model_id = "echarlaix/distilgpt2-openvino-4bit"
model = OVModelForCausalLM.from_pretrained(model_id)