How to use from
SGLang
Install from pip and serve model
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
    --model-path "wandb/gemma-2b-zephyr-sft" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "wandb/gemma-2b-zephyr-sft",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker images
docker run --gpus all \
    --shm-size 32g \
    -p 30000:30000 \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HF_TOKEN=<secret>" \
    --ipc=host \
    lmsysorg/sglang:latest \
    python3 -m sglang.launch_server \
        --model-path "wandb/gemma-2b-zephyr-sft" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "wandb/gemma-2b-zephyr-sft",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Visualize in Weights & Biases

Gemma 2B Zephyr SFT

The Zephyr SFT recipe applied on top of Gemma 2B

Model description

  • Model type: A 2.5B parameter GPT-like model fine-tuned on a mix of publicly available, synthetic datasets.
  • Language(s) (NLP): Primarily English
  • Finetuned from model: google/gemma-7b

Recipe

We trained using the alignment handbook recipe and logging to W&B

Visit the W&B workspace here

License

This model has the same license as the original Gemma model collection

Compute provided by Lambda Labs - 8xA100 80GB node

  • Around 2 hours to train

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

Metric Value
Avg. 47.18
AI2 Reasoning Challenge (25-Shot) 49.74
HellaSwag (10-Shot) 72.38
MMLU (5-Shot) 41.37
TruthfulQA (0-shot) 34.42
Winogrande (5-shot) 66.93
GSM8k (5-shot) 18.27
Downloads last month
77
Safetensors
Model size
3B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for wandb/gemma-2b-zephyr-sft

Base model

google/gemma-2b
Finetuned
(294)
this model
Adapters
2 models
Finetunes
7 models
Quantizations
2 models

Dataset used to train wandb/gemma-2b-zephyr-sft

Evaluation results