Instructions to use deepseek-ai/deepseek-vl2-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepseek-ai/deepseek-vl2-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="deepseek-ai/deepseek-vl2-tiny")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("deepseek-ai/deepseek-vl2-tiny", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use deepseek-ai/deepseek-vl2-tiny with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "deepseek-ai/deepseek-vl2-tiny" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deepseek-ai/deepseek-vl2-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/deepseek-ai/deepseek-vl2-tiny
- SGLang
How to use deepseek-ai/deepseek-vl2-tiny 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 "deepseek-ai/deepseek-vl2-tiny" \ --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": "deepseek-ai/deepseek-vl2-tiny", "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 "deepseek-ai/deepseek-vl2-tiny" \ --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": "deepseek-ai/deepseek-vl2-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use deepseek-ai/deepseek-vl2-tiny with Docker Model Runner:
docker model run hf.co/deepseek-ai/deepseek-vl2-tiny
Unable to load model
#17 opened 6 months ago
by
trxxnk
Triton package not mentioned
#16 opened 7 months ago
by
kXborg
Typo in Model loading seection
#15 opened 7 months ago
by
kXborg
DeepSeek VL2 tiny not installing
🤗 1
#14 opened 10 months ago
by
Zeal2shine
add AIBOM
#12 opened 11 months ago
by
RiccardoDav
Update README.md - typo in example code
1
#11 opened about 1 year ago
by
bbfuras
Update README.md
#10 opened about 1 year ago
by
ArnavJain103
missing setup files?
2
#9 opened about 1 year ago
by
baktrian
Where can we download the deepseek-moe 3b llm weight?
#8 opened over 1 year ago
by
nemonameless
RuntimeError: Numpy is not available
🧠 1
1
#7 opened over 1 year ago
by
SurajTiwari1999
cant run even not in obadooga - textweb-ui most compatible on world
#5 opened over 1 year ago
by
kalle07
Update README.md
#4 opened over 1 year ago
by
Forgege
can't run on vllm
4
#3 opened over 1 year ago
by
chende2024
Update README.md
#2 opened over 1 year ago
by
srikanthreddykasam