Views
No views yet
Note: This repository contains LoRA adapter weights only. The base model must be loaded separately.
| Phase | Data | Samples | Epochs | LR | Purpose |
|---|---|---|---|---|---|
| 1 | Original | 3,702 | 3 | 2e-04 | Foundation with high-quality data |
| 2 | Original + Synthetic | 4,824 | 2 | 7e-05 | Generalization via diverse scenarios |
| 3 | All (+ Distillation) | 5,424 | 1 | 1e-06 | Reasoning enhancement via distillation |
| Parameter | Value |
|---|---|
| Base model | Qwen/Qwen2.5-7B-Instruct |
| Method | QLoRA (base + FP16 LoRA) |
| LoRA R / Alpha | 64 / 128 |
| RSLoRA | Enabled |
| Max seq length | 8192 |
| Optimizer | adamw_8bit |
| Gradient clip | 1.0 |
| LR scheduler | Cosine with warmup |
| Phase | Final Train Loss | Time |
|---|---|---|
| Phase 1 (Foundation) | 0.3189 | 1.2h |
| Phase 2 (Generalization) | 0.0992 | 1.9h |
| Phase 3 (Reasoning) | 0.0626 | 1.3h |
| Total | 4.4h |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3import torch
4
5base = "Qwen/Qwen2.5-7B-Instruct"
6adapter = "tomoniyukiwo/qwen25_7b_agentbench_lora"
7
8tokenizer = AutoTokenizer.from_pretrained(base)
9model = AutoModelForCausalLM.from_pretrained(
10 base,
11 torch_dtype=torch.float16,
12 device_map="auto",
13)
14model = PeftModel.from_pretrained(model, adapter)1from unsloth import FastLanguageModel
2
3model, tokenizer = FastLanguageModel.from_pretrained(
4 model_name="tomoniyukiwo/qwen25_7b_agentbench_lora",
5 max_seq_length=8192,
6 load_in_4bit=True,
7)
8FastLanguageModel.for_inference(model)