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 "nbeerbower/Lyra4-Gutenberg2-12B" \
    --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": "nbeerbower/Lyra4-Gutenberg2-12B",
		"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 "nbeerbower/Lyra4-Gutenberg2-12B" \
        --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": "nbeerbower/Lyra4-Gutenberg2-12B",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

image/png

Lyra4-Gutenberg2-12B

Sao10K/MN-12B-Lyra-v4 finetuned on jondurbin/gutenberg-dpo-v0.1 and nbeerbower/gutenberg2-dpo.

Features an increased sequence length from Lyra4-Gutenberg-12B.

Method

ORPO Finetuned using 2x RTX 3090 for 3 epochs.

Training data was formatted with ChatML.

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

Metric Value
Avg. 19.74
IFEval (0-Shot) 25.85
BBH (3-Shot) 33.73
MATH Lvl 5 (4-Shot) 10.50
GPQA (0-shot) 8.39
MuSR (0-shot) 11.49
MMLU-PRO (5-shot) 28.51
Downloads last month
15
Safetensors
Model size
12B params
Tensor type
BF16
·
Inference Providers NEW
Input a message to start chatting with nbeerbower/Lyra4-Gutenberg2-12B.

Model tree for nbeerbower/Lyra4-Gutenberg2-12B

Finetuned
(3)
this model
Merges
5 models
Quantizations
9 models

Datasets used to train nbeerbower/Lyra4-Gutenberg2-12B

Spaces using nbeerbower/Lyra4-Gutenberg2-12B 6

Evaluation results