Downloads · 30 days
19
10% of all-time downloads
joohans/mistral-7b-phishing-ko
mistral-7b-phishing-ko is a machine learning model from joohans. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as mit.
한국어 피싱 이메일 탐지를 위해 Mistral-7B-Instruct-v0.3를 LoRA 파인튜닝한 모델입니다.
Downloads · 30 days
19
10% of all-time downloads
All-time downloads
188
Public
Repo size
4.4 GB
Likes
0
Public
Click a slice to open those files.
.gguf4.4 GB · 99%
From the Hugging Face model README
한국어 피싱 이메일 탐지를 위해 Mistral-7B-Instruct-v0.3를 LoRA 파인튜닝한 모델입니다.
NIPA 2026 오픈소스 AI·SW 활용 지원사업 (CAiON SecOps) PoC 산출물로, 실제 보안 운영 환경(ISMS 인증 기업)에서 수집한 데이터로 학습하고 검증했습니다.
피싱 이메일을 입력하면 실시간으로 분류 → 위협 분석 → 에이전틱 조치 제안까지 확인할 수 있습니다.
| 지표 | 파인튜닝 전 | 파인튜닝 후 |
|---|---|---|
| 정확도 | 57.7% | 100% |
| 오탐율 (FPR) | 98.2% | 0% |
| 추론 속도 (H100) | — | 238.7 samples/sec |
| 학습 시간 (QLoRA) | — | 8.2분 |
PoC 230건 기준 수치이며, 본 과제에서 5,000건 이상으로 확대 검증 예정입니다.
| 파일 | 설명 | 용도 |
|---|---|---|
adapter_model.safetensors | LoRA 어댑터 가중치 | GPU 서버 (peft + transformers) |
mistral-7b-phishing-ko-Q4_K_M.gguf | GGUF Q4_K_M 양자화 | CPU 추론 (ctransformers) |
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained(
"mistralai/Mistral-7B-Instruct-v0.3",
load_in_4bit=True,
device_map="auto",
)
model = PeftModel.from_pretrained(base, "joohans/mistral-7b-phishing-ko")
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
prompt = "[INST] 다음 이메일이 피싱인지 판단하세요.\n\n{email_text} [/INST]"
from huggingface_hub import hf_hub_download
from ctransformers import AutoModelForCausalLM
gguf_path = hf_hub_download(
repo_id="joohans/mistral-7b-phishing-ko",
filename="mistral-7b-phishing-ko-Q4_K_M.gguf",
)
llm = AutoModelForCausalLM.from_pretrained(
gguf_path, model_type="mistral",
context_length=2048, threads=4,
)
| 항목 | 내용 |
|---|---|
| 베이스 모델 | mistralai/Mistral-7B-Instruct-v0.3 |
| 학습 방법 | QLoRA (4-bit + LoRA r=16, alpha=32) |
| 학습 데이터 | 한국어 피싱 이메일 + 정상 이메일 (공개 코퍼스 + 내부 수집) |
| 학습 하드웨어 | NVIDIA H100 NVL 96GB |
| 학습 시간 | 8.2분 |
| LoRA 대상 레이어 | q_proj, v_proj, k_proj, o_proj |
일반적인 피싱 탐지 모델은 영어 데이터 위주로 학습되어 한국어 피싱 메일의 특성을 반영하지 못합니다.
이 모델은 다음을 고려하여 학습했습니다:
전체 학습 스크립트 및 평가 코드: 👉 github.com/jsong1230/caion-secops-poc
MIT License — 상업적 사용 포함 자유롭게 활용 가능합니다.
CPLabs (주식회사 씨피랩스) — NIPA 2026 오픈소스 AI·SW 활용 지원사업