CoolFace
Modelpublic

AiAF/Pretrained-Adapter-SCP-1B-QLoRA

sourceHugging Facellama3.2updated 2y agoView on Hugging Face
0likes13downloads
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. -->

<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/> <details><summary>See axolotl config</summary>

axolotl version: 0.8.0.dev0

yaml
base_model: meta-llama/Llama-3.2-1B-Instruct
# Automatically upload checkpoint and final model to HF
hub_model_id: AiAF/Pretrained-SCP-1B-QLoRA

load_in_8bit: false
load_in_4bit: true
strict: false

datasets:
  - path: pretraining.jsonl
    type: completion
dataset_prepared_path: last_run_prepared
val_set_size: 0.1
output_dir: ./outputs/qlora-out/Pretrained-SCP-1B-QLoRA

adapter: qlora
lora_model_dir:

sequence_len: 2048
sample_packing: true
eval_sample_packing: true
pad_to_sequence_len: true

lora_r: 32
lora_alpha: 16
lora_dropout: 0.05
lora_fan_in_fan_out:
lora_target_modules:
  - gate_proj
  - down_proj
  - up_proj
  - q_proj
  - v_proj
  - k_proj
  - o_proj

wandb_project: "LLM-Pretraining"
wandb_entity:
wandb_watch: "all"
wandb_name: "Pretrained-SCP-7B-Instruct"
wandb_log_model: "false"

gradient_accumulation_steps: 3
micro_batch_size: 10
num_epochs: 1
optimizer: adamw_bnb_8bit
lr_scheduler: cosine
learning_rate: 0.0002

train_on_inputs: false
group_by_length: false
bf16: auto
fp16:
tf32: false

gradient_checkpointing: true
early_stopping_patience:
resume_from_checkpoint:
local_rank:
logging_steps: 1
xformers_attention:
flash_attention: true

loss_watchdog_threshold: 5.0
loss_watchdog_patience: 3

warmup_steps: 10
evals_per_epoch: 50
eval_table_size:
eval_max_new_tokens: 128
saves_per_epoch: 10
debug:
deepspeed:
weight_decay: 0.0
fsdp:
fsdp_config:
special_tokens:
  pad_token: "<|end_of_text|>"

</details><br>

Pretrained-SCP-1B-QLoRA

This model is a fine-tuned version of meta-llama/Llama-3.2-1B-Instruct on the pretraining.jsonl dataset. It achieves the following results on the evaluation set:

  • —Loss: 2.2062

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: 0.0002
  • —trainbatchsize: 10
  • —evalbatchsize: 10
  • —seed: 42
  • —gradientaccumulationsteps: 3
  • —totaltrainbatch_size: 30
  • —optimizer: Use OptimizerNames.ADAMWBNB with betas=(0.9,0.999) and epsilon=1e-08 and optimizerargs=No additional optimizer arguments
  • —lrschedulertype: cosine
  • —lrschedulerwarmup_steps: 10
  • —num_epochs: 1.0

Training results

Training LossEpochStepValidation Loss
3.08410.002013.0001
2.82760.0215112.8296
2.39770.0431222.5255
2.28560.0646332.4384
2.37350.0862442.4082
2.36450.1077552.3861
2.14250.1292662.3694
2.15410.1508772.3545
2.28480.1723882.3410
2.23340.1939992.3310
2.12780.21541102.3213
2.1590.23691212.3112
2.14070.25851322.3006
1.98510.28001432.2915
2.03190.30161542.2839
2.23730.32311652.2755
2.14880.34461762.2684
2.02180.36621872.2612
1.92560.38771982.2552
2.01790.40932092.2486
2.07680.43082202.2448
2.10680.45232312.2408
2.13430.47392422.2356
2.22120.49542532.2342
2.04420.51702642.2302
2.08050.53852752.2256
1.96950.56012862.2230
1.85590.58162972.2206
2.09970.60313082.2185
2.01680.62473192.2164
1.93040.64623302.2148
1.93130.66783412.2132
2.17080.68933522.2119
2.05960.71083632.2109
2.19440.73243742.2099
2.00980.75393852.2094
2.03440.77553962.2087
2.16580.79704072.2080
2.11880.81854182.2078
1.8790.84014292.2072
1.96520.86164402.2068
2.04290.88324512.2066
2.30380.90474622.2064
2.1530.92624732.2063
2.05430.94784842.2062
2.00930.96934952.2062
2.24370.99095062.2062

Framework versions

  • —PEFT 0.14.0
  • —Transformers 4.49.0
  • —Pytorch 2.5.1+cu124
  • —Datasets 3.2.0
  • —Tokenizers 0.21.0