Hephaestus HDFS Log Anomaly Detector v0.1

A specialized LLM fine-tuned on HDFS (Hadoop Distributed File System) log anomaly detection using QLoRA fine-tuning.

Model Details

  • Base model: Qwen/Qwen2.5-0.5B-Instruct
  • Fine-tuning method: QLoRA (rank=128, alpha=256, dropout=0.05)
  • Training: SFT with 8-bit Adam, gradient checkpointing
  • Dataset: 33K HDFS log conversations (system/user/assistant format)
  • Parameters: 494M (0.5B base + LoRA merged)
  • Size: 988 MB (fp16 safetensors)

Performance

Metric Score
Accuracy 91.0%
F1 90.2%
Precision 83.1%
Recall 98.6%
Train time 7.6 min (P100 GPU)
Inference 1022ms / 31 tokens-per-second

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("Yusif-v/hephaestus-hdfs-0.5b")
tokenizer = AutoTokenizer.from_pretrained("Yusif-v/hephaestus-0.5b")

prompt = """<|im_start|>system
You are a SOC analyst. Classify as NORMAL or ANOMALY.<|im_end|>
<|im_start|>user
powershell.exe -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQ...<|im_end|>
<|im_start|>assistant
"""

inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=64, do_sample=False)
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
# Output: "ANOMALY. Suspicious encoded PowerShell command detected."

Limitations

  • 0.5B model โ€” suitable for edge deployment but less accurate than larger variants
  • Trained specifically on HDFS logs โ€” may not generalize to other log formats
  • English only
Downloads last month
5
Safetensors
Model size
0.5B params
Tensor type
F16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Yusif-v/hephaestus-hdfs-0.5b

Finetuned
(893)
this model
Quantizations
1 model