File size: 1,849 Bytes
e24aa62 fe8d75f b239616 e24aa62 fe8d75f e24aa62 fe8d75f e24aa62 b444903 6bf0043 fe8d75f e24aa62 432e5c7 9513f13 432e5c7 9513f13 e24aa62 fe8d75f e24aa62 fe8d75f e24aa62 fe8d75f e24aa62 fe8d75f e24aa62 fe8d75f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
---
library_name: transformers
license: mit
datasets:
- kodetr/stunting-qa-v1
language:
- id
metrics:
- bleu
- glue
- rouge
base_model:
- meta-llama/Llama-3.2-3B-Instruct
pipeline_tag: text-generation
---
### Model Description
<!-- Provide a longer summary of what this model is. -->
Konsultasi(Q&A) stunting pada anak
- **Developed by:** Tanwir
- **Language :** Indonesia
### Training

### Information Result Training

### Evaluation (GLUE)

### Evaluation (ROUGE)
- **ROUGE Base Model:** {'rouge1': 0.32442426784015754, 'rouge2': 0.21091087320145585, 'rougeL': 0.2997913044723025, 'rougeLsum': 0.3028164031975752}
- **ROUGE Finetuned Model:** {'rouge1': 0.45885281015363844, 'rouge2': 0.33303682535111623, 'rougeL': 0.42486098123248783, 'rougeLsum': 0.43147191004805796}
### BERTSCORE
- **BERTScore Base Model - F1:** 0.7268
- **BERTScore Finetuned Model - F1:** 0.7687
### Use with transformers
Pastikan untuk memperbarui instalasi transformer Anda melalui pip install --upgrade transformer.
```python
import torch
from transformers import pipeline
model_id = "kodetr/stunting-qa-v3"
pipe = pipeline(
"text-generation",
model=model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{"role": "system", "content": "Jelaskan definisi 1000 hari pertama kehidupan."},
{"role": "user", "content": "Apa itu 1000 hari pertama kehidupan?"},
]
outputs = pipe(
messages,
max_new_tokens=256,
)
print(outputs[0]["generated_text"][-1])
``` |