Downloads · 30 days
5
7% of all-time downloads
KawahakuBenu/fakenews-phobert-vi
fakenews-phobert-vi is a text classification model from KawahakuBenu. Use it when you need a label for a piece of text. The card lists the license as mit.
\ PhoBERT Fake News Detector (Vietnamese)
Downloads · 30 days
5
7% of all-time downloads
All-time downloads
75
Public
Parameters
135M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt545 MB · 50%
From the Hugging Face model README
# PhoBERT Fake News Detector (Vietnamese)
Fine-tuned vinai/phobert-base-v2 cho bài toán phát hiện tin giả tiếng Việt.
## Kiến trúc
PhoBERT + Multi-Pooling (CLS + Mean + Max) + Dense + Sigmoid (binary classification)
Input text → PhoBERT (12 layers) → Pooling (2304 dim)
→ LayerNorm → Dense(512) → Dense(128) → Linear(1) → Sigmoid
→ P(fake) ∈ (0,1)
## Kết quả (test set, 1,593 mẫu)
| Metric | Giá trị |
|---|---|
| F1-macro | 0.9754 |
| AUC-ROC | 0.9976 |
| Accuracy | 0.97 |
| Precision (Fake) | 0.95 |
| Recall (Fake) | 0.99 |
## Cách dùng
from huggingface\_hub import snapshot\_download
snapshot\_download(
repo\_id="KawahakuBenu/fakenews-phobert-vi",
local\_dir="checkpoints/best\_model"
)
Code đầy đủ (training, API, frontend):
https://github.com/MinhTran110/fakenews-detector-phobert
## Dataset
10,617 mẫu tin tức tiếng Việt, cân bằng 46% fake / 54% real.
## Training
- GPU: Tesla T4 (Google Colab)
- Epochs: 5 (early stopping tại epoch 4)
- Optimizer: AdamW, differential LR (BERT 2e-5, head 1e-4)
- Loss: BCEWithLogitsLoss với pos_weight tự động
- Thời gian: ~6 phút
## Giới hạn
Model được train trên data crawl tự động, có thể có nhiễu nhãn. Kết quả chỉ mang tính tham khảo, không thay thế kiểm chứng từ nguồn uy tín.