|
--- |
|
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) |
|
|
|
 |
|
|
|
### 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]) |
|
``` |