Instructions to use aliahmad142/AI-Driven-Medical-Assistant-Chatbot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aliahmad142/AI-Driven-Medical-Assistant-Chatbot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aliahmad142/AI-Driven-Medical-Assistant-Chatbot")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("aliahmad142/AI-Driven-Medical-Assistant-Chatbot") model = AutoModelForCausalLM.from_pretrained("aliahmad142/AI-Driven-Medical-Assistant-Chatbot") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use aliahmad142/AI-Driven-Medical-Assistant-Chatbot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aliahmad142/AI-Driven-Medical-Assistant-Chatbot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aliahmad142/AI-Driven-Medical-Assistant-Chatbot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/aliahmad142/AI-Driven-Medical-Assistant-Chatbot
- SGLang
How to use aliahmad142/AI-Driven-Medical-Assistant-Chatbot with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "aliahmad142/AI-Driven-Medical-Assistant-Chatbot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aliahmad142/AI-Driven-Medical-Assistant-Chatbot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "aliahmad142/AI-Driven-Medical-Assistant-Chatbot" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aliahmad142/AI-Driven-Medical-Assistant-Chatbot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use aliahmad142/AI-Driven-Medical-Assistant-Chatbot with Docker Model Runner:
docker model run hf.co/aliahmad142/AI-Driven-Medical-Assistant-Chatbot
AI-Driven Medical Assistant Chatbot
This is a fine-tuned LLaMA-based chatbot developed for educational medical use cases. It is designed to provide safe and informative answers to health-related queries.
馃殌 Model Purpose
This model serves as a conversational assistant for:
- Medical education
- General health inquiries
- Non-emergency symptom understanding
馃 Architecture
- Base Model: LLaMA
- Precision: 4-bit using
bitsandbytes - Format:
safetensors - Tokenizer: Custom with safe tokens defined
鈿狅笍 Disclaimer
This model is not a replacement for professional medical advice. Always consult a licensed doctor for real medical concerns.
How to Use
Once the Hosted Inference API is enabled, you can use the following endpoint:
- Downloads last month
- -