Image-Text-to-Text
Transformers
English
Chinese
Qwen3-VL
Qwen3-VL-2B-Instruct
Qwen3-VL-4B-Instruct
Int4
VLM
GPTQ
Instructions to use AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4
- SGLang
How to use AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4 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 "AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4" \ --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": "AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4", "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 "AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4" \ --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": "AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4 with Docker Model Runner:
docker model run hf.co/AXERA-TECH/Qwen3-VL-2B-Instruct-GPTQ-Int4
Commit History
set devices: {0} 5b511cd verified
wangli commited on
update project 0c25383 verified
wangli commited on
Update README.md aad163c verified
Update requirements.txt f4d2f50 verified
Update README.md 5861779 verified
Update requirements.txt a7efa9d verified
update bdb6853
lihongjie commited on
remove python tokenizer server 304a966
lihongjie commited on
打开prefill优化 536be0d
lihongjie commited on
fix mrope bug f159af3
lihongjie commited on
update 136991a
lihongjie commited on
更新 tokenizer c0bc963
lihongjie commited on
更新tokenizer为内置tokenizer 5004753
lihongjie commited on
tokenizer更新为内置c++ tokenizer b726122
lihongjie commited on
更新为内置tokenizer 7796708
lihongjie commited on
Upload 2 files ca1fcf7 verified
Update requirements.txt 25ce051 verified
Update README.md a5e1383 verified
Update run_ax_api.sh dc1cd9d verified
Update run_ax_api.sh f20ae7f verified
Upload axera_logo.png 6c5e2ae verified
update f152c24
lihongjie commited on
Update README.md 7972dc5 verified
Update gradio_demo.py c04ff12 verified
Delete main_axcl_aarch64 51e258f verified
Upload 9 files ac89730 verified
add new model 77ef8d3
lihongjie commited on
添加后处理参数 5cbad37
lihongjie commited on
Update README.md 79002e0 verified
update eef2f66
lihongjie commited on
update 7a211d2
lihongjie commited on
添加u8+u16混合量化的image encoder 73cc541
lihongjie commited on
first commit f5cfb53
lihongjie commited on