Downloads · 30 days
12
1% of all-time downloads
robinsyihab/Sidrap-7B-v1
Sidrap-7B-v1 is a text generation model from robinsyihab. 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.
Sidrap-7B-v1 is a Large Language Model (LLM) trained and fine-tuned on a Bahasa Indonesia public dataset. It is designed to enable conversations and dialogues in bahasa Indonesia. The base model used for fine-tuning i…
Downloads · 30 days
12
1% of all-time downloads
All-time downloads
1.7K
Public
Repo size
29.5 GB
Likes
9
Public
Click a slice to open those files.
.bin15 GB · 100%
From the Hugging Face model README
Sidrap-7B-v1 is a Large Language Model (LLM) trained and fine-tuned on a Bahasa Indonesia public dataset. It is designed to enable conversations and dialogues in bahasa Indonesia. The base model used for fine-tuning is Mistral-7B-v0.1.
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda" # the device to load the model onto
model = AutoModelForCausalLM.from_pretrained("robinsyihab/Sidrap-7B-v1")
tokenizer = AutoTokenizer.from_pretrained("robinsyihab/Sidrap-7B-v1")
messages = [
{"role": "system", "content": "Anda adalah asisten yang suka membantu, penuh hormat, dan jujur. Selalu jawab semaksimal mungkin, sambil tetap aman. Jawaban Anda tidak boleh berisi konten berbahaya, tidak etis, rasis, seksis, beracun, atau ilegal. Harap pastikan bahwa tanggapan Anda tidak memihak secara sosial dan bersifat positif.\n\
Jika sebuah pertanyaan tidak masuk akal, atau tidak koheren secara faktual, jelaskan alasannya daripada menjawab sesuatu yang tidak benar. Jika Anda tidak mengetahui jawaban atas sebuah pertanyaan, mohon jangan membagikan informasi palsu."},
{"role": "user", "content": "buatkan kode program, sebuah fungsi untuk memvalidasi alamat email menggunakan regex"}
]
encodeds = tokenizer.apply_chat_template(messages, return_tensors="pt")
model_inputs = encodeds.to(device)
model.to(device)
generated_ids = model.generate(model_inputs, max_new_tokens=1000, do_sample=True)
decoded = tokenizer.batch_decode(generated_ids)
print(decoded[0])
NOTES: To achieve optimal results in Bahasa Indonesia, please use a system message as the initial input as demonstrated above.
This model is based on Mistral-7B-v0.1, a transformer model with the following architecture choices:
The Sidrap-7B-v1 model has been trained on a public dataset and does not have any moderation mechanism.
It may still have limitations and biases. It is always recommended to review and evaluate the generated outputs for any potential issues.
We're looking forward to engaging with the community on ways to make the model finely respect guardrails, allowing for deployment in environments requiring moderated outputs.
Furthermore, please ensure that the usage of this language model is aligned with ethical guidelines, respectful of privacy, and avoids harmful content generation.
If you use the Sidrap-7B-v1 model in your research or project, please cite it as:
@article{Sidrap,
title={Sidrap-7B-v1: LLM Model for Bahasa Indonesia Dialog},
author={Robin Syihab},
publisher={Hugging Face}
journal={Hugging Face Repository},
year={2023}
}