Downloads · 30 days
25
38% of all-time downloads
Yusif-v/hephaestus-hdfs-0.5b
hephaestus-hdfs-0.5b is a text generation model from Yusif-v. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
A specialized LLM fine-tuned on HDFS (Hadoop Distributed File System) log anomaly detection using QLoRA fine-tuning.
Downloads · 30 days
25
38% of all-time downloads
All-time downloads
65
Public
Parameters
494M
1000 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors988 MB · 99%
From the Hugging Face model README
A specialized LLM fine-tuned on HDFS (Hadoop Distributed File System) log anomaly detection using QLoRA fine-tuning.
| 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 |
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."