This is a
ReAct (Reasoning + Acting) fine-tuned version of Qwen2.5-7B-Instruct using QLoRA on a single RTX 4070 SUPER (12GB).
The model is trained to follow the ReAct paradigm: Thought → Action → Observation → Final Answer. After training, the model stops after outputting an Action and waits for real tool results, rather than hallucinating fake observations. When tools return errors, it can switch strategies.
1from unsloth import FastLanguageModel
2from peft import PeftModel
3
4model, tokenizer = FastLanguageModel.from_pretrained(
5 "unsloth/Qwen2.5-7B-Instruct-bnb-4bit",
6 max_seq_length=2048, dtype=None, load_in_4bit=True,
7)
8model = PeftModel.from_pretrained(
9 model, "Yuh4ng/react-qwen2.5-7b-qlora-4070s"
10)
11FastLanguageModel.for_inference(model)