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"
# 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",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker
docker model run hf.co/Intel/tiny-random-llama2
Quick Links

Model Card for Model ID

This is a tiny random Llama model derived from "meta-llama/Llama-2-7b-hf".

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

Downloads last month
151
Safetensors
Model size
17M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Space using Intel/tiny-random-llama2 1