Image-Text-to-Text
Transformers
Safetensors
Chinese
English
qwen3_5
quantized
slq
gptq
mixed-precision
ascend
npu
vllm-ascend
fake-quant
conversational
Instructions to use DemoAuguste/Qwen3.8-27B-Quant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DemoAuguste/Qwen3.8-27B-Quant with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="DemoAuguste/Qwen3.8-27B-Quant") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("DemoAuguste/Qwen3.8-27B-Quant") model = AutoModelForMultimodalLM.from_pretrained("DemoAuguste/Qwen3.8-27B-Quant", 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DemoAuguste/Qwen3.8-27B-Quant with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DemoAuguste/Qwen3.8-27B-Quant" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DemoAuguste/Qwen3.8-27B-Quant", "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/DemoAuguste/Qwen3.8-27B-Quant
- SGLang
How to use DemoAuguste/Qwen3.8-27B-Quant 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 "DemoAuguste/Qwen3.8-27B-Quant" \ --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": "DemoAuguste/Qwen3.8-27B-Quant", "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 "DemoAuguste/Qwen3.8-27B-Quant" \ --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": "DemoAuguste/Qwen3.8-27B-Quant", "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 DemoAuguste/Qwen3.8-27B-Quant with Docker Model Runner:
docker model run hf.co/DemoAuguste/Qwen3.8-27B-Quant
File size: 1,338 Bytes
464c1c3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | === 1) /health ===
status=200
=== 2) /v1/models ===
id= qwen3.8-27b-slq-b36 max_model_len= 4096 root= /work/b36
=== 3) /v1/chat/completions (non-stream) ===
content: 混合精度量化是一种在模型训练或推理过程中,同时使用多种数值精度(如 FP32 和 FP16/BF16)来平衡计算效率与数值稳定性的技术。
usage: {'prompt_tokens': 20, 'total_tokens': 62, 'completion_tokens': 42, 'prompt_tokens_details': None, 'completion_tokens_details': None}
wall: 13.848591920s
=== 4) /v1/completions ===
text: Beijing, which is also the largest city in the country. Beijing is a major political, cultural, and educational center,
usage: {'prompt_tokens': 5, 'total_tokens': 29, 'completion_tokens': 24, 'prompt_tokens_details': None, 'completion_tokens_details': None}
=== 5) streaming (SSE) ===
data: {"id":"chatcmpl-a139a13ce3a3826e","object":"chat.completion.chunk","created":1794997579,"model":"qwen3.8-27b-slq-b36","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"prompt_token_ids":null,"prompt_text":null}
data: {"id":"chatcmpl-a139a13ce3a3826e","object":"chat.completion.chunk","created":1794997579,"model":"qwen3.8-27b-slq-b36","choices":[{"index":0,"delta":{"content":"北京"},"logprobs":null,"finish_reason":null,"token_ids":null}]}
=== SSE_OK ===
|