Downloads · 30 days
0
AndriLawrence/gpt2-chatkobi-ai
gpt2-chatkobi-ai is a machine learning model from AndriLawrence. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as gpl-3.0.
The GPT-2 ChatKobi model is a natural language processing model that has been fine-tuned using health-related question and answer data in Indonesian language. This model is capable of providing responses based on ques…
Downloads · 30 days
0
Access
Public
Updated Oct 3, 2023
Repo size
1.9 GB
Likes
0
Public
Click a slice to open those files.
.bin777 MB · 100%
From the Hugging Face model README
The GPT-2 ChatKobi model is a natural language processing model that has been fine-tuned using health-related question and answer data in Indonesian language. This model is capable of providing responses based on questions related to health topics.
This model is capable of providing fairly accurate responses for general health-related questions. However, like all natural language processing models, there is a possibility of providing inaccurate or less relevant answers depending on the context of the question.
This model is recommended for use in scenarios where users require general answers or information about health. However, this model is not suitable for providing specific medical advice. DO WITH YOUR OWN RISK!
You can use this model by utilizing the library provided by Hugging Face. Below is an example of how to use this model in Python using llm-rs:
from llm_rs import AutoModel, SessionConfig, GenerationConfig
session_config = SessionConfig(
threads=4,
context_length=800,
prefer_mmap=False)
generation_config = GenerationConfig(
top_p=0.88,
top_k=1,
temperature=0.4,
max_new_tokens=40,
repetition_penalty=1.08,
repetition_penalty_last_n=1024,
stop_words=['<EOL>'])
model = AutoModel.from_pretrained("andri-jpg/gpt2-ChatKobi-ai",model_file="gpt2-medium-healthbot-AI-ggjt.bin", session_config=session_config)
print(model.generate("pertanyaan : apa itu diabetes jawaban :", generation_config=generation_config))
The base model used for fine-tuning can be found at: https://huggingface.co/indonesian-nlp/gpt2-medium-indonesian.
We strive to reduce potential bias in this model through careful fine-tuning processes. However, natural language processing models may reflect biases present in training data. We encourage users to always be critical and obtain medical information from trusted sources.
You can contribute to the development of this model by participating in the GitHub repository https://github.com/andri-jpg/ChatKobi.AI Feel free to raise issues or submit pull requests to help enhance the quality and functionality of the model.