LeeChan-MedCare

LeeChan-MedCare is a medical conversational AI model trained for healthcare-oriented dialogue and medical assistance tasks.

Features

  • Medical conversation support
  • Symptom discussion
  • Healthcare guidance
  • Conversational medical responses

Example Usage

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "LeeChanRX/LeeChan-MedCare"

tokenizer = AutoTokenizer.from_pretrained(model_id)

model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.float16,
    device_map="auto"
)

messages = [
    {
        "role": "system",
        "content": "You are LeeChan-MedCare, a helpful medical AI assistant."
    },
    {
        "role": "user",
        "content": "I have chest pain and dizziness. What could it be?"
    }
]

inputs = tokenizer.apply_chat_template(
    messages,
    tokenize=True,
    add_generation_prompt=True,
    return_tensors="pt",
    return_dict=True,
).to(model.device)

outputs = model.generate(
    input_ids=inputs["input_ids"],
    attention_mask=inputs["attention_mask"],
    max_new_tokens=200,
    temperature=0.7,
    top_p=0.9,
)

response = tokenizer.decode(
    outputs[0],
    skip_special_tokens=True
)

print(response)

Disclaimer

This model is not a substitute for professional medical advice, diagnosis, or treatment.

Always consult qualified healthcare professionals for medical concerns.


Dataset

  • MedFlow-v1

Author

LeeChanRX

Downloads last month
26
Safetensors
Model size
3B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for LeeChanRX/LeeChan-MedCare

Adapter
(1)
this model
Adapters
1 model

Dataset used to train LeeChanRX/LeeChan-MedCare