Image-Text-to-Text
Transformers
Safetensors
English
qwen3_5
text-generation-inference
unsloth
conversational
Instructions to use EpistemeAI/Reasoning-Medical-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EpistemeAI/Reasoning-Medical-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="EpistemeAI/Reasoning-Medical-27B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("EpistemeAI/Reasoning-Medical-27B") model = AutoModelForMultimodalLM.from_pretrained("EpistemeAI/Reasoning-Medical-27B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EpistemeAI/Reasoning-Medical-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EpistemeAI/Reasoning-Medical-27B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EpistemeAI/Reasoning-Medical-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/EpistemeAI/Reasoning-Medical-27B
- SGLang
How to use EpistemeAI/Reasoning-Medical-27B 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 "EpistemeAI/Reasoning-Medical-27B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EpistemeAI/Reasoning-Medical-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "EpistemeAI/Reasoning-Medical-27B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EpistemeAI/Reasoning-Medical-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Unsloth Desktop
- Docker Model Runner
How to use EpistemeAI/Reasoning-Medical-27B with Docker Model Runner:
docker model run hf.co/EpistemeAI/Reasoning-Medical-27B
Commit History
-
Update README.md
Verified signature27c875d -
Update README.md
Verified signature3bd0dbd -
Update README.md
Verified signaturef21ff68 -
Update README.md
Verified signature881e443 -
Update README.md
Verified signature4897a93
-
Update README.md
Verified signature8317890 -
Update README.md
Verified signaturee0a890c
-
Update README.md
Verified signatured2f503f -
Upload healthbench_professional_benchmark_v2.svg
Verified signature0b03262 -
Update README.md
Verified signature55b82e8 -
Update README.md
Verified signature0873d17 -
Update README.md
Verified signature7338d0a -
Update README.md
Verified signature95fa933
-
Update README.md
Verified signaturee5cfbcc -
Update X-ray-example.md
Verified signatureaa641bd -
Create X-ray-example.md
Verified signature760dc64 -
Update README.md
Verified signaturefc17c9c -
Upload X-ray-example.png
Verified signaturebc30fb8 -
Update README.md
Verified signaturedc9c32a -
Update README.md
Verified signatureeff8350 -
Upload medqa_benchmark_comparison.png
Verified signaturedee84da -
Update README.md
Verified signature40ddc77 -
Update README.md
Verified signatureab1c83d -
Update README.md
Verified signature060c832
-
Update README.md
Verified signature0306d65 -
Update README.md
Verified signatureee50936 -
Update README.md
Verified signature27ec4e3
-
Update README.md
Verified signature00533f8 -
Update README.md
Verified signature88164c6 -
Update README.md
Verified signature16eceba
-
Update README.md
Verified signaturef670909 -
Update README.md
Verified signaturefb4d043 -
Update README.md
Verified signature6013115 -
Update README.md
Verified signature14a00f4 -
Update README.md
Verified signature74a9b8f -
Update README.md
Verified signature6932ffe -
Update README.md
Verified signature5d1af81 -
Update README.md
Verified signature7ca9177 -
Update README.md
Verified signature3b22413 -
Update README.md
Verified signaturebeef39d -
Update README.md
Verified signaturebb5f359 -
Update README.md
Verified signatureaa6921c -
Update README.md
Verified signature4efbe33 -
Update README.md
Verified signature43bba87 -
Update README.md
Verified signaturef81e981 -
Update README.md
Verified signature0311e0f -
Update README.md
Verified signature4b6e0fd -
Update README.md
Verified signaturee422356 -
Update README.md
Verified signature9bc65e6 -
Update README.md
Verified signature35664a0