Downloads · 30 days
12
15% of all-time downloads
Reynier/dga-bilstm
dga-bilstm is a text classification model from Reynier. Use it when you need a label for a piece of text. The card lists the license as mit.
BiLSTM with Self-Attention (Namgung et al. 2021) trained on 54 DGA families. Part of the DGA Multi-Family Benchmark (Reynier et al., 2026).
Downloads · 30 days
12
15% of all-time downloads
All-time downloads
78
Public
Repo size
740 KB
Likes
0
Public
Click a slice to open those files.
.pth740 KB · 98%
From the Hugging Face model README
BiLSTM with Self-Attention (Namgung et al. 2021) trained on 54 DGA families. Part of the DGA Multi-Family Benchmark (Reynier et al., 2026).
legit (0) or dga (1)| Metric | Value |
|---|---|
| Accuracy | 0.8916 |
| F1 | 0.8556 |
| Precision | 0.9134 |
| Recall | 0.8433 |
| FPR | 0.0600 |
| Query Time | 0.067 ms/domain (CPU) |
from huggingface_hub import hf_hub_download
import importlib.util, torch
weights = hf_hub_download("Reynier/dga-bilstm", "bilstm_best.pth")
model_py = hf_hub_download("Reynier/dga-bilstm", "model.py")
spec = importlib.util.spec_from_file_location("bilstm_model", model_py)
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
model = mod.load_model(weights)
results = mod.predict(model, ["google.com", "xkr3f9mq.ru"])
print(results)
@article{reynier2026dga,
title={DGA Multi-Family Benchmark: Comparing Classical and Transformer-based Detectors},
author={Reynier et al.},
year={2026}
}