ealvaradob/phishing-dataset
Updated • 997 • 64
How to use buDujS/gpt2-lora-phishing with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="buDujS/gpt2-lora-phishing") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("buDujS/gpt2-lora-phishing")
model = AutoModelForSequenceClassification.from_pretrained("buDujS/gpt2-lora-phishing", device_map="auto")Base model
openai-community/gpt2