Image-Text-to-Text
Transformers
Safetensors
qwen3_5
lst
language-selection-tuning
language-bias
bias-mitigation
language-confusion-mitigation
korean
chinese-suppression
qwen3.5
mamba-hybrid
vision-language
composite-vision-language
text-generation
chat
conversational
Instructions to use dataslab/DSLM-LST-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dataslab/DSLM-LST-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="dataslab/DSLM-LST-9B") 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, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("dataslab/DSLM-LST-9B") model = AutoModelForMultimodalLM.from_pretrained("dataslab/DSLM-LST-9B", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dataslab/DSLM-LST-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dataslab/DSLM-LST-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dataslab/DSLM-LST-9B", "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/dataslab/DSLM-LST-9B
- SGLang
How to use dataslab/DSLM-LST-9B 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 "dataslab/DSLM-LST-9B" \ --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": "dataslab/DSLM-LST-9B", "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 "dataslab/DSLM-LST-9B" \ --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": "dataslab/DSLM-LST-9B", "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 dataslab/DSLM-LST-9B with Docker Model Runner:
docker model run hf.co/dataslab/DSLM-LST-9B
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,7 +3,7 @@ license: apache-2.0
|
|
| 3 |
base_model: Qwen/Qwen3.5-9B
|
| 4 |
base_model_relation: finetune
|
| 5 |
library_name: transformers
|
| 6 |
-
pipeline_tag: text-
|
| 7 |
language:
|
| 8 |
- en
|
| 9 |
- ko
|
|
@@ -17,20 +17,22 @@ language:
|
|
| 17 |
- pt
|
| 18 |
- multilingual
|
| 19 |
tags:
|
| 20 |
-
- text-generation
|
| 21 |
-
- chat
|
| 22 |
- lst
|
| 23 |
- language-selection-tuning
|
| 24 |
- language-bias
|
| 25 |
- bias-mitigation
|
| 26 |
- language-confusion-mitigation
|
| 27 |
-
- chinese-suppression
|
| 28 |
- korean
|
|
|
|
| 29 |
- multilingual
|
|
|
|
|
|
|
| 30 |
- qwen3.5
|
| 31 |
- mamba-hybrid
|
| 32 |
- vision-language
|
| 33 |
- composite-vision-language
|
|
|
|
|
|
|
| 34 |
---
|
| 35 |
|
| 36 |
# DSLM-LST-9B
|
|
|
|
| 3 |
base_model: Qwen/Qwen3.5-9B
|
| 4 |
base_model_relation: finetune
|
| 5 |
library_name: transformers
|
| 6 |
+
pipeline_tag: image-text-to-text
|
| 7 |
language:
|
| 8 |
- en
|
| 9 |
- ko
|
|
|
|
| 17 |
- pt
|
| 18 |
- multilingual
|
| 19 |
tags:
|
|
|
|
|
|
|
| 20 |
- lst
|
| 21 |
- language-selection-tuning
|
| 22 |
- language-bias
|
| 23 |
- bias-mitigation
|
| 24 |
- language-confusion-mitigation
|
|
|
|
| 25 |
- korean
|
| 26 |
+
- chinese-suppression
|
| 27 |
- multilingual
|
| 28 |
+
- moe
|
| 29 |
+
- mixture-of-experts
|
| 30 |
- qwen3.5
|
| 31 |
- mamba-hybrid
|
| 32 |
- vision-language
|
| 33 |
- composite-vision-language
|
| 34 |
+
- text-generation
|
| 35 |
+
- chat
|
| 36 |
---
|
| 37 |
|
| 38 |
# DSLM-LST-9B
|