CoolFace
Modelpublic

AiAF/Finetuned-SCPWiki-032025-7B-Instruct

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes6downloads
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.4.1

yaml
base_model: mistralai/Mistral-7B-Instruct-v0.3
# optionally might have model_type or tokenizer_type
model_type: MistralForCausalLM
tokenizer_type: LlamaTokenizer
# Automatically upload checkpoint and final model to HF
hub_model_id: AiAF/Finetuned-SCPWiki-032025-7B-Instruct

load_in_8bit: false
load_in_4bit: true
strict: false

datasets:
  - path: AiAF/Finetuning-SCPWiki-032025-7B-Instruct-plain_qa_list
    ds_type: json
    type: chat_template
    chat_template: chatml
    field_messages: conversations
    message_field_role: from
    message_field_content: value
    roles:
      user:
        - human
      assistant:
        - gpt
      system:
        - system
        
dataset_prepared_path: last_run_prepared
val_set_size: 0.1
output_dir: ./outputs/qlora-out/Finetuned-SCPWiki-032025-7B-Instruct-V1

adapter: qlora
lora_model_dir:

sequence_len: 1024
sample_packing: true
pad_to_sequence_len: true

lora_r: 16
lora_alpha: 32
lora_dropout: 0.05
lora_target_linear: true
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-Finetuning"
wandb_entity:
wandb_watch: "all"
wandb_name: "Finetuned-SCPWiki-032025-7B-Instruct-V1"
wandb_log_model: "false"

gradient_accumulation_steps: 4
micro_batch_size: 2
num_epochs: 4
optimizer: adamw_bnb_8bit
lr_scheduler: cosine
learning_rate: 0.000005

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: 5
eval_table_size:
eval_max_new_tokens: 128
saves_per_epoch: 5
debug:
deepspeed: deepspeed_configs/zero2.json
weight_decay: 0.0
fsdp:
fsdp_config:
special_tokens:

</details><br>

Finetuned-SCPWiki-032025-7B-Instruct

This model is a fine-tuned version of mistralai/Mistral-7B-Instruct-v0.3 on the None dataset. It achieves the following results on the evaluation set:

  • —Loss: 1.2898

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: 5e-06
  • —trainbatchsize: 2
  • —evalbatchsize: 2
  • —seed: 42
  • —distributed_type: multi-GPU
  • —num_devices: 4
  • —gradientaccumulationsteps: 4
  • —totaltrainbatch_size: 32
  • —totalevalbatch_size: 8
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: cosine
  • —lrschedulerwarmup_steps: 10
  • —num_epochs: 4

Training results

Training LossEpochStepValidation Loss
1.34360.030111.3905
1.3580.210571.3875
1.20510.4211141.3651
1.38020.6316211.3418
1.2660.8421281.3300
1.2871.0526351.3222
1.22261.2632421.3141
1.16211.4737491.3074
1.41561.6842561.3021
1.32511.8947631.2985
1.09812.1053701.2956
1.36382.3158771.2936
1.10332.5263841.2923
1.22482.7368911.2911
1.26872.9474981.2903
1.1863.15791051.2900
1.3253.36841121.2896
1.20113.57891191.2896
1.18523.78951261.2898

Framework versions

  • —PEFT 0.13.2
  • —Transformers 4.45.2
  • —Pytorch 2.3.1+cu121
  • —Datasets 3.0.1
  • —Tokenizers 0.20.1