Edit model card

gemma-oh-preferences

This model is a fine-tuned version of google/gemma-2-9b-it on the cdc0b2d9-493b-4cb1-87e8-8fb1e3f4b247 dataset. It achieves the following results on the evaluation set:

  • Loss: 3.9424
  • Rewards/chosen: -46.0706
  • Rewards/rejected: -47.7080
  • Rewards/accuracies: 0.6460
  • Rewards/margins: 1.6374
  • Logps/rejected: -4.7708
  • Logps/chosen: -4.6071
  • Logits/rejected: 14.6998
  • Logits/chosen: 14.4715

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 8e-07
  • train_batch_size: 2
  • eval_batch_size: 2
  • seed: 42
  • distributed_type: multi-GPU
  • num_devices: 32
  • gradient_accumulation_steps: 2
  • total_train_batch_size: 128
  • total_eval_batch_size: 64
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: cosine
  • lr_scheduler_warmup_ratio: 0.1
  • num_epochs: 1.0

Training results

Training Loss Epoch Step Validation Loss Rewards/chosen Rewards/rejected Rewards/accuracies Rewards/margins Logps/rejected Logps/chosen Logits/rejected Logits/chosen
3.9729 1.0 7344 3.9424 -46.0706 -47.7080 0.6460 1.6374 -4.7708 -4.6071 14.6998 14.4715

Framework versions

  • Transformers 4.45.2
  • Pytorch 2.3.0
  • Datasets 2.21.0
  • Tokenizers 0.20.2
Downloads last month
29
Safetensors
Model size
9.24B params
Tensor type
BF16
·
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.

Model tree for mlfoundations-dev/gemma-oh-preferences

Base model

google/gemma-2-9b
Finetuned
(70)
this model