Downloads · 30 days
6
7% of all-time downloads
rudycaz/qwen35-27b-phish-qlora
qwen35-27b-phish-qlora is a text generation model from rudycaz. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
This repository contains a QLoRA/LoRA adapter fine-tuned on a phishing-email dataset to help classify emails as PHISHING or LEGIT.
Downloads · 30 days
6
7% of all-time downloads
All-time downloads
81
Public
Repo size
658 MB
Likes
0
Public
Click a slice to open those files.
.safetensors638 MB · 97%
From the Hugging Face model README
This repository contains a QLoRA/LoRA adapter fine-tuned on a phishing-email dataset to help classify emails as PHISHING or LEGIT.
This repo does not include the full base model weights. You must download the base model separately and load this adapter on top.
Qwen/Qwen3.5-27Bnaserabdullahalam/phishing-email-datasetGiven an email body, the intended behavior is to output exactly one label:
PHISHINGLEGITpip install -U "transformers" "peft" "accelerate" "bitsandbytes" "torch"
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
BASE_ID = "Qwen/Qwen3.5-27B"
ADAPTER_ID = "rudycaz/qwen35-27b-phish-qlora" # this repo
tok = AutoTokenizer.from_pretrained(BASE_ID, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
BASE_ID,
device_map="auto",
torch_dtype=torch.bfloat16,
trust_remote_code=True,
)
model = PeftModel.from_pretrained(model, ADAPTER_ID)
email_text = """Subject: Urgent! Verify your account
..."""
prompt = (
"You are a security assistant. Classify the following email as PHISHING or LEGIT.\n\n"
f"EMAIL:\n{email_text}\n\n"
"Answer with exactly one word: PHISHING or LEGIT."
)
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=4)
print(tok.decode(out[0], skip_special_tokens=True))