from peft import PeftModelfrom transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfigimport torch base = AutoModelForCausalLM.from_pretrained( "Qwen/Qwen3-1.7B", quantization_config=BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4", bnb_4bit_compute_dtype=torch.bfloat16), device_map="auto")model = PeftModel.from_pretrained(base, "gabeldev/deliverytwin-investigator-qwen3-1.7b-lora")tok = AutoTokenizer.from_pretrained("Qwen/Qwen3-1.7B")# Use apply_chat_template(..., tools=..., enable_thinking=False) with the DeliveryTwin# system prompt and tool schemas: deliverytwin/agent/llm_agent.py in the GitHub repo.# Full evaluation: scripts/run_g3.py --agent local --adapter <path> (see the repo README).