Image-Text-to-Text
Transformers
Safetensors
step_robotics
text-generation
vLLM
AWQ
conversational
custom_code
4-bit precision
awq
Instructions to use QuantTrio/Step3-VL-10B-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantTrio/Step3-VL-10B-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="QuantTrio/Step3-VL-10B-AWQ", trust_remote_code=True) 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 AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("QuantTrio/Step3-VL-10B-AWQ", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use QuantTrio/Step3-VL-10B-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuantTrio/Step3-VL-10B-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuantTrio/Step3-VL-10B-AWQ", "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/QuantTrio/Step3-VL-10B-AWQ
- SGLang
How to use QuantTrio/Step3-VL-10B-AWQ 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 "QuantTrio/Step3-VL-10B-AWQ" \ --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": "QuantTrio/Step3-VL-10B-AWQ", "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 "QuantTrio/Step3-VL-10B-AWQ" \ --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": "QuantTrio/Step3-VL-10B-AWQ", "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 QuantTrio/Step3-VL-10B-AWQ with Docker Model Runner:
docker model run hf.co/QuantTrio/Step3-VL-10B-AWQ
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,7 +10,7 @@ base_model:
|
|
| 10 |
base_model_relation: quantized
|
| 11 |
---
|
| 12 |
# Step3-VL-10B-AWQ
|
| 13 |
-
Base model: [stepfun-ai/Step3-VL-10B](https://
|
| 14 |
|
| 15 |
I added a small injection at the end of the original `chat_template.jinja` to support a GLM-like switch: you can try to disable the “thinking/reasoning” mode in your chat completion request via `"chat_template_kwargs": {"enable_thinking": False}`.
|
| 16 |
|
|
@@ -66,8 +66,8 @@ vllm serve \
|
|
| 66 |
|
| 67 |
### 【Model Download】
|
| 68 |
```python
|
| 69 |
-
from
|
| 70 |
-
snapshot_download('
|
| 71 |
```
|
| 72 |
|
| 73 |
### 【Overview】
|
|
|
|
| 10 |
base_model_relation: quantized
|
| 11 |
---
|
| 12 |
# Step3-VL-10B-AWQ
|
| 13 |
+
Base model: [stepfun-ai/Step3-VL-10B](https://huggingface.co/stepfun-ai/Step3-VL-10B)
|
| 14 |
|
| 15 |
I added a small injection at the end of the original `chat_template.jinja` to support a GLM-like switch: you can try to disable the “thinking/reasoning” mode in your chat completion request via `"chat_template_kwargs": {"enable_thinking": False}`.
|
| 16 |
|
|
|
|
| 66 |
|
| 67 |
### 【Model Download】
|
| 68 |
```python
|
| 69 |
+
from huggingface_hub import snapshot_download
|
| 70 |
+
snapshot_download('QuantTrio/Step3-VL-10B-AWQ', cache_dir="your_local_path")
|
| 71 |
```
|
| 72 |
|
| 73 |
### 【Overview】
|