Views
No views yet
Qwen/Qwen2.5-7B-Instruct to draft email replies in the voice of Priya Sharma, a (fictional) Senior Customer Success Manager at a synthetic SaaS company. Built as part of Project Recall — an experiment in capturing a departing employee's "institutional memory" as a draft-only AI assistant.The persona is fictional. All training data is synthetic. Nothing in this adapter encodes real person, customer, or company information.
kader-xai/priya-qwen2.5-7b-ggufkader-xai/priya-sft1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base = AutoModelForCausalLM.from_pretrained(
5 "Qwen/Qwen2.5-7B-Instruct", torch_dtype="auto", device_map="auto"
6)
7model = PeftModel.from_pretrained(base, "kader-xai/priya-qwen2.5-7b-lora")
8tokenizer = AutoTokenizer.from_pretrained("kader-xai/priya-qwen2.5-7b-lora")
9
10system_prompt = open("system_prompt_priya.txt").read() # from the dataset repo
11messages = [
12 {"role": "system", "content": system_prompt},
13 {"role": "user", "content": "Customer asking when the v2 dashboard ships. Draft a reply."},
14]
15inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
16out = model.generate(inputs, max_new_tokens=400, temperature=0.4, top_p=0.9)
17print(tokenizer.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))kader-xai/priya-sft. See the training article for the retrieval + prompt-composition pattern.| Base model | Qwen/Qwen2.5-7B-Instruct (loaded as unsloth/Qwen2.5-7B-Instruct-bnb-4bit) |
| Method | LoRA via PEFT + TRL SFTTrainer, accelerated with Unsloth |
| LoRA rank / alpha | 16 / 32 |
| LoRA dropout | 0.05 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Max seq length | 4096 |
| Epochs | 3 |
| Effective batch | 16 (4 × grad-accum 4) |
| Learning rate | 2e-4, cosine, warmup 0.03 |
| Precision | 4-bit base + bf16 adapter |
| Hardware | 1× A100 40GB |
| Dataset | 1,223 train / 64 eval SFT pairs (kader-xai/priya-sft) |
| Metric | Value |
|---|---|
| Style cosine (BGE) vs held-out replies | 0.735 |
| History keyword recall (RAG-grounded) | 0.30 on bulk corpus, 1.0 on hand-written storyline questions |