Views
No views yet
qlora-v2 LoRA adapter trained on top of Qwen/Qwen2.5-7B-Instruct for a Turkish clinic appointment assistant with tool-calling behavior.Qwen/Qwen2.5-7B-Instructqlora-v2 setup:100.0%97.0%91.0%91.0%100.0%1import torch
2from peft import PeftModel
3from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
4
5model_name = "Qwen/Qwen2.5-7B-Instruct"
6adapter_name = "Hikmet58/tr-appointment-qlora-v2-adapter"
7
8quant = BitsAndBytesConfig(
9 load_in_4bit=True,
10 bnb_4bit_quant_type="nf4",
11 bnb_4bit_compute_dtype=torch.bfloat16,
12)
13
14tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
15model = AutoModelForCausalLM.from_pretrained(
16 model_name,
17 quantization_config=quant,
18 device_map="auto",
19 trust_remote_code=True,
20)
21model = PeftModel.from_pretrained(model, adapter_name)
22model.eval()Hikmet58/tr-appointment-qlora-dataset