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

Finetune Mistral, Gemma, Llama 2-5x faster with 70% less memory via Unsloth!

✨ Finetune for Free

All notebooks are beginner friendly! Add your dataset, click "Run All", and you'll get a 2x faster finetuned model which can be exported to GGUF, vLLM or uploaded to Hugging Face.

Unsloth supports Free Notebooks Performance Memory use
Gemma 7b ▢️ Start on Colab 2.4x faster 58% less
Mistral 7b ▢️ Start on Colab 2.2x faster 62% less
Llama-2 7b ▢️ Start on Colab 2.2x faster 43% less
TinyLlama ▢️ Start on Colab 3.9x faster 74% less
CodeLlama 34b A100 ▢️ Start on Colab 1.9x faster 27% less
Mistral 7b 1xT4 ▢️ Start on Kaggle 5x faster* 62% less
DPO - Zephyr ▢️ Start on Colab 1.9x faster 19% less
Downloads last month
30,717
Safetensors
Model size
3B params
Tensor type
BF16
Β·
Inference Providers NEW
Input a message to start chatting with unsloth/gemma-2b-it.

Model tree for unsloth/gemma-2b-it

Adapters
197 models
Finetunes
9 models
Quantizations
1 model

Spaces using unsloth/gemma-2b-it 3