Downloads · 30 days
6
6% of all-time downloads
savinirsekas/MediTalk-300-Mistral-7B-4bit
MediTalk-300-Mistral-7B-4bit is a machine learning model from savinirsekas. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model card describes the MediTalk300-Mistral-7B model, which was trained on MediTalk300 dataset with corpus of 1725 doctor-patient role played dialogue pairs for 300 most commonly occurring diseases in India. Eac…
Downloads · 30 days
6
6% of all-time downloads
All-time downloads
109
Public
Parameters
7.5B
4.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4.1 GB · 100%
How the weights are stored.
U87.2B · 96%
From the Hugging Face model README
This model card describes the MediTalk300-Mistral-7B model, which was trained on MediTalk300 dataset with corpus of 1725 doctor-patient role played dialogue pairs for 300 most commonly occurring diseases in India. Each conversation averages 300 tokens as mentioned in Table I below..
| Metric | Value |
|---|---|
| Total Conversations | 1,752 |
| Total Messages | 21,588 |
| Average Messages per Conversation | 12.32 |
| Total Human Messages | 10,816 |
| Total Assistant Messages | 10,772 |
The MediTalk300-Mistral-7B model was trained on a large multicenter dataset with a large corpus of 1.2B words of diverse diseases we constructed.
<!-- For more details, see here. -->To fine-tune MediTalk300 efficiently on limited hardware, we combined three key techniques.
We used PEFT to update only a small portion of the model’s parameters, keeping the rest frozen. This reduced training time and resource usage. Then, with QLoRA, we applied low-rank adapters along with 4-bit/8-bit quantization, allowing us to train the model on consumer GPUs without sacrificing accuracy. Finally, we applied Instruction Tuning by structuring our dataset as clear instruction-response pairs, helping the model understand user intent and generate medically accurate replies.
These methods allowed us to optimize both performance and efficiency, making MediTalk300 suitable for real-world use and local deployment.
We used a batch size of 32, a maximum sequence length of 256, and a learning rate of 5e-5 for pre-training our models.
Load the model via the transformers library:
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
model = AutoModelForCausalLM.from_pretrained("savinirsekas/MediTalk-300-Mistral-7B-4bit")
tokenizer = AutoTokenizer.from_pretrained("savinirsekas/MediTalk-300-Mistral-7B-4bit")
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
query = "I have fever, chills, headache, and body pain. What could be the issue?"
response = pipe(query, max_new_tokens=256, do_sample=True)[0]["generated_text"]
print(response)
Please cite these articles: Uploading Soon....
base_model: unsloth/mistral-7b-instruct-v0.3-bnb-4bit tags: