Run this model with HF Jobs
Run Pankei/soc-narrative-sft-qwen3-14b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Pankei/soc-narrative-sft-qwen3-14b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Pankei/soc-narrative-sft-qwen3-14b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Pankei/soc-narrative-sft-qwen3-14b. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Pankei/soc-narrative-sft-qwen3-14b. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Pankei/soc-narrative-sft-qwen3-14b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Pankei/soc-narrative-sft-qwen3-14b with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-14B") model = PeftModel.from_pretrained(base_model, "Pankei/soc-narrative-sft-qwen3-14b") - Notebooks
- Google Colab
- Kaggle
SOC Narrative SFT β Qwen3-14B (Step 32)
LoRA adapter for Qwen/Qwen3-14B trained with SFT LoRA on 512 balanced user/day windows (CERT R4.2) (step 32).
Description
SOC Narrative is a framework for insider threat detection using small open-weight LLMs. A model receives a user/day window of events from the CERT Insider Threat Dataset R4.2 and must produce a structured response with:
- Risk label:
normal,suspicious, ormalicious - Evidence: cited event IDs supporting the decision
- Reasoning: brief explanation of the investigation logic
This project explores whether small LLMs (3Bβ14B) can match or exceed traditional ML baselines for UEBA (User and Entity Behavior Analytics).
Metrics (dev_balanced_50)
| Metric | Value |
|---|---|
| Accuracy | 0.74 |
| Macro F1 | 0.735 |
| Recall Malicious | 0.88 |
| Valid Format Rate | 0.68 |
| Actionability Rate | 0.68 |
Quick Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = "Qwen/Qwen3-14B"
model = AutoModelForCausalLM.from_pretrained(base, torch_dtype="auto", device_map="auto")
model = PeftModel.from_pretrained(model, "Pankei/soc-narrative-sft-qwen3-14b")
tokenizer = AutoTokenizer.from_pretrained(base)
inputs = tokenizer("<your prompt>", return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(output[0]))
Note: This is a LoRA adapter (~30β160 MB). You need the full base model (Qwen/Qwen3-14B) to load it.
Training Details
- Base model: Qwen/Qwen3-14B
- Method: SFT LoRA
- Train data: 512 balanced user/day windows (CERT R4.2)
- Checkpoint: step 32
- LoRA rank: 32, alpha: 64, target modules: q_proj, k_proj, v_proj, o_proj
- Format: Structured SOC Narrative (risk + evidence + reasoning)
- Hardware: NVIDIA H100 (80 GB)
Limitations
- Evaluated on a small balanced sample (n=50) β results may not generalize to production distributions
- Highest malicious recall (0.88) but low format compliance. Many responses mix normal/malicious tokens.
- Dataset is based on synthetic insider threat scenarios from CERT R4.2 (2016) β real-world performance may differ
Citation
@misc{soc-narrative-2026,
author = {Research project},
title = {SOC Narrative: Small LLMs for UEBA / Insider Threat Detection},
year = {2026},
howpublished = {\url{https://github.com/Pancake2021/research_work_by_a_student}}
}
- Downloads last month
- 33
Model tree for Pankei/soc-narrative-sft-qwen3-14b
Dataset used to train Pankei/soc-narrative-sft-qwen3-14b
Evaluation results
- Accuracy on SOC Narrative dev_balanced_50self-reported0.740
- Macro F1 on SOC Narrative dev_balanced_50self-reported0.735