Downloads · 30 days
2
1% of all-time downloads
nlp-projects/almo-OLMoE-1B-7B-0924-wglobalcopy-b0-layerbalancing
almo-OLMoE-1B-7B-0924-wglobalcopy-b0-layerbalancing is a text generation model from nlp-projects. Use it when you need the model to write or continue text. It is set up for peft.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
2
1% of all-time downloads
All-time downloads
180
Public
Parameters
7B
14.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors14.1 GB · 100%
From the Hugging Face model README
axolotl version: 0.16.1
# ─── Model ────────────────────────────────────────────────────────────────────
# base_model: allenai/OLMoE-1B-7B-0924
base_model: nlp-projects/almo-OLMoE-1B-7B-0924-wglobalcopy-b0-layerbalancing
model_type: AutoModelForCausalLM
tokenizer_type: AutoTokenizer
trust_remote_code: true
output_dir: /data2/mohsenfayyaz/projects/ALMo/ALMo/src/sft/artifacts/outputs/almo-olmoe-wglobalcopy-b0-layerbalancing-ftgatewb
hub_model_id: nlp-projects/almo-OLMoE-1B-7B-0924-wglobalcopy-b0-layerbalancing
push_to_hub: false
hub_private_repo: false
# resume_from_checkpoint: /data2/mohsenfayyaz/projects/ALMo/ALMo/src/sft/outputs/almo-olmoe-router-only-5k/checkpoint-1000
# Limit tokenization/training data for smoke test
# max_samples: 100
# ─── Logging ──────────────────────────────────────────────────────────────────
###### WandB
wandb_project: almo
wandb_entity: mohsenfayyaz
wandb_name: almo-olmoe-wglobalcopy-b0-layerbalancing-ftgatewb
# ─── Training mode / Frozen Parameters ────────────────────────────────────────────────────────────
adapter: lora # find sth lora for auto adjusting alpha
# peft_use_rslora: true
lora_r: 64 # 16 --> 64
lora_alpha: 64 # Change Accordingly
lora_dropout: 0.05 # 0.05
lora_target_modules:
# - q_proj
# - k_proj
# - v_proj
- o_proj
# - gate_down_proj
# - gate_up_proj
# - lm_head
# lora_target_parameters: # experts (fused nn.Parameter) via parameter-LoRA --> lora_dropout: 0
# - expert_pool.gate_up_proj
# - expert_pool.down_proj
# ddp_find_unused_parameters: true
lora_modules_to_save:
- gate # matches every layer's mlp.gate (weight + bias), full-trainable router
# - model.layers.*.mlp.gate.weight
# - model.layers.*.mlp.gate.bias
# - model.expert_pool.gate_up_proj
# - model.expert_pool.down_proj
# Router-only training.
# Your custom model uses names like:
# model.layers.0.mlp.gate.weight
# model.layers.1.mlp.gate.weight
# This freezes everything except router/gate weights.
# unfrozen_parameters:
# - "^model.layers.[0-9]+.mlp.gate.weight$"
# - "^model.layers.[0-9]+.mlp.gate.bias$"
# ─── Training ─────────────────────────────────────────────────────────────────
# Training
bf16: true
fp16: false
tf32: true
# gpu * micro_batch_size * gradient_accumulation_steps = 4*2*16 = 128
# 4*2*16 = 128
# 2*2*32 = 128
# 1*2*64 = 128
# 4*1*32 = 128
# last run: 4gpus*8*8=256
micro_batch_size: 8
gradient_accumulation_steps: 16 # 16
num_epochs: 1
# Required when streaming pretraining datasets
max_steps: 3000
learning_rate: 1.0e-4 # 1.0e-4
lr_scheduler: cosine
warmup_steps: 100
# optimizer: adamw_torch
optimizer: adamw_torch_fused # fastest; switch to paged_adamw_8bit if OOM
gradient_checkpointing: false
gradient_checkpointing_kwargs:
use_reentrant: false
# Useful because almost all params are frozen
layer_offloading: false
# dataloader_num_workers: 8
# dataloader_prefetch_factor: 8
logging_steps: 10
save_steps: 500
save_total_limit: 2
save_strategy: steps
eval_strategy: steps
load_best_model_at_end: true
metric_for_best_model: eval_loss
greater_is_better: false
# Keep this false unless you know your custom model supports cache during training
use_cache: false
# Common downstream evals, close to OLMoE/OLMES set
# plugins:
# - axolotl.integrations.lm_eval.LMEvalPlugin
# lm_eval_tasks:
# - mmlu
# - hellaswag
# - arc_easy
# - arc_challenge
# - boolq
# - openbookqa
# - piqa
# - sciq
# - winogrande
# - social_iqa
# lm_eval_batch_size: 8
# lm_eval_model: hf
# lm_eval_model_args:
# pretrained: ./outputs/almo-olmoe-router-only
# trust_remote_code: true
# ─── Dataset ──────────────────────────────────────────────────────────────────
# Raw LM continued pretraining
dataset_prepared_path: /data2/mohsenfayyaz/projects/ALMo/ALMo/src/sft/artifacts/prepared_datasets/dolma-v1_7-3B
datasets:
- path: emozilla/dolma-v1_7-3B
type: completion
text_column: text
split: train
# pretraining_dataset:
# - path: emozilla/dolma-v1_7-3B
# type: pretrain
# text_column: text
# split: train
# streaming: false
###### Eval during training: LM loss / perplexity proxy
# Not "exact OLMoE Paloma" unless you convert OLMo .npy eval files.
eval_sample_packing: false
eval_batch_size: 8
eval_steps: 50
test_datasets:
- path: allenai/paloma
type: completion
name: wikitext_103
text_column: text
split: val
streaming: false
# ─── Sequence ─────────────────────────────────────────────────────────────────
sequence_len: 2048 # 2048, 4096
sample_packing: true
pad_to_sequence_len: true
# ─── Liger kernels: ~25% speedup on Qwen ─────────────────────────────────────
plugins:
- axolotl.integrations.liger.LigerPlugin
# Keep liger for the speedy ops:
liger_rope: true
liger_rms_norm: true
liger_glu_activation: true
# But disable this — the fused linear CE is the one that doesn't apply during eval anyway,
# and chunked_cross_entropy is the more reliable replacement
liger_fused_linear_cross_entropy: false
chunked_cross_entropy: true
chunked_cross_entropy_num_chunks: 8
# ─── Attention: FA3 via HF kernels (no compile) ──────────────────────────────
flash_attention: true
attn_implementation: kernels-community/vllm-flash-attn3
# ─── DeepSpeed ────────────────────────────────────────────────────────────────
# deepspeed: ./deepspeed_configs/zero2_bf16.json
</details><br>
This model is a fine-tuned version of nlp-projects/almo-OLMoE-1B-7B-0924-wglobalcopy-b0-layerbalancing on the emozilla/dolma-v1_7-3B dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Ppl | Active (gib) | Allocated (gib) | Reserved (gib) |
|---|---|---|---|---|---|---|---|
| No log | 0 | 0 | 12.5394 | 279120.8443 | 17.76 | 17.76 | 20.27 |
| 8.5006 | 0.0057 | 50 | 9.7563 | 17262.5423 | 18.06 | 18.06 | 66.79 |
| 6.9997 | 0.0115 | 100 | 7.3947 | 1627.3685 | 18.06 | 18.06 | 66.98 |
| 4.6295 | 0.0172 | 150 | 4.9094 | 135.5537 | 18.06 | 18.06 | 67.07 |
| 3.9823 | 0.0229 | 200 | 4.2278 | 68.5696 | 18.06 | 18.06 | 67.08 |
| 3.7245 | 0.0286 | 250 | 3.9636 | 52.6439 | 18.06 | 18.06 | 66.97 |
| 3.5964 | 0.0344 | 300 | 3.7200 | 41.2655 | 18.06 | 18.06 | 67.43 |
| 3.4150 | 0.0401 | 350 | 3.6519 | 38.5482 | 18.06 | 18.06 | 66.84 |
| 3.3120 | 0.0458 | 400 | 3.5286 | 34.0755 | 18.06 | 18.06 | 66.89 |
| 3.2485 | 0.0515 | 450 | 3.4660 | 32.0082 | 18.06 | 18.06 | 66.96 |
| 3.1933 | 0.0573 | 500 | 3.3754 | 29.2372 | 18.06 | 18.06 | 67.02 |
| 3.1017 | 0.0630 | 550 | 3.2988 | 27.0804 | 18.06 | 18.06 | 67.04 |
| 3.0837 | 0.0687 | 600 | 3.1092 | 22.4034 | 18.06 | 18.06 | 66.96 |
| 3.0223 | 0.0745 | 650 | 3.0566 | 21.2553 | 18.06 | 18.06 | 67.07 |
| 2.9663 | 0.0802 | 700 | 3.0248 | 20.5896 | 18.06 | 18.06 | 67.04 |
| 2.9866 | 0.0859 | 750 | 2.9982 | 20.0495 | 18.06 | 18.06 | 67.06 |
| 2.9883 | 0.0916 | 800 | 2.9733 | 19.5562 | 18.06 | 18.06 | 67.03 |
| 2.9316 | 0.0974 | 850 | 2.9503 | 19.1110 | 18.06 | 18.06 | 66.99 |
| 2.9312 | 0.1031 | 900 | 2.9299 | 18.7256 | 18.06 | 18.06 | 67.04 |
| 2.9225 | 0.1088 | 950 | 2.9155 | 18.4575 | 18.06 | 18.06 | 67.14 |
| 2.8869 | 0.1145 | 1000 | 2.8985 | 18.1472 | 18.06 | 18.06 | 67.0 |
| 2.9137 | 0.1203 | 1050 | 2.8878 | 17.9533 | 18.06 | 18.06 | 64.08 |
| 2.8990 | 0.1260 | 1100 | 2.8750 | 17.7255 | 18.06 | 18.06 | 67.06 |
| 2.8880 | 0.1317 | 1150 | 2.8687 | 17.6141 | 18.06 | 18.06 | 66.99 |
| 2.9184 | 0.1375 | 1200 | 2.8594 | 17.4517 | 18.06 | 18.06 | 64.14 |
| 2.8792 | 0.1432 | 1250 | 2.8536 | 17.3505 | 18.06 | 18.06 | 67.11 |
| 2.8985 | 0.1489 | 1300 | 2.8469 | 17.2342 | 18.06 | 18.06 | 64.1 |
| 2.8885 | 0.1546 | 1350 | 2.8410 | 17.1330 | 18.06 | 18.06 | 66.92 |
| 2.8739 | 0.1604 | 1400 | 2.8331 | 16.9984 | 18.06 | 18.06 | 64.05 |
| 2.8735 | 0.1661 | 1450 | 2.8294 | 16.9355 | 18.06 | 18.06 | 64.12 |
| 2.8838 | 0.1718 | 1500 | 2.8232 | 16.8300 | 18.06 | 18.06 | 64.1 |
| 2.8529 | 0.1775 | 1550 | 2.8208 | 16.7899 | 18.06 | 18.06 | 64.17 |
| 2.8358 | 0.1833 | 1600 | 2.8141 | 16.6790 | 18.06 | 18.06 | 64.15 |
| 2.8075 | 0.1890 | 1650 | 2.8085 | 16.5847 | 18.06 | 18.06 | 67.06 |
| 2.7982 | 0.1947 | 1700 | 2.8048 | 16.5233 | 18.06 | 18.06 | 67.07 |
| 2.8102 | 0.2005 | 1750 | 2.8002 | 16.4473 | 18.06 | 18.06 | 67.09 |
| 2.8205 | 0.2062 | 1800 | 2.7992 | 16.4320 | 18.06 | 18.06 | 64.05 |
| 2.8176 | 0.2119 | 1850 | 2.7962 | 16.3816 | 18.06 | 18.06 | 67.03 |
| 2.8296 | 0.2176 | 1900 | 2.7922 | 16.3166 | 18.06 | 18.06 | 67.05 |
| 2.8142 | 0.2234 | 1950 | 2.7905 | 16.2898 | 18.06 | 18.06 | 64.03 |
| 2.8280 | 0.2291 | 2000 | 2.7881 | 16.2505 | 18.06 | 18.06 | 67.07 |
| 2.8275 | 0.2348 | 2050 | 2.7862 | 16.2196 | 18.06 | 18.06 | 64.02 |
| 2.7880 | 0.2405 | 2100 | 2.7841 | 16.1859 | 18.06 | 18.06 | 67.08 |
| 2.8276 | 0.2463 | 2150 | 2.7829 | 16.1652 | 18.06 | 18.06 | 67.06 |
| 2.8200 | 0.2520 | 2200 | 2.7828 | 16.1649 | 18.06 | 18.06 | 64.09 |
| 2.8145 | 0.2577 | 2250 | 2.7808 | 16.1319 | 18.06 | 18.06 | 66.95 |
| 2.8179 | 0.2635 | 2300 | 2.7801 | 16.1213 | 18.06 | 18.06 | 64.05 |
| 2.8100 | 0.2692 | 2350 | 2.7786 | 16.0965 | 18.06 | 18.06 | 67.2 |
| 2.8105 | 0.2749 | 2400 | 2.7784 | 16.0933 | 18.06 | 18.06 | 67.05 |
| 2.8272 | 0.2806 | 2450 | 2.7778 | 16.0836 | 18.06 | 18.06 | 64.07 |
| 2.7963 | 0.2864 | 2500 | 2.7773 | 16.0751 | 18.06 | 18.06 | 67.01 |
| 2.7692 | 0.2921 | 2550 | 2.7769 | 16.0688 | 18.06 | 18.06 | 64.1 |
| 2.7974 | 0.2978 | 2600 | 2.7767 | 16.0658 | 18.06 | 18.06 | 66.94 |
| 2.7981 | 0.3035 | 2650 | 2.7762 | 16.0575 | 18.06 | 18.06 | 64.02 |
| 2.7966 | 0.3093 | 2700 | 2.7757 | 16.0504 | 18.06 | 18.06 | 66.99 |
| 2.8119 | 0.3150 | 2750 | 2.7758 | 16.0521 | 18.06 | 18.06 | 67.14 |
| 2.7949 | 0.3207 | 2800 | 2.7754 | 16.0455 | 18.06 | 18.06 | 64.03 |
| 2.7775 | 0.3265 | 2850 | 2.7756 | 16.0475 | 18.06 | 18.06 | 66.95 |
| 2.7781 | 0.3322 | 2900 | 2.7757 | 16.0491 | 18.06 | 18.06 | 64.16 |
| 2.8153 | 0.3379 | 2950 | 2.7753 | 16.0430 | 18.06 | 18.06 | 64.05 |
| 2.8054 | 0.3436 | 3000 | 2.7755 | 16.0473 | 18.06 | 18.06 | 64.08 |