stunting-qa-v3 / README.md
kodetr's picture
Update README.md
c8abd98 verified
---
library_name: transformers
tags:
- medical
datasets:
- kodetr/stunting-qa
language:
- id
metrics:
- accuracy
- bleu
pipeline_tag: question-answering
license: apache-2.0
base_model:
- meta-llama/Llama-3.2-3B-Instruct
---
### Model Description
<!-- Provide a longer summary of what this model is. -->
Konsultasi(Q&A) stunting pada anak
- **Developed by:** Tanwir
- **Language :** Indonesia
### Evaluation (GLUE)
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65d6d2f8b06abf924b24349d/QO2rvy0EukGRuRTmFNizN.png)
### 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])
```