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

Model Card for Model ID

This is a tiny random Llama model derived from "meta-llama/Llama-2-7b-hf". It was uploaded by IPEXModelForCausalLM.

from optimum.intel import IPEXModelForCausalLM

model = IPEXModelForCausalLM.from_pretrained("Intel/tiny_random_llama2")
model.push_to_hub("Intel/tiny_random_llama2_ipex_model")

This is useful for functional testing (not quality generation, since its weights are random) on optimum-intel

Downloads last month
1,111
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support