Downloads · 30 days
19
17% of all-time downloads
kodetr/stunting-7B-Qwen
stunting-7B-Qwen is a text generation model from kodetr. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
19
17% of all-time downloads
All-time downloads
113
Public
Parameters
7.7B
15.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors15.4 GB · 100%
From the Hugging Face model README
Konsultasi(Q&A) stunting pada anak

Pastikan untuk memperbarui instalasi transformer Anda melalui pip install --upgrade transformer.
import torch
from transformers import pipeline
model_id = "kodetr/stunting-7B-Qwen"
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])