Downloads · 30 days
15
7% of all-time downloads
kayrab/doktor-Mistral-trendyol-7b
doktor-Mistral-trendyol-7b is a question answering model from kayrab. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as mit.
Doktor Mistral Trendyol, Türkçe sağlık danışmanlığı alanında kullanılmak üzere geliştirilmiş bir büyük dil modelidir. Bu model, doktor-hasta yazılı iletişimindeki performansı iyileştirmek ve hastalara daha doğru ve ba…
Downloads · 30 days
15
7% of all-time downloads
All-time downloads
227
Public
Parameters
7.3B
14.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors14.7 GB · 100%
From the Hugging Face model README
Doktor Mistral Trendyol, Türkçe sağlık danışmanlığı alanında kullanılmak üzere geliştirilmiş bir büyük dil modelidir. Bu model, doktor-hasta yazılı iletişimindeki performansı iyileştirmek ve hastalara daha doğru ve bağlama uygun yanıtlar sunmak amacıyla oluşturulmuştur.
Bu model, Muhammed Kayra Bulut tarafından hazırlanan yüksek lisans tezi kapsamında geliştirilmiştir.
Modelin eğitimi ve ince ayarı şu adımlarla gerçekleştirilmiştir:
Yapılan değerlendirmeler sonucunda, Doktor Mistral Trendyol modelinin Türkçe sağlık danışmanlığı alanında aşağıdaki başarılara ulaştığı tespit edilmiştir:
Daha detaylı bilgi için yüksek lisans tezine başvurabilirsiniz.
Gereksinimler:
Kurulum:
git clone https://github.com/kayrab/doktor-Mistral-trendyol-7b.git
cd doktor-Mistral-trendyol-7b
from huggingface_hub import login
login("hesaba_ait_token")
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("kayrab/doktor-Mistral-trendyol-7b")
model = AutoModelForCausalLM.from_pretrained("kayrab/doktor-Mistral-trendyol-7b")
model.to("cuda")
# Prompt'u input_text ile doldurmak için format kullanıyoruz
input_text = "Merhaba doktor, baş ağrım ve ateşim var. Ne yapmalıyım?"
prompt = """Sen bir doktorsun. Soruları buna göre cevapla.
### Soru:
{}
### Cevap:
{}""".format(input_text, "") # input_text'i yerleştiriyoruz, cevap kısmı boş bırakılıyor
# Tokenizer ile prompt'u işliyoruz
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs)
# Modelin çıktısını decode ediyoruz
answer = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(answer)
Yüksek Lisans Tezi: Sağlık Verileri Üzerinde Büyük Dil Modellerinin İnce Ayar Performansı - Muhammed Kayra Bulut, Yıldız Teknik Üniversitesi, 2024.
Doctor Mistral Trendyol is a large language model developed for use in Turkish health consultancy. This model aims to improve the performance of written communication between doctors and patients and provide patients with more accurate and context-appropriate responses.
This model was developed as part of a master's thesis prepared by Muhammed Kayra Bulut.
The training and fine-tuning of the model were carried out in the following steps:
As a result of the evaluations, it was determined that the Doctor Mistral Trendyol model achieved the following successes in the field of Turkish health consultancy:
For more detailed information, you can refer to the master's thesis.
Requirements:
Installation:
git clone https://github.com/kayrab/doktor-Mistral-trendyol-7b.git
cd doktor-Mistral-trendyol-7b
from huggingface_hub import login
login("your_token")
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("kayrab/doktor-Mistral-trendyol-7b")
model = AutoModelForCausalLM.from_pretrained("kayrab/doktor-Mistral-trendyol-7b")
model.to("cuda")
# Fill in the prompt with input_text
input_text = "Merhaba doktor, baş ağrım ve ateşim var. Ne yapmalıyım?"
prompt = """Sen bir doktorsun. Soruları buna göre cevapla.
### Soru:
{}
### Cevap:
{}""".format(input_text, "") # We place input_text and leave the answer section empty
# Process the prompt with the tokenizer
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs)
# Decode the model's output
answer = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(answer)
Master's Thesis: Fine-Tuning Performance of Large Language Models on Health Data - Muhammed Kayra Bulut, Yıldız Technical University, 2024.