CoolFace
Modelpublic

trollek/danube2-1.8b-openhermes

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes19downloads
Model Card

h2o-danube2 with ChatML template

This is a BAdam and LoRA+ fine-tuned danube2 base model. It uses the ChatML template and was trained on the openhermes-unfiltered.

Quants

Thank you mradermacher!

Template

jinja
<|im_start|>user
{{instruction}}<|im_end|>
<|im_start|>assistant
{{response}}<|im_end|>

BAdam

System: You are a helpful assistant.

yaml
### model
model_name_or_path: danube2-base-chatml

### method
stage: sft
do_train: true
finetuning_type: full
use_badam: true
badam_switch_mode: ascending
badam_switch_interval: 50
badam_verbose: 1
badam_start_block: 10
seed: 720

### dataset
dataset: openhermes_unfiltered
template: ninja_chatml
cutoff_len: 8192
overwrite_cache: false
preprocessing_num_workers: 12

### output
output_dir: openhermes-chatml-badam
logging_steps: 5
save_steps: 1
save_strategy: epoch
plot_loss: true
overwrite_output_dir: false

### train
per_device_train_batch_size: 2
gradient_accumulation_steps: 8
learning_rate: 0.00001
num_train_epochs: 1
lr_scheduler_type: constant_with_warmup
warmup_ratio: 0.01
bf16: true
flash_attn: fa2

### eval
val_size: 0.01
per_device_eval_batch_size: 1
eval_strategy: steps
eval_steps: 2000

BAdam Training results

Training LossEpochStepValidation Loss
0.79710.174820000.7418
0.68150.349640000.7178
0.65930.524560000.7055
0.69230.699380000.6960
0.69420.8741100000.6877

QLoRA+

yaml
### model
model_name_or_path: openhermes-chatml-badam

### method
stage: sft
do_train: true
finetuning_type: lora
lora_target: all
loraplus_lr_ratio: 16.0
lora_rank: 8
lora_alpha: 16
use_unsloth: true
quantization_bit: 4
upcast_layernorm: true
seed: 3141

### dataset
dataset: openhermes_unfiltered
template: hermes_chatml
cutoff_len: 8192
overwrite_cache: false
preprocessing_num_workers: 12

### output
output_dir: openhermes-chatml-badam/loraplus
logging_steps: 1
save_steps: 1
save_strategy: epoch
plot_loss: true
overwrite_output_dir: false

### train
per_device_train_batch_size: 4
gradient_accumulation_steps: 4
learning_rate: 0.0001
num_train_epochs: 1.0
lr_scheduler_type: cosine
warmup_ratio: 0.01
bf16: true
flash_attn: fa2
#neftune_noise_alpha: 5

### eval
val_size: 0.02
per_device_eval_batch_size: 1
eval_strategy: steps
eval_steps: 1000

QLoRA+ Training results

Training LossEpochStepValidation Loss
0.65230.088310000.7126
0.63980.176620000.7086
0.68650.264930000.7001
0.67140.353240000.6917
0.72130.441550000.6819
0.77640.529860000.6721
0.69310.618170000.6638
0.66320.706480000.6560
0.59660.794790000.6514
0.63390.8830100000.6482
0.49870.9713110000.6472