CoolFace
Modelpublic

QueryloopAI/AlphaMonarch-laser

sourceHugging Facecc-by-nc-4.0updated 3y agoView on Hugging Face
0likes17downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

AlphaMonarch-laser

image/jpeg

AlphaMonarch-laser is a DPO fine-tuned of mlabonne/NeuralMonarch-7B using the argilla/OpenHermes2.5-dpo-binarized-alpha preference dataset but achieves better performance then mlabonne/AlphaMonarch-7B using LaserQLoRA. I have fine-tuned this model only on half of the projections, but have achieved better results as compared to the version released by Maximme Labonne. I have trained this model for 1080 steps.

AlphaMonarch-laser is ranking 1 on YALL - Yet Another LLM Leaderboard. image/png

🏆 Evaluation results

Nous Benchmark

AGIEVAL

TaskVersionMetricValueStdErr
agievalaquarat0acc28.35%2.83%
agievalaquarat0acc_norm26.38%2.77%
agievallogiqaen0acc38.25%1.91%
agievallogiqaen0acc_norm38.10%1.90%
agievallsatar0acc23.91%2.82%
agievallsatar0acc_norm23.48%2.80%
agievallsatlr0acc52.75%2.21%
agievallsatlr0acc_norm53.92%2.21%
agievallsatrc0acc66.91%2.87%
agievallsatrc0acc_norm67.29%2.87%
agievalsaten0acc78.64%2.86%
agievalsaten0acc_norm78.64%2.86%
agievalsatenwithoutpassage0acc45.15%3.48%
agievalsatenwithoutpassage0acc_norm44.17%3.47%
agievalsatmath0acc33.18%3.18%
agievalsatmath0acc_norm31.36%3.14%

Average: 28.41%

GPT4ALL

TaskVersionMetricValueStdErr
arc_challenge0acc66.30%± 1.38%
acc_norm68.26%± 1.36%
arc_easy0acc86.57%± 0.70%
acc_norm80.81%± 0.81%
boolq1acc87.16%± 0.59%
hellaswag0acc69.60%± 0.46%
acc_norm87.45%± 0.33%
openbookqa0acc39.20%± 2.19%
acc_norm49.60%± 2.24%
piqa0acc83.03%± 0.88%
acc_norm84.87%± 0.84%
winogrande0acc81.06%± 1.10%

Average: 76.98%

TRUTHFUL-QA

TaskVersionMetricValueStdErr
truthfulqa_mc1mc163.04%± 1.69%
truthfulqa_mc1mc278.39%± 1.37%

Average: 70.71%

BIGBENCH

TaskVersionMetricValueStdErr
bigbenchcausaljudgement0multiplechoicegrade60.00%± 3.56%
bigbenchdateunderstanding0multiplechoicegrade62.06%± 2.53%
bigbenchdisambiguationqa0multiplechoicegrade54.26%± 3.11%
bigbenchgeometricshapes0multiplechoicegrade23.96%± 2.26%
exactstrmatch0.00%± 0.00%
bigbenchlogicaldeductionfiveobjects0multiplechoicegrade32.80%± 2.10%
bigbenchlogicaldeductionsevenobjects0multiplechoicegrade23.86%± 1.61%
bigbenchlogicaldeductionthreeobjects0multiplechoicegrade59.33%± 2.84%
bigbenchmovierecommendation0multiplechoicegrade58.00%± 2.21%
bigbench_navigate0multiplechoicegrade56.00%± 1.57%
bigbenchreasoningaboutcoloredobjects0multiplechoicegrade69.20%± 1.03%
bigbenchruinnames0multiplechoicegrade55.36%± 2.35%
bigbenchsalienttranslationerrordetection0multiplechoicegrade41.48%± 1.56%
bigbench_snarks0multiplechoicegrade73.48%± 3.29%
bigbenchsportsunderstanding0multiplechoicegrade76.06%± 1.36%
bigbenchtemporalsequences0multiplechoicegrade55.50%± 1.57%
bigbenchtrackingshuffledobjectsfive_objects0multiplechoicegrade23.28%± 1.20%
bigbenchtrackingshuffledobjectsseven_objects0multiplechoicegrade19.37%± 0.94%
bigbenchtrackingshuffledobjectsthree_objects0multiplechoicegrade59.33%± 2.84%

Average: 55.37%

Openllm Benchmark

TaskVersionMetricValueStderr
arc_challenge0acc70.12±1.30
acc_norm73.27±1.29
hellaswag0acc71.80±0.44
acc_norm89.20±0.30
gsm8k0acc66.77±1.2
winogrande0acc84.6±1.0

Average: 73.5%

TruthfulQA

TaskVersionMetricValueStderr
truthfulqa_mc1mc162.79±1.69
mc277.90±1.37

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 5e-07
  • —trainbatchsize: 1
  • —evalbatchsize: 8
  • —seed: 42
  • —gradientaccumulationsteps: 8
  • —totaltrainbatch_size: 8
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: cosine
  • —lrschedulerwarmup_steps: 100
  • —training_steps: 1080

📝 Axolotl Configuration

yaml
base_model: mlabonne/NeuralMonarch-7B
model_type: MistralForCausalLM
tokenizer_type: LlamaTokenizer
is_mistral_derived_model: true
load_in_8bit: false
load_in_4bit: true
strict: false
rl: dpo
chat_template: chatml
datasets:
  - path: mlabonne/chatml-OpenHermes2.5-dpo-binarized-alpha
    split: train
    type: chatml.intel
dataset_prepared_path:
val_set_size: 0.01
output_dir: ./out
adapter: qlora
lora_model_dir:
sequence_len: 1800
sample_packing: false
pad_to_sequence_len: false
lora_r: 16
lora_alpha: 16
lora_dropout: 0.05
lora_target_linear: true
lora_fan_in_fan_out:
lora_target_modules:
 - layers.1.self_attn.q_proj
 - layers.0.self_attn.q_proj
 - layers.15.self_attn.q_proj
 - layers.12.self_attn.q_proj
 - layers.11.self_attn.q_proj
 - layers.14.self_attn.q_proj
 - layers.9.self_attn.q_proj
 - layers.16.self_attn.q_proj
 - layers.30.self_attn.q_proj
 - layers.18.self_attn.q_proj
 - layers.13.self_attn.q_proj
 - layers.10.self_attn.q_proj
 - layers.7.self_attn.q_proj
 - layers.8.self_attn.q_proj
 - layers.4.self_attn.q_proj
 - layers.19.self_attn.q_proj
 - layers.27.self_attn.k_proj
 - layers.24.self_attn.k_proj
 - layers.25.self_attn.k_proj
 - layers.22.self_attn.k_proj
 - layers.26.self_attn.k_proj
 - layers.29.self_attn.k_proj
 - layers.23.self_attn.k_proj
 - layers.28.self_attn.k_proj
 - layers.21.self_attn.k_proj
 - layers.31.self_attn.k_proj
 - layers.30.self_attn.k_proj
 - layers.20.self_attn.k_proj
 - layers.5.self_attn.k_proj
 - layers.19.self_attn.k_proj
 - layers.17.self_attn.k_proj
 - layers.18.self_attn.k_proj
 - layers.19.self_attn.v_proj
 - layers.24.self_attn.v_proj
 - layers.18.self_attn.v_proj
 - layers.5.self_attn.v_proj
 - layers.3.self_attn.v_proj
 - layers.16.self_attn.v_proj
 - layers.23.self_attn.v_proj
 - layers.27.self_attn.v_proj
 - layers.25.self_attn.v_proj
 - layers.26.self_attn.v_proj
 - layers.20.self_attn.v_proj
 - layers.6.self_attn.v_proj
 - layers.15.self_attn.v_proj
 - layers.17.self_attn.v_proj
 - layers.29.self_attn.v_proj
 - layers.22.self_attn.v_proj
 - layers.12.self_attn.o_proj
 - layers.9.self_attn.o_proj
 - layers.14.self_attn.o_proj
 - layers.0.self_attn.o_proj
 - layers.6.self_attn.o_proj
 - layers.8.self_attn.o_proj
 - layers.10.self_attn.o_proj
 - layers.11.self_attn.o_proj
 - layers.13.self_attn.o_proj
 - layers.24.self_attn.o_proj
 - layers.7.self_attn.o_proj
 - layers.15.self_attn.o_proj
 - layers.5.self_attn.o_proj
 - layers.17.self_attn.o_proj
 - layers.25.self_attn.o_proj
 - layers.4.self_attn.o_proj
 - layers.31.mlp.gate_proj
 - layers.30.mlp.gate_proj
 - layers.4.mlp.gate_proj
 - layers.3.mlp.gate_proj
 - layers.29.mlp.gate_proj
 - layers.28.mlp.gate_proj
 - layers.6.mlp.gate_proj
 - layers.27.mlp.gate_proj
 - layers.5.mlp.gate_proj
 - layers.26.mlp.gate_proj
 - layers.25.mlp.gate_proj
 - layers.7.mlp.gate_proj
 - layers.2.mlp.gate_proj
 - layers.24.mlp.gate_proj
 - layers.23.mlp.gate_proj
 - layers.10.mlp.gate_proj
 - layers.6.mlp.up_proj
 - layers.4.mlp.up_proj
 - layers.5.mlp.up_proj
 - layers.27.mlp.up_proj
 - layers.25.mlp.up_proj
 - layers.26.mlp.up_proj
 - layers.17.mlp.up_proj
 - layers.24.mlp.up_proj
 - layers.7.mlp.up_proj
 - layers.10.mlp.up_proj
 - layers.3.mlp.up_proj
 - layers.11.mlp.up_proj
 - layers.23.mlp.up_proj
 - layers.9.mlp.up_proj
 - layers.14.mlp.up_proj
 - layers.18.mlp.up_proj
 - layers.19.mlp.down_proj
 - layers.20.mlp.down_proj
 - layers.18.mlp.down_proj
 - layers.21.mlp.down_proj
 - layers.29.mlp.down_proj
 - layers.1.mlp.down_proj
 - layers.22.mlp.down_proj
 - layers.28.mlp.down_proj
 - layers.23.mlp.down_proj
 - layers.30.mlp.down_proj
 - layers.17.mlp.down_proj
 - layers.4.mlp.down_proj
 - layers.2.mlp.down_proj
 - layers.15.mlp.down_proj
 - layers.5.mlp.down_proj
wandb_project: axolotl
wandb_entity:
wandb_watch:
wandb_name:
wandb_log_model:
gradient_accumulation_steps: 8
micro_batch_size: 1
num_epochs: 1
optimizer: paged_adamw_32bit
lr_scheduler: cosine
learning_rate: 5e-7
train_on_inputs: false
group_by_length: false
bf16: true
fp16: false
tf32: true
gradient_checkpointing: true
early_stopping_patience:
resume_from_checkpoint:
local_rank:
logging_steps: 1
xformers_attention:
flash_attention: true
warmup_steps: 100
evals_per_epoch: 1
eval_table_size:
eval_table_max_new_tokens: 128
save_steps: 1080
max_steps: 1080
debug:
deepspeed:
weight_decay: 0.0
fsdp:
fsdp_config:
special_tokens:

Framework versions

  • —Transformers 4.38.0.dev0
  • —Pytorch 2.1.2+cu118
  • —Datasets 2.17.0
  • —Tokenizers 0.15.0
  • —axolotl: 0.4.0

<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>