GPT-2 ChatKobi
Model Description
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.
Model Quality and Limitations
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.
Recommended Use Cases
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!
How to Use the Model
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))
References
The base model used for fine-tuning can be found at: https://huggingface.co/indonesian-nlp/gpt2-medium-indonesian.
Potential Bias
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.
Developers and Contributions
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.