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

Llama2 (7B) model fine-tuned on the CodeAlpaca 20k instructions dataset by using the method QLoRA with PEFT library.

Training and evaluation data 📚

CodeAlpaca_20K: contains 20K instruction-following data used for fine-tuning the Code Alpaca model. Data is here: https://huggingface.co/mrm8488/falcon-7b-ft-codeAlpaca_20k The adapter is here: https://huggingface.co/skar01/llama2-coder The base model is: TinyPixel/Llama-2-7B-bf16-sharded

Downloads last month
11
Inference Providers NEW