How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "echarlaix/distilgpt2-openvino"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "echarlaix/distilgpt2-openvino",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Use Docker
docker model run hf.co/echarlaix/distilgpt2-openvino
Quick Links

This model was converted to OpenVINO from distilbert/distilgpt2 using optimum-intel via the export space.

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"
model = OVModelForCausalLM.from_pretrained(model_id)
Downloads last month
20
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for echarlaix/distilgpt2-openvino

Finetuned
(1530)
this model
Finetunes
2 models

Dataset used to train echarlaix/distilgpt2-openvino

Evaluation results