Instructions to use rudycaz/phi35-phish-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use rudycaz/phi35-phish-mlx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("rudycaz/phi35-phish-mlx") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - PEFT
How to use rudycaz/phi35-phish-mlx with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use rudycaz/phi35-phish-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "rudycaz/phi35-phish-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "rudycaz/phi35-phish-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rudycaz/phi35-phish-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }'
phi35-phish-mlx
This repository contains an Apple MLX-format phishing-focused model derived from Phi-3.5 Mini Instruct (4-bit). It is intended to help classify suspicious emails and support security review workflows.
What’s in this repo
This repo is meant to be used in one of these ways:
- Fused model (base + adapter merged into a single MLX model directory), OR
- Adapter-only (LoRA adapter weights) to be applied on top of the base model locally
If you are unsure which you uploaded, check the repo file list:
- Fused model typically includes MLX weights + tokenizer/config files for direct inference.
- Adapter-only typically includes adapter weight files/config and requires the base model separately.
Base model
mlx-community/Phi-3.5-mini-instruct-4bit
Dataset
This model was fine-tuned for phishing detection using a Kaggle phishing email dataset:
- Kaggle dataset: “phishing-email-dataset” (naserabdullahalam)
https://www.kaggle.com/datasets/naserabdullahalam/phishing-email-dataset
If you trained Phi-3.5 on a different Kaggle dataset, replace the link above with the exact dataset URL you used so the citation is accurate.
Intended behavior
Given an email, the intended output is a single label:
PHISHINGLEGIT
Example prompt format:
You are a security assistant. Classify the following email as PHISHING or LEGIT.
EMAIL:
<paste email here>
Answer with exactly one word: PHISHING or LEGIT.
pip install -U mlx-lm huggingface_hub
from mlx_lm import load, generate
# Option A: load this repo directly (if fused model is uploaded)
MODEL_ID = "rudycaz/phi35-phish-mlx"
model, tokenizer = load(MODEL_ID)
prompt = """You are a security assistant. Classify the following email as PHISHING or LEGIT.
EMAIL:
Subject: Verify your account
Body: Please click the link below to verify...
Answer with exactly one word: PHISHING or LEGIT.
"""
print(generate(model, tokenizer, prompt, max_tokens=8))
- Downloads last month
- 6
4-bit
Model tree for rudycaz/phi35-phish-mlx
Base model
mlx-community/Phi-3.5-mini-instruct-4bit