Image-Text-to-Text
Transformers
Safetensors
dsv4_vl
text-generation
deepseek-v4
multimodal
vision-language
siglip2
lora
custom_code
Instructions to use LoyalAI/dsv4-flash-0731-vision with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LoyalAI/dsv4-flash-0731-vision with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="LoyalAI/dsv4-flash-0731-vision", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("LoyalAI/dsv4-flash-0731-vision", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LoyalAI/dsv4-flash-0731-vision with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LoyalAI/dsv4-flash-0731-vision" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LoyalAI/dsv4-flash-0731-vision", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LoyalAI/dsv4-flash-0731-vision
- SGLang
How to use LoyalAI/dsv4-flash-0731-vision 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 "LoyalAI/dsv4-flash-0731-vision" \ --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": "LoyalAI/dsv4-flash-0731-vision", "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 "LoyalAI/dsv4-flash-0731-vision" \ --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": "LoyalAI/dsv4-flash-0731-vision", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LoyalAI/dsv4-flash-0731-vision with Docker Model Runner:
docker model run hf.co/LoyalAI/dsv4-flash-0731-vision
Commit History
-
Back up audited stateful Stage-2 checkpoint 7268
Verified signaturefa0bc03
-
Back up audited stateful Stage-2 checkpoint 6900
Verified signature2230f42 -
Back up audited stateful Stage-2 checkpoint 6440
Verified signature1285304 -
Back up audited stateful Stage-2 checkpoint 5980
Verified signature7c1e6b7 -
Back up audited stateful Stage-2 checkpoint 5520
Verified signature0714781
-
Back up audited stateful Stage-2 checkpoint 5060
Verified signature1084ad7 -
Back up audited stateful Stage-2 checkpoint 4600
Verified signature50c9d5d -
Back up audited stateful Stage-2 checkpoint 4140
Verified signature6cd5ee1 -
Back up audited stateful Stage-2 checkpoint 3680
Verified signature07930dd
-
Back up audited stateful Stage-2 checkpoint 3220
Verified signature5632b15 -
Back up audited stateful Stage-2 checkpoint 2760
Verified signature520fe31 -
Back up audited stateful Stage-2 checkpoint 2300
Verified signatureb9c34a8 -
Back up audited stateful Stage-2 checkpoint 1840
Verified signature12e784a
-
Back up audited stateful Stage-2 checkpoint 1380
Verified signature6f20143 -
Back up audited stateful Stage-2 checkpoint 920
Verified signature7fd3308 -
Back up audited stateful Stage-2 checkpoint 460
Verified signature511c014 -
Back up audited stateful Stage-2 checkpoint 138
Verified signature6163fb2 -
Back up audited Stage-2 inference milestone 92
Verified signature246d845 -
Back up audited Stage-2 inference milestone 46
Verified signaturebf360c3