shenghuanjiuer/sft-train
Viewer โข Updated โข 326 โข 7
How to use shenghuanjiuer/fr-lora with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct")
model = PeftModel.from_pretrained(base_model, "shenghuanjiuer/fr-lora")axolotl version: 0.11.0.dev0
adapter: lora
base_model: Qwen/Qwen2.5-7B-Instruct
bf16: false
chat_template: chatml
dataset_prepared_path: last_run_prepared
datasets:
- field_messages: messages
path: shenghuanjiuer/sft-train
type: chat_template
eval_sample_packing: true
evals_per_epoch: 4
flash_attention: true
fp16: true
gradient_accumulation_steps: 2
gradient_checkpointing: true
group_by_length: false
hub_model_id: shenghuanjiuer/fr-lora
learning_rate: 0.0002
load_in_4bit: false
load_in_8bit: true
logging_steps: 1
lora_alpha: 32
lora_dropout: 0.05
lora_r: 16
lora_target_modules:
- gate_proj
- down_proj
- up_proj
- q_proj
- v_proj
- k_proj
- o_proj
loss_watchdog_patience: 3
loss_watchdog_threshold: 5
lr_scheduler: cosine
micro_batch_size: 1
num_epochs: 6
optimizer: adamw_8bit
output_dir: /runpod-volume/fine-tuning/test-run
pad_to_sequence_len: true
push_to_hub: true
run_name: test-run
runpod_job_id: da89ac2d-7df2-469f-819c-e5dca7a3ecb7-e2
sample_packing: true
saves_per_epoch: 1
sequence_len: 2048
special_tokens:
pad_token: <|end_of_text|>
strict: false
tf32: false
train_on_inputs: false
val_set_size: 0.1
warmup_steps: 10
weight_decay: 0
This model is a fine-tuned version of Qwen/Qwen2.5-7B-Instruct on the shenghuanjiuer/sft-train 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 |
|---|---|---|---|
| No log | 0 | 0 | 7.8256 |
| 7.8065 | 0.2857 | 4 | 5.6124 |