CoolFace
Modelpublic

dougiefresh/jade_qwen_4b_knowledge_merged_adapter

sourceHugging Faceapache-2.0updated 1y 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.9.2

yaml
adapter: lora
base_model: Qwen/Qwen3-4B
bf16: true  # You can safely force bf16 since your GPU supports it

# Dataset & Data Loading
dataset_processes: 32
chat_template: chatml
datasets:
- message_property_mappings:
    content: content
    role: role
  path: dougiefresh/jade_merged
  train_split: train
  valid_split: valid
  trust_remote_code: false
  type: chat_template

# Training Efficiency
micro_batch_size: 4
gradient_accumulation_steps: 2
gradient_checkpointing: true

# LoRA Settings
lora_alpha: 64
lora_dropout: 0.05
lora_r: 64
lora_target_modules:
- q_proj
- v_proj
- k_proj
- o_proj
- gate_proj
- down_proj
- up_proj

# Optimization
learning_rate: 0.00003  # Lower LR for slower, more stable convergence
lr_scheduler: cosine
warmup_ratio: 0.1  # Introduce a warmup period for smoother startup
optimizer: adamw_torch_fused

# Sequence Length & Packing
sequence_len: 32768
max_prompt_len: 32768
sample_packing_bin_size: 256
sample_packing_group_size: 200000

# Saving & Evaluation
num_epochs: 3.0
output_dir: ./outputs/mymodel
save_only_model: false
save_safetensors: true
val_set_size: 0.05
eval_steps: 250  # More frequent evaluation to catch overfitting early
load_best_model_at_end: true

# Training Behavior
train_on_inputs: false
shuffle_merged_datasets: true
skip_prepare_dataset: false
auto_resume_from_checkpoints: true
weight_decay: 0.01

# Advanced
pretrain_multipack_attn: true
pretrain_multipack_buffer_size: 10000
qlora_sharded_model_loading: false
mean_resizing_embeddings: false
strict: false

# TRL
trl:
  log_completions: false
  ref_model_mixup_alpha: 0.9
  ref_model_sync_steps: 64
  sync_ref_model: false
  use_vllm: false

# Hardware
load_in_4bit: false
load_in_8bit: false
use_ray: false
ray_num_workers: 1
resources_per_worker:
  GPU: 1

use_tensorboard: true
logging_dir: ./outputs/tensorboard
logging_first_step: true
logging_steps: 10

</details><br>

outputs/mymodel

This model is a fine-tuned version of Qwen/Qwen3-4B on the dougiefresh/jade_merged dataset. It achieves the following results on the evaluation set:

  • Loss: 0.6294

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: 3e-05
  • trainbatchsize: 4
  • evalbatchsize: 4
  • seed: 42
  • gradientaccumulationsteps: 2
  • totaltrainbatch_size: 8
  • optimizer: Use OptimizerNames.ADAMWTORCHFUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • lrschedulertype: cosine
  • lrschedulerwarmup_steps: 1222
  • num_epochs: 3.0

Training results

Training LossEpochStepValidation Loss
No log0.000210.9643
0.71890.06142500.7495
0.74750.12275000.7097
0.72080.18417500.6904
0.64740.245510000.6796
0.61030.306812500.6720
0.66210.368215000.6658
0.67690.429617500.6618
0.67050.490920000.6595
0.66960.552322500.6561
0.5860.613625000.6535
0.63360.675027500.6516
0.58060.736430000.6496
0.59840.797732500.6477
0.64740.859135000.6458
0.58570.920537500.6446
0.59590.981840000.6430
0.58111.043242500.6426
0.57781.104645000.6411
0.54941.165947500.6411
0.64491.227350000.6399
0.58131.288752500.6390
0.61061.350055000.6376
0.64751.411457500.6369
0.63891.472860000.6364
0.60921.534162500.6353
0.60291.595565000.6347
0.58851.656867500.6337
0.62371.718270000.6330
0.55551.779672500.6322
0.58681.840975000.6315
0.57051.902377500.6309
0.59691.963780000.6307
0.59462.025082500.6311
0.62572.086485000.6309
0.59592.147887500.6307
0.65042.209190000.6306
0.59732.270592500.6306
0.58512.331995000.6304
0.57132.393297500.6300
0.59252.4546100000.6299
0.5562.5160102500.6298
0.59462.5773105000.6297
0.57492.6387107500.6295
0.59282.7000110000.6295
0.55462.7614112500.6295
0.53882.8228115000.6294
0.52852.8841117500.6294
0.58062.9455120000.6294

Framework versions

  • PEFT 0.15.2
  • Transformers 4.51.3
  • Pytorch 2.6.0+cu124
  • Datasets 3.5.1
  • Tokenizers 0.21.1