Downloads · 30 days
8
14% of all-time downloads
Saiguru2554/health-link-assistant
health-link-assistant is a machine learning model from Saiguru2554. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a specialized healthcare AI assistant trained to help with healthcare-related queries and interact with the Health Link QR System. The model is based on DistilGPT2 and fine-tuned on healthcare domain data.
Downloads · 30 days
8
14% of all-time downloads
All-time downloads
57
Public
Parameters
81.9M
328 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors328 MB · 99%
From the Hugging Face model README
This is a specialized healthcare AI assistant trained to help with healthcare-related queries and interact with the Health Link QR System. The model is based on DistilGPT2 and fine-tuned on healthcare domain data.
This model is designed to:
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model and tokenizer
model = AutoModelForCausalLM.from_pretrained("Saiguru2554/health-link-assistant")
tokenizer = AutoTokenizer.from_pretrained("Saiguru2554/health-link-assistant")
def generate_response(prompt, max_length=256, temperature=0.7):
# Prepare the input
inputs = tokenizer(prompt, return_tensors="pt", padding=True)
# Generate response
with torch.no_grad():
outputs = model.generate(
inputs.input_ids,
max_length=max_length,
temperature=temperature,
pad_token_id=tokenizer.eos_token_id,
attention_mask=inputs.attention_mask,
do_sample=True,
top_p=0.9,
no_repeat_ngram_size=3,
repetition_penalty=1.2
)
# Decode and return the response
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
if prompt in response:
response = response[len(prompt):].strip()
return response
# Example usage
prompt = "user: What are the symptoms of vitamin D deficiency?\nassistant:"
response = generate_response(prompt)
print(response)
The model has been validated on healthcare-related queries and system interaction scenarios. However, all outputs should be reviewed by healthcare professionals before making any medical decisions.
If you use this model in your research or application, please cite:
@misc{health-link-assistant,
author = {Sai Guru},
title = {Health Link AI Assistant},
year = {2025},
publisher = {Hugging Face},
journal = {Hugging Face Model Hub},
howpublished = {\url{https://huggingface.co/Saiguru2554/health-link-assistant}}
}
For questions and feedback, please open an issue on the model's repository page.