How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "malcolmchan/Qwen2.5-1.5B-Instruct-openvino-8bit"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "malcolmchan/Qwen2.5-1.5B-Instruct-openvino-8bit",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker
docker model run hf.co/malcolmchan/Qwen2.5-1.5B-Instruct-openvino-8bit
Quick Links

This model is a quantized version of Qwen/Qwen2.5-1.5B-Instruct 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 = "malcolmchan/Qwen2.5-1.5B-Instruct-openvino-8bit"
model = OVModelForCausalLM.from_pretrained(model_id)
Downloads last month
1
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for malcolmchan/Qwen2.5-1.5B-Instruct-openvino-8bit

Finetuned
(1654)
this model