Downloads · 30 days
0
ZigZeug/LogLaye-LLaMA3.2B-QLoRA-finetuned-HDFS-logs
LogLaye-LLaMA3.2B-QLoRA-finetuned-HDFS-logs is a machine learning model from ZigZeug. 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 transformers.
This model is a fine-tuned version of LLaMA 3.2B using QLoRA for log anomaly detection on HDFS (Hadoop Distributed File System) logs.
Downloads · 30 days
0
Access
Public
Updated Jun 6, 2025
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
This model is a fine-tuned version of LLaMA 3.2B using QLoRA for log anomaly detection on HDFS (Hadoop Distributed File System) logs.
This model classifies HDFS logs into:
"normal" → Expected system behavior."anomalous" → Suspicious or error-prone system behavior.Always keep human supervision when deploying anomaly detection models in production.
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "ZigZeug/LogLaye-LLaMA3.2B-QLoRA-finetuned-HDFS-logs"
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_dtype="auto")
tokenizer = AutoTokenizer.from_pretrained(model_id)
prompt = [
{"role": "system", "content": "You are an expert in HDFS log analysis. Classify if the following log is normal or anomalous."},
{"role": "user", "content": "Log: PacketResponder 2 for block blk_-3552845605773916309 terminating"}
]
chat = tokenizer.apply_chat_template(prompt, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(chat, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=20)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))