Image-Text-to-Text
Transformers
Safetensors
English
Chinese
qwen3_5
qwen3.8
finetune
bf16
html
ui
generative-ui
conversational
Instructions to use wesjos/Qwen3.8-27B-HTML with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wesjos/Qwen3.8-27B-HTML with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="wesjos/Qwen3.8-27B-HTML") 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("wesjos/Qwen3.8-27B-HTML") model = AutoModelForMultimodalLM.from_pretrained("wesjos/Qwen3.8-27B-HTML", 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 wesjos/Qwen3.8-27B-HTML with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wesjos/Qwen3.8-27B-HTML" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wesjos/Qwen3.8-27B-HTML", "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/wesjos/Qwen3.8-27B-HTML
- SGLang
How to use wesjos/Qwen3.8-27B-HTML 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 "wesjos/Qwen3.8-27B-HTML" \ --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": "wesjos/Qwen3.8-27B-HTML", "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 "wesjos/Qwen3.8-27B-HTML" \ --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": "wesjos/Qwen3.8-27B-HTML", "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 wesjos/Qwen3.8-27B-HTML with Docker Model Runner:
docker model run hf.co/wesjos/Qwen3.8-27B-HTML
Showcase: add OpenWebUI test recording
Browse files
README.md
CHANGED
|
@@ -60,6 +60,16 @@ A **fine-tune of [Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B)**, distr
|
|
| 60 |
<sub><b>28 s screen recording</b> · <code>.ai-view</code> pages streaming in — cards, callouts, a comparison table, inline SVG</sub>
|
| 61 |
</div>
|
| 62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
<div align="center">
|
| 64 |
<img src="demos/sigmoid-explainer.jpg" width="100%">
|
| 65 |
<br>
|
|
@@ -227,7 +237,7 @@ llama-server -m Qwen3.8-27B-UD-Q4_K_M.gguf \
|
|
| 227 |
| `chat_template.jinja` | generic Qwen3.8 template — **no Mario-html trigger** |
|
| 228 |
| `tokenizer.json` · `tokenizer_config.json` | tokenizer, 248,320 vocab |
|
| 229 |
| `processor_config.json` | image / video preprocessing |
|
| 230 |
-
| `demos/` | screenshots
|
| 231 |
| `LICENSE` | Apache-2.0 |
|
| 232 |
|
| 233 |
---
|
|
|
|
| 60 |
<sub><b>28 s screen recording</b> · <code>.ai-view</code> pages streaming in — cards, callouts, a comparison table, inline SVG</sub>
|
| 61 |
</div>
|
| 62 |
|
| 63 |
+
<div align="center">
|
| 64 |
+
<b>OpenWebUI测试</b><br>
|
| 65 |
+
<video width="100%" controls muted playsinline loop poster="https://huggingface.co/wesjos/Qwen3.8-27B-HTML/resolve/main/demos/openwebui-test-poster.jpg">
|
| 66 |
+
<source src="https://huggingface.co/wesjos/Qwen3.8-27B-HTML/resolve/main/demos/openwebui-test.mp4" type="video/mp4">
|
| 67 |
+
Your browser does not support the video tag — <a href="https://huggingface.co/wesjos/Qwen3.8-27B-HTML/blob/main/demos/openwebui-test.mp4">download the 12 s clip</a>.
|
| 68 |
+
</video>
|
| 69 |
+
<br>
|
| 70 |
+
<sub>12 s screen recording · the same tune running inside OpenWebUI (model chip reads <code>qwen-3.8-27b</code>): the Mario-html persona picks up the English instruction, a <code>run_command</code> tool step renders the sandbox spec as an <code>.ai-view</code> card grid, and “is qwen4 coming?” comes back as a rendered page — short-answer callout, timeline cards, warning callout, bottom line.</sub>
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
<div align="center">
|
| 74 |
<img src="demos/sigmoid-explainer.jpg" width="100%">
|
| 75 |
<br>
|
|
|
|
| 237 |
| `chat_template.jinja` | generic Qwen3.8 template — **no Mario-html trigger** |
|
| 238 |
| `tokenizer.json` · `tokenizer_config.json` | tokenizer, 248,320 vocab |
|
| 239 |
| `processor_config.json` | image / video preprocessing |
|
| 240 |
+
| `demos/` | screenshots, the 28 s recording and the 12 s OpenWebUI clip used above |
|
| 241 |
| `LICENSE` | Apache-2.0 |
|
| 242 |
|
| 243 |
---
|