Image-Text-to-Text
Transformers
Safetensors
qwen3_5
openmed
medical
clinical
medqa
weight-space-programming
conversational
Eval Results (legacy)
Instructions to use OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical") 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("OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical") model = AutoModelForMultimodalLM.from_pretrained("OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical", 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 OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical", "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/OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical
- SGLang
How to use OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical 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 "OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical" \ --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": "OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical", "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 "OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical" \ --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": "OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical", "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" } } ] } ] }' - Docker Model Runner
How to use OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical with Docker Model Runner:
docker model run hf.co/OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical
Download eval/env/base.json from OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical: direct link, hf CLI and curl.
- Browser
- Download file 985 Bytes
-
https://huggingface.co/OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical/resolve/main/eval/env/base.json
- Command line
-
hf download hf://OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical/eval/env/base.json
-
curl -L -o base.json https://huggingface.co/OpenMed/Qwen3.5-0.8B-WSP-Math-Clinical/resolve/main/eval/env/base.json
985 Bytes
| { | |
| "vllm": "0.33.0", | |
| "torch": "2.14.0+cu130", | |
| "transformers": "5.20.2", | |
| "gpu": "NVIDIA H200", | |
| "cmd": [ | |
| "vllm", | |
| "serve", | |
| "Qwen/Qwen3.5-0.8B", | |
| "--revision", | |
| "2fc06364715b967f1860aea9cf38778875588b17", | |
| "--tokenizer-revision", | |
| "2fc06364715b967f1860aea9cf38778875588b17", | |
| "--dtype", | |
| "bfloat16", | |
| "--max-model-len", | |
| "34816", | |
| "--gpu-memory-utilization", | |
| "0.92", | |
| "--max-num-seqs", | |
| "256", | |
| "--language-model-only", | |
| "--generation-config", | |
| "vllm", | |
| "--seed", | |
| "0", | |
| "--port", | |
| "8000" | |
| ], | |
| "sampling": { | |
| "temperature": 0.6, | |
| "top_p": 0.95, | |
| "top_k": 20, | |
| "presence_penalty": 1.5, | |
| "max_tokens": 32768, | |
| "seed": 0 | |
| }, | |
| "model": "Qwen/Qwen3.5-0.8B", | |
| "revision": "2fc06364715b967f1860aea9cf38778875588b17", | |
| "n": 1, | |
| "prompt": "Which option is the best answer to this clinical question?\n\n{q}\n\n{opts}\n\nReason as much as you need, then finish with one last line exactly like: Answer: <letter>", | |
| "seed": 0, | |
| "job_id": "6ae9df3fc78863f9c631c205" | |
| } |