From 7ddfb5305cab64b2e6e79a5cfa09b7a1dce77cd6 Mon Sep 17 00:00:00 2001 From: ModelHub XC Date: Sat, 20 Jun 2026 07:34:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=EF=BC=8C=E7=94=B1ModelHub=20XC=E7=A4=BE=E5=8C=BA=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Model: Qwen/Qwen3-VL-8B-Instruct-GGUF Source: Original Platform --- .gitattributes | 53 ++++++++ Qwen3VL-8B-Instruct-F16.gguf | 3 + Qwen3VL-8B-Instruct-Q4_K_M.gguf | 3 + Qwen3VL-8B-Instruct-Q8_0.gguf | 3 + README.md | 184 +++++++++++++++++++++++++++ configuration.json | 1 + mmproj-Qwen3VL-8B-Instruct-F16.gguf | 3 + mmproj-Qwen3VL-8B-Instruct-Q8_0.gguf | 3 + 8 files changed, 253 insertions(+) create mode 100644 .gitattributes create mode 100644 Qwen3VL-8B-Instruct-F16.gguf create mode 100644 Qwen3VL-8B-Instruct-Q4_K_M.gguf create mode 100644 Qwen3VL-8B-Instruct-Q8_0.gguf create mode 100644 README.md create mode 100644 configuration.json create mode 100644 mmproj-Qwen3VL-8B-Instruct-F16.gguf create mode 100644 mmproj-Qwen3VL-8B-Instruct-Q8_0.gguf diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1ae1980 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,53 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bin.* filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zstandard filter=lfs diff=lfs merge=lfs -text +*.tfevents* filter=lfs diff=lfs merge=lfs -text +*.db* filter=lfs diff=lfs merge=lfs -text +*.ark* filter=lfs diff=lfs merge=lfs -text +**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text +**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text +**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text + +*.ggml filter=lfs diff=lfs merge=lfs -text +*.llamafile* filter=lfs diff=lfs merge=lfs -text +*.pt2 filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text + +Qwen3VL-8B-Instruct-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text +Qwen3VL-8B-Instruct-F16.gguf filter=lfs diff=lfs merge=lfs -text +mmproj-Qwen3VL-8B-Instruct-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text +Qwen3VL-8B-Instruct-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text +mmproj-Qwen3VL-8B-Instruct-F16.gguf filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/Qwen3VL-8B-Instruct-F16.gguf b/Qwen3VL-8B-Instruct-F16.gguf new file mode 100644 index 0000000..2e9b097 --- /dev/null +++ b/Qwen3VL-8B-Instruct-F16.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2715c1a097f1943fb88ad59c7c0e9288a7a50c84d60cf18c6227bd9a40520972 +size 16388044896 diff --git a/Qwen3VL-8B-Instruct-Q4_K_M.gguf b/Qwen3VL-8B-Instruct-Q4_K_M.gguf new file mode 100644 index 0000000..0e94647 --- /dev/null +++ b/Qwen3VL-8B-Instruct-Q4_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67d1659bfe71b89d50b45a4ad1a9e5b997e5bb16ce5da66a6a6167abd569e9e2 +size 5027784800 diff --git a/Qwen3VL-8B-Instruct-Q8_0.gguf b/Qwen3VL-8B-Instruct-Q8_0.gguf new file mode 100644 index 0000000..f868c72 --- /dev/null +++ b/Qwen3VL-8B-Instruct-Q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d264b3941185d00a74f75c4245521dae088ff1efc90ab8d1754e83f5844adb0 +size 8709519456 diff --git a/README.md b/README.md new file mode 100644 index 0000000..bf7efc4 --- /dev/null +++ b/README.md @@ -0,0 +1,184 @@ +--- +license: apache-2.0 +pipeline_tag: image-text-to-text +library_name: transformers +base_model: +- Qwen/Qwen3-VL-8B-Instruct +--- + + Chat + + + +# Qwen3-VL-8B-Instruct-GGUF + +This repository provides GGUF-format weights for [Qwen3-VL-8B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-8B-Instruct), split into two components: + +- Language model (LLM): FP16, Q8_0, Q4_K_M +- Vision encoder (`mmproj`): FP16, Q8_0 + +These files are compatible with [llama.cpp](https://github.com/ggml-org/llama.cpp), Ollama, and other GGUF-based tools, supporting inference on CPU, NVIDIA GPU (CUDA), Apple Silicon (Metal), Intel GPUs (SYCL), and more. +You can mix precision levels for the language and vision components based on your hardware and performance needs, and even perform custom quantization starting from the FP16 weights. + +Enjoy running this multimodal model on your personal device! 🚀 + +## Introduction: + +Meet Qwen3-VL — the most powerful vision-language model in the Qwen series to date. + +This generation delivers comprehensive upgrades across the board: superior text understanding & generation, deeper visual perception & reasoning, extended context length, enhanced spatial and video dynamics comprehension, and stronger agent interaction capabilities. + +Available in Dense and MoE architectures that scale from edge to cloud, with Instruct and reasoning‑enhanced Thinking editions for flexible, on‑demand deployment. + + +#### Key Enhancements: + +* **Visual Agent**: Operates PC/mobile GUIs—recognizes elements, understands functions, invokes tools, completes tasks. + +* **Visual Coding Boost**: Generates Draw.io/HTML/CSS/JS from images/videos. + +* **Advanced Spatial Perception**: Judges object positions, viewpoints, and occlusions; provides stronger 2D grounding and enables 3D grounding for spatial reasoning and embodied AI. + +* **Long Context & Video Understanding**: Native 256K context, expandable to 1M; handles books and hours-long video with full recall and second-level indexing. + +* **Enhanced Multimodal Reasoning**: Excels in STEM/Math—causal analysis and logical, evidence-based answers. + +* **Upgraded Visual Recognition**: Broader, higher-quality pretraining is able to “recognize everything”—celebrities, anime, products, landmarks, flora/fauna, etc. + +* **Expanded OCR**: Supports 32 languages (up from 19); robust in low light, blur, and tilt; better with rare/ancient characters and jargon; improved long-document structure parsing. + +* **Text Understanding on par with pure LLMs**: Seamless text–vision fusion for lossless, unified comprehension. + + +#### Model Architecture Updates: + +

+ +

+ + +1. **Interleaved-MRoPE**: Full‑frequency allocation over time, width, and height via robust positional embeddings, enhancing long‑horizon video reasoning. + +2. **DeepStack**: Fuses multi‑level ViT features to capture fine‑grained details and sharpen image–text alignment. + +3. **Text–Timestamp Alignment:** Moves beyond T‑RoPE to precise, timestamp‑grounded event localization for stronger video temporal modeling. + +--- + +## Model Performance + +**Multimodal performance** + +![](https://qianwen-res.oss-accelerate.aliyuncs.com/Qwen3-VL/qwen3vl_4b_8b_vl_instruct.jpg) + +**Pure text performance** +![](https://qianwen-res.oss-accelerate.aliyuncs.com/Qwen3-VL/qwen3vl_4b_8b_text_instruct.jpg) + + +## How to Use + +To use these models with `llama.cpp`, please ensure you are using the **latest version**—either by [building from source](https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md) or downloading the most recent [release](https://github.com/ggml-org/llama.cpp/releases/tag/b6907) according to the devices. + +You can run inference via the command line or through a web-based chat interface. + +### CLI Inference (`llama-mtmd-cli`) + +For example, to run Qwen3-VL-8B-Instruct with an FP16 vision encoder and Q8_0 quantized LLM: + +```bash +llama-mtmd-cli \ + -m path/to/Qwen3VL-8B-Instruct-Q8_0.gguf \ + --mmproj path/to/mmproj-Qwen3VL-8B-Instruct-F16.gguf \ + --image test.jpeg \ + -p "What is the publisher name of the newspaper?" \ + --temp 0.7 --top-k 20 --top-p 0.8 -n 1024 +``` + +### Web Chat (using `llama-server`) + +To serve Qwen3-VL-235B-A22B-Instruct via an OpenAI-compatible API with a web UI: + +```bash +llama-server \ + -m path/to/Qwen3VL-235B-A22B-Instruct-Q4_K_M-split-00001-of-00003.gguf \ + --mmproj path/to/mmproj-Qwen3VL-235B-A22B-Instruct-Q8_0.gguf +``` + +> **Tip**: For models split into multiple GGUF files, simply specify the first shard (e.g., `...-00001-of-00003.gguf`). llama.cpp will automatically load all parts. + +Once the server is running, open your browser to `http://localhost:8080` to access the built-in chat interface, or send requests to the `/v1/chat/completions` endpoint. For more details, refer to the [official documentation](https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md). + +### Quantize Your Custom Model + +You can further quantize the FP16 weights to other precision levels. For example, to quantize the model to 2-bit: + +```bash +# Quantize to 2-bit (IQ2_XXS) +llama-quantize \ + path/to/Qwen3VL-235B-A22B-Instruct-F16.gguf \ + path/to/Qwen3VL-235B-A22B-Instruct-IQ2_XXS.gguf \ + iq2_xxs 8 +``` + +For a full list of supported quantization types and detailed instructions, refer to the [quantization documentation](https://github.com/ggml-org/llama.cpp/blob/master/tools/quantize/README.md). + +### Generation Hyperparameters +#### VL +```bash +export greedy='false' +export top_p=0.8 +export top_k=20 +export temperature=0.7 +export repetition_penalty=1.0 +export presence_penalty=1.5 +export out_seq_length=16384 +``` + +#### Text +```bash +export greedy='false' +export top_p=1.0 +export top_k=40 +export repetition_penalty=1.0 +export presence_penalty=2.0 +export temperature=1.0 +export out_seq_length=32768 +``` + + +## Citation + +If you find our work helpful, feel free to give us a cite. + +``` +@misc{qwen3technicalreport, + title={Qwen3 Technical Report}, + author={Qwen Team}, + year={2025}, + eprint={2505.09388}, + archivePrefix={arXiv}, + primaryClass={cs.CL}, + url={https://arxiv.org/abs/2505.09388}, +} + +@article{Qwen2.5-VL, + title={Qwen2.5-VL Technical Report}, + author={Bai, Shuai and Chen, Keqin and Liu, Xuejing and Wang, Jialin and Ge, Wenbin and Song, Sibo and Dang, Kai and Wang, Peng and Wang, Shijie and Tang, Jun and Zhong, Humen and Zhu, Yuanzhi and Yang, Mingkun and Li, Zhaohai and Wan, Jianqiang and Wang, Pengfei and Ding, Wei and Fu, Zheren and Xu, Yiheng and Ye, Jiabo and Zhang, Xi and Xie, Tianbao and Cheng, Zesen and Zhang, Hang and Yang, Zhibo and Xu, Haiyang and Lin, Junyang}, + journal={arXiv preprint arXiv:2502.13923}, + year={2025} +} + +@article{Qwen2VL, + title={Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution}, + author={Wang, Peng and Bai, Shuai and Tan, Sinan and Wang, Shijie and Fan, Zhihao and Bai, Jinze and Chen, Keqin and Liu, Xuejing and Wang, Jialin and Ge, Wenbin and Fan, Yang and Dang, Kai and Du, Mengfei and Ren, Xuancheng and Men, Rui and Liu, Dayiheng and Zhou, Chang and Zhou, Jingren and Lin, Junyang}, + journal={arXiv preprint arXiv:2409.12191}, + year={2024} +} + +@article{Qwen-VL, + title={Qwen-VL: A Versatile Vision-Language Model for Understanding, Localization, Text Reading, and Beyond}, + author={Bai, Jinze and Bai, Shuai and Yang, Shusheng and Wang, Shijie and Tan, Sinan and Wang, Peng and Lin, Junyang and Zhou, Chang and Zhou, Jingren}, + journal={arXiv preprint arXiv:2308.12966}, + year={2023} +} +``` \ No newline at end of file diff --git a/configuration.json b/configuration.json new file mode 100644 index 0000000..d2e7099 --- /dev/null +++ b/configuration.json @@ -0,0 +1 @@ +{"task":"image-text-to-text"} \ No newline at end of file diff --git a/mmproj-Qwen3VL-8B-Instruct-F16.gguf b/mmproj-Qwen3VL-8B-Instruct-F16.gguf new file mode 100644 index 0000000..7ee9437 --- /dev/null +++ b/mmproj-Qwen3VL-8B-Instruct-F16.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca524100ebf825c9a870db1c580d03879e0da0ab2541697e2458e64891cf9d38 +size 1159029824 diff --git a/mmproj-Qwen3VL-8B-Instruct-Q8_0.gguf b/mmproj-Qwen3VL-8B-Instruct-Q8_0.gguf new file mode 100644 index 0000000..97274fd --- /dev/null +++ b/mmproj-Qwen3VL-8B-Instruct-Q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6ba85508d82f42590e6eb77d5340369ab6fecf107a7561d809523d8aa5f3bfd +size 752289728