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

Tiny Gemma2ForCausalLM

This is a minimal model built for unit tests in the TRL library.

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

Spaces using trl-internal-testing/tiny-Gemma2ForCausalLM 2

Collection including trl-internal-testing/tiny-Gemma2ForCausalLM