CoolFace
Modelpublic

nguyenthanhdo/ViMath-CodeQwen1.5-7B-LORA

sourceHugging Faceotherupdated 2y agoView on Hugging Face
0likes3downloads
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/OpenAccess-AI-Collective/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: Qwen/CodeQwen1.5-7B-Chat
model_type: AutoModelForCausalLM
tokenizer_type: AutoTokenizer

load_in_8bit: false
load_in_4bit: false
strict: false
 
datasets:
  - path: /workspace/axolotl/vinh/PAL/input_output_qwen.json
    type: input_output
  - path: /workspace/axolotl/vinh/INSTRUCT/input_output_qwen.json
    type: input_output
dataset_prepared_path:
val_set_size: 0.05
eval_sample_packing: false
output_dir: /workspace/axolotl/vinh/Qwen_CodeQwen1.5-7B-Chat-lora-2024-07-01-02-04-03

sequence_len: 2048
sample_packing: false
pad_to_sequence_len: false

adapter: lora
lora_model_dir: 
lora_r: 64
lora_alpha: 128
lora_dropout: 0.05
lora_target_linear: true
lora_fan_in_fan_out:

wandb_project:
wandb_entity:
wandb_watch:
wandb_name:
wandb_log_model:

gradient_accumulation_steps: 128
micro_batch_size: 1
num_epochs: 3
optimizer: paged_adamw_32bit
lr_scheduler: cosine
learning_rate: 2e-4

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

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

loss_watchdog_threshold: 5.0
loss_watchdog_patience: 3

warmup_steps: 10
evals_per_epoch: 10
eval_table_size:
eval_max_new_tokens: 512
saves_per_epoch: 2
save_total_limit: 20
debug:
deepspeed:
weight_decay: 0.0
fsdp:
fsdp_config:

</details><br>

workspace/axolotl/vinh/Qwen_CodeQwen1.5-7B-Chat-lora-2024-07-01-02-04-03

This model is a fine-tuned version of Qwen/CodeQwen1.5-7B-Chat on the None dataset. It achieves the following results on the evaluation set:

  • Loss: 0.1189

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: 1
  • evalbatchsize: 1
  • seed: 42
  • gradientaccumulationsteps: 128
  • totaltrainbatch_size: 128
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: cosine
  • lrschedulerwarmup_steps: 10
  • num_epochs: 3

Training results

Training LossEpochStepValidation Loss
0.64970.006310.5999
0.22520.1011160.2502
0.20240.2023320.2020
0.15810.3034480.1804
0.19120.4045640.1682
0.16920.5056800.1580
0.14010.6068960.1516
0.12040.70791120.1463
0.13360.80901280.1420
0.13390.91011440.1380
0.1011.01131600.1346
0.08711.11241760.1330
0.10351.21351920.1320
0.10251.31462080.1300
0.09361.41582240.1263
0.07971.51692400.1241
0.10141.61802560.1220
0.09841.71912720.1196
0.10781.82032880.1184
0.08031.92143040.1171
0.06582.02253200.1164
0.05172.12363360.1214
0.05982.22483520.1203
0.07042.32593680.1198
0.07872.42703840.1192
0.05372.52814000.1190
0.05472.62934160.1189
0.05892.73044320.1189
0.06552.83154480.1190
0.06132.93264640.1189

Framework versions

  • PEFT 0.11.1
  • Transformers 4.41.1
  • Pytorch 2.1.2+cu118
  • Datasets 2.19.1
  • Tokenizers 0.19.1