Upload fine-tuned AQG IndoT5 model from Kaggle with chunk validation
Browse files- README.md +46 -0
- eval_results.json +10 -0
- model.safetensors +1 -1
- sample_predictions.csv +0 -0
- training_config.json +19 -0
README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: id
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
tags:
|
| 5 |
+
- automatic-question-generation
|
| 6 |
+
- question-generation
|
| 7 |
+
- indonesian
|
| 8 |
+
- t5
|
| 9 |
+
- idk-mrc
|
| 10 |
+
- streamlit
|
| 11 |
+
base_model: cahya/t5-base-indonesian-summarization-cased
|
| 12 |
+
datasets:
|
| 13 |
+
- rifkiaputri/idk-mrc
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# AQGINDOT5
|
| 17 |
+
|
| 18 |
+
Model ini adalah hasil fine-tuning `cahya/t5-base-indonesian-summarization-cased` untuk tugas **Automatic Question Generation Bahasa Indonesia** menggunakan dataset `rifkiaputri/idk-mrc`.
|
| 19 |
+
|
| 20 |
+
## Tujuan
|
| 21 |
+
|
| 22 |
+
Model menerima `answer` dan `context`, lalu menghasilkan pertanyaan yang relevan.
|
| 23 |
+
|
| 24 |
+
## Format Input
|
| 25 |
+
|
| 26 |
+
```text
|
| 27 |
+
generate question: answer: <jawaban> context: <konteks>
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
## Contoh Input
|
| 31 |
+
|
| 32 |
+
```text
|
| 33 |
+
generate question: answer: menghasilkan pertanyaan secara otomatis context: Automatic Question Generation adalah proses menghasilkan pertanyaan secara otomatis dari sebuah konteks bacaan menggunakan model NLP.
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
## Contoh Output
|
| 37 |
+
|
| 38 |
+
```text
|
| 39 |
+
Apa fungsi Automatic Question Generation?
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
## Catatan Training dan Deployment
|
| 43 |
+
|
| 44 |
+
Model dilatih menggunakan IDK-MRC yang berisi pasangan `context`, `answer`, dan `question` yang relatif terstruktur.
|
| 45 |
+
|
| 46 |
+
Pada deployment Streamlit, input user berupa PDF/PPT/DOCX diparsing terlebih dahulu, lalu diproses dengan pipeline preprocessing di `preprocess.py`. Pipeline deployment tersebut menangani teks tidak terstruktur seperti bullet point, heading pendek, dan minim tanda baca sebelum masuk ke model ini.
|
eval_results.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"test_samples": 402,
|
| 3 |
+
"BLEU-1": 59.63855421686747,
|
| 4 |
+
"BLEU-2": 33.189655172413794,
|
| 5 |
+
"BLEU-3": 22.301304863582445,
|
| 6 |
+
"BLEU-4": 15.109034267912772,
|
| 7 |
+
"BLEU-Avg": 32.55963713019412,
|
| 8 |
+
"ROUGE-L": 50.282133012193995,
|
| 9 |
+
"Exact Match": 4.975124378109453
|
| 10 |
+
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 891644712
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd3c55b2b37d94bab94a2fe423bf1ea0f327ee5c7974dae1f319e5fdcdb54df6
|
| 3 |
size 891644712
|
sample_predictions.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
training_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_id": "cahya/t5-base-indonesian-summarization-cased",
|
| 3 |
+
"dataset_id": "rifkiaputri/idk-mrc",
|
| 4 |
+
"learning_rate": 0.0003,
|
| 5 |
+
"epochs": 5,
|
| 6 |
+
"warmup_steps": 126,
|
| 7 |
+
"label_smoothing": 0.1,
|
| 8 |
+
"early_stop_patience": 2,
|
| 9 |
+
"save_limit": 3,
|
| 10 |
+
"max_input_len": 512,
|
| 11 |
+
"max_target_len": 128,
|
| 12 |
+
"answer_window_words": 200,
|
| 13 |
+
"num_beams": 4,
|
| 14 |
+
"min_gen_length": 5,
|
| 15 |
+
"length_penalty": 1.0,
|
| 16 |
+
"grad_accumulation": 8,
|
| 17 |
+
"train_batch_size": 2,
|
| 18 |
+
"eval_batch_size": 2
|
| 19 |
+
}
|