library_name: transformers
license: apache-2.0
base_model: Qwen/Qwen2.5-14B-Instruct-1M
tags:
- generated_from_trainer
datasets: - ToastyPigeon/cedo-unalign-v2
model-index: - name: ckpts
results: []
See axolotl config
axolotl version: 0.6.0
# === Start-up Commands ===
# curl -LsSf https://astral.sh/uv/install.sh | sh
# export PATH="$HOME/.local/bin:$PATH"
# git clone https://github.com/axolotl-ai-cloud/axolotl
# cd axolotl
# git checkout d8b4027200de0fe60f4ae0a71272c1a8cb2888f7
# uv venv
# source .venv/bin/activate
# uv pip install packaging ninja setuptools huggingface_hub[cli,hf_transfer]
# uv pip install "cut-cross-entropy[transformers] @ git+https://github.com/apple/ml-cross-entropy.git"
# uv pip install apollo-torch
# uv pip install --no-build-isolation -e .[flash-attn,deepspeed]
# uv pip install git+https://github.com/huggingface/transformers.git
# export HF_HUB_ENABLE_HF_TRANSFER=1
# huggingface-cli login --token $hf_key && wandb login $wandb_key
# axolotl preprocess qwen14-unalign-v2.yml
# axolotl train qwen14-unalign-v2.yml
# curl -LsSf https://astral.sh/uv/install.sh | sh && export PATH="$HOME/.local/bin:$PATH" && git clone https://github.com/axolotl-ai-cloud/axolotl && cd axolotl && uv venv && source .venv/bin/activate && uv pip install packaging ninja setuptools huggingface_hub[cli,hf_transfer] && uv pip install apollo-torch && uv pip install --no-build-isolation -e .[flash-attn,deepspeed] && uv pip install git+https://github.com/huggingface/transformers.git && export HF_HUB_ENABLE_HF_TRANSFER=1 && cd .. && huggingface-cli login --token $hf_key && wandb login $wandb_key
# === Model Configuration ===
base_model: Qwen/Qwen2.5-14B-Instruct-1M # e.g. "mistralai/Mistral-Small-24B-Instruct-2501"
load_in_8bit: false
load_in_4bit: false
# === Training Setup ===
num_epochs: 2
micro_batch_size: 1
gradient_accumulation_steps: 1
sequence_len: 2048
sample_packing: true
pad_to_sequence_len: true
# === Evaluation ===
val_set_size: 50
evals_per_epoch: 10
eval_table_size:
eval_max_new_tokens: 256
eval_sample_packing: true
# === Hyperparameter Configuration ===
optimizer: apollo_adamw_layerwise
# Apollo-mini configuration:
optim_args: "proj=random,rank=1,scale=128.0,scale_type=tensor,update_proj_gap=200"
# Regular Apollo configuration:
# optim_args:
optim_target_modules: all_linear
learning_rate: 1e-5
lr_scheduler: cosine
weight_decay: 0.01
warmup_ratio: 0.05
# === Data Configuration ===
datasets:
- path: ToastyPigeon/cedo-unalign-v2
type: chat_template
split: train
field_messages: conversations
message_field_role: from
message_field_content: value
dataset_prepared_path: last_run_prepared
chat_template: tokenizer_default
# Example custom template:
# chat_template: jinja
# chat_template_jinja: |
# {{- bos_token }}{%- for message in messages %}
# {%- if message['role'] == 'system' %}
# {{- '[SYSTEM_PROMPT]' + message['content'] + '[/SYSTEM_PROMPT]' }}
# {%- elif message['role'] == 'user' %}
# {{- '[INST]' + message['content'] + '[/INST]' }}
# {%- elif message['role'] == 'assistant' %}
# {{- message['content'] + eos_token }}
# {%- endif %}
# {%- endfor %}
# === Plugins ===
plugins:
- axolotl.integrations.liger.LigerPlugin
# - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
# === Hardware Optimization ===
gradient_checkpointing: unsloth
gradient_checkpointing_kwargs:
use_reentrant: false
liger_rope: true
liger_rms_norm: true
liger_glu_activation: true
liger_fused_linear_cross_entropy: true
unsloth_cross_entropy_loss: true
#cut_cross_entropy: true
# Only if using multiple GPUs:
#deepspeed: axolotl/deepspeed_configs/zero3_bf16.json
# === Wandb Tracking ===
wandb_project: Qwen-14b-Revisit
# wandb_entity: [WANDB_ENTITY]
# wandb_name: [WANDB_RUN_NAME]
# === MLflow Tracking ===
#mlflow_tracking_uri: https://public-tracking.mlflow-e00zzfjq11ky6jcgtv.backbone-#e00bgn6e63256prmhq.msp.eu-north1.nebius.cloud
#mlflow_experiment_name: [EXPERIMENT NAME] # e.g. "ms-24b-rp-inkmixv2-apollo"
#hf_mlflow_log_artifacts: true
# === Checkpointing ===
saves_per_epoch: 2
save_total_limit: 3
# === Advanced Settings ===
output_dir: ./ckpts
bf16: auto
flash_attention: true
train_on_inputs: false
group_by_length: false
save_safetensors: true
logging_steps: 1
gc_steps: 10
seed: 69
ckpts
This model is a fine-tuned version of Qwen/Qwen2.5-14B-Instruct-1M on the ToastyPigeon/cedo-unalign-v2 dataset.
It achieves the following results on the evaluation set:
- Loss: 0.9862
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: 1e-05
- train_batch_size: 1
- eval_batch_size: 1
- seed: 69
- optimizer: Use OptimizerNames.APOLLO_ADAMW_LAYERWISE with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=proj=random,rank=1,scale=128.0,scale_type=tensor,update_proj_gap=200
- lr_scheduler_type: cosine
- lr_scheduler_warmup_steps: 37
- num_epochs: 2.0
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.0762 | 0.0027 | 1 | 1.2589 |
| 0.8557 | 0.1011 | 38 | 1.0504 |
| 0.9131 | 0.2021 | 76 | 1.0223 |
| 0.8569 | 0.3032 | 114 | 1.0120 |
| 0.9588 | 0.4043 | 152 | 1.0049 |
| 0.9484 | 0.5053 | 190 | 0.9999 |
| 0.8792 | 0.6064 | 228 | 0.9967 |
| 0.9433 | 0.7074 | 266 | 0.9947 |
| 0.883 | 0.8085 | 304 | 0.9929 |
| 0.9798 | 0.9096 | 342 | 0.9925 |
| 0.9804 | 1.0106 | 380 | 0.9893 |
| 1.0214 | 1.1117 | 418 | 0.9885 |
| 0.8334 | 1.2128 | 456 | 0.9874 |
| 0.6984 | 1.3138 | 494 | 0.9871 |
| 0.9041 | 1.4149 | 532 | 0.9867 |
| 0.9362 | 1.5160 | 570 | 0.9859 |
| 0.9661 | 1.6170 | 608 | 0.9859 |
| 1.0436 | 1.7181 | 646 | 0.9858 |
| 1.0748 | 1.8191 | 684 | 0.9861 |
| 0.9125 | 1.9202 | 722 | 0.9862 |
Framework versions
- Transformers 4.50.0.dev0
- Pytorch 2.6.0+cu124
- Datasets 3.2.0
- Tokenizers 0.21.0