How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="nbeerbower/Lyra4-Gutenberg2-12B")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("nbeerbower/Lyra4-Gutenberg2-12B")
model = AutoModelForCausalLM.from_pretrained("nbeerbower/Lyra4-Gutenberg2-12B", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
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