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

Llama 7B model to be used in huggingface/transformers.
Scripts Used: https://github.com/huggingface/transformers/pull/21955
Attention: "transformers_version": "4.27.0.dev0"
commit time: 2023.4.16

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