Downloads · 30 days
15
1% of all-time downloads
shivvamm/MedLLM
MedLLM is a text generation model from shivvamm. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
MedLLM is a language model designed to assist healthcare professionals and patients by providing detailed information about the symptoms of various diseases. This model can help in preliminary assessments and educatio…
Downloads · 30 days
15
1% of all-time downloads
All-time downloads
1.1K
Public
Parameters
81.9M
328 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors328 MB · 100%
From the Hugging Face model README
MedLLM is a language model designed to assist healthcare professionals and patients by providing detailed information about the symptoms of various diseases. This model can help in preliminary assessments and educational purposes by offering accurate and concise symptom descriptions.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "shivvamm/MedLLM"
model = AutoModelForCausalLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
inputs = tokenizer("What are the symptoms of diabetes?", return_tensors="pt")
outputs = model.generate(**inputs)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)