EchoVLM: Dynamic Mixture-of-Experts Vision-Language Model for Universal Ultrasound Intelligence
Paper β’ 2509.14977 β’ Published β’ 5
How to use chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview")
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) # Load model directly
from transformers import AutoProcessor, AutoModelForImageTextToText
processor = AutoProcessor.from_pretrained("chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview")
model = AutoModelForImageTextToText.from_pretrained("chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview")
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=40)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))How to use chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview",
"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 run hf.co/chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview
How to use chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview" \
--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": "chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview",
"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 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 "chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview" \
--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": "chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview",
"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"
}
}
]
}
]
}'How to use chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview with Docker Model Runner:
docker model run hf.co/chaoyinshe/EchoVLM_V2_lingshu_base_7b_instruct_preview
Official PyTorch implementation of the model described in
"EchoVLM: Dynamic Mixture-of-Experts Vision-Language Model for Universal Ultrasound Intelligence".
| Item | Value |
|---|---|
| Paper | arXiv:2509.14977 |
| Authors | Chaoyin SheΒΉ, Ruifang LuΒ² |
| Code | GitHub repo |
| Model Hub | Hugging Face |
Reference Qwen2.5-VL-7B-Instruct
If you use this model or code in your research, please cite:
@misc{she2025echovlmdynamicmixtureofexpertsvisionlanguage,
title={EchoVLM: Dynamic Mixture-of-Experts Vision-Language Model for Universal Ultrasound Intelligence},
author={Chaoyin She and Ruifang Lu and Lida Chen and Wei Wang and Qinghua Huang},
year={2025},
eprint={2509.14977},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2509.14977},
}
Base model
lingshu-medical-mllm/Lingshu-7B