QLoRA fine-tuned adapter that teaches Qwen2.5-3B-Instruct multi-step agent reasoning using the ReAct (Thought → Action → Observation → Answer) framework.
| Metric | Zero-Shot | Fine-Tuned | Improvement |
|---|---|---|---|
| Task Success Rate | 93.3% | 100% | +6.7% |
| Tool Selection Accuracy | 30.0% | 100% | +70.0% |
| Exact Tool Match | 30.0% | 100% | +70.0% |
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct")
model = PeftModel.from_pretrained(base_model, "Cheng-1/agenttune-qwen2.5-3b-react-lora")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-3B-Instruct")
adapter_model.safetensors 120 MBtraining_args.bin 5.3 kBQwen/Qwen2.5-3B-Instruct