初始化项目,由ModelHub XC社区提供模型

Model: ZuzeTt/Qwen3-VL-4B-Instruct-heretic-Imatrix-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-05-30 12:11:17 +08:00
commit 7d4f6e1a06
26 changed files with 367 additions and 0 deletions

71
.gitattributes vendored Normal file
View File

@@ -0,0 +1,71 @@
*.7z filter=lfs diff=lfs merge=lfs -text
*.arrow filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.ckpt 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
*.mlmodel filter=lfs diff=lfs merge=lfs -text
*.model filter=lfs diff=lfs merge=lfs -text
*.msgpack filter=lfs diff=lfs merge=lfs -text
*.npy filter=lfs diff=lfs merge=lfs -text
*.npz 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
*.pickle filter=lfs diff=lfs merge=lfs -text
*.pkl 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
*.safetensors filter=lfs diff=lfs merge=lfs -text
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
*.tar.* 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
*.wasm filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*tfevents* filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-f16.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-mmproj-f16.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-Q4_0-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-Q4_K_M-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-Q8_0-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-Q4_K_S-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-Q2_K-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-Q3_K_M-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-Q3_K_S-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-Q5_0-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-Q5_K_M-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-Q5_K_S-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-Q6_K-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-4B-Thinking-2507-Heretic-Q4_K_S-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-4B-Thinking-2507-Heretic-Q4_K_M-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-4B-Thinking-2507-Heretic-Q2_K-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-4B-Thinking-2507-Heretic-Q3_K_M-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-4B-Thinking-2507-Heretic-Q4_0-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-4B-Thinking-2507-Heretic-Q6_K-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-4B-Thinking-2507-Heretic-Q3_K_S-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-4B-Thinking-2507-Heretic-Q5_K_M-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-4B-Thinking-2507-Heretic-f16.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-4B-Thinking-2507-Heretic-Q5_K_S-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-4B-Thinking-2507-Heretic-Q8_0-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-4B-Thinking-2507-Heretic-Q5_0-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-IQ1_M-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-IQ1_S-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-IQ2_XS-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-IQ2_S-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-IQ2_XXS-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-IQ3_S-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-IQ3_XS-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-IQ3_XXS-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-Q3_K_L-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-IQ4_NL-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3-VL-4B-Instract-heretic-IQ4_XS-imatrix.gguf filter=lfs diff=lfs merge=lfs -text

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c4eba5b6f8059318d903b7e46ea78a446739d14e06fbd87ca2801457ae0b6404
size 8051286368

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c724809fa25ef560f5789765353b83aa122f7dfb50e60e1b91c4c939adfbdb1f
size 1127019104

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f27bf1528cb40b29eff58d59637201f0e743978f423206e77f9edd1eba65e9f1
size 1055257184

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ccf16e99659c98e2197bd5bfef19fe6cfa35148dda21fbbdf6e78efd9bb35a34
size 1417302624

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c0471acfef7d3e9402c7a30a29a6b04590f296131afea621418432ba70dbede1
size 1354101344

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9b57c7b10b59aa0cc6c2278d8923881a7af017f71f748a8e58040524dbdd43dc
size 1246622304

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0dc54e33d61b84aa8ba67ecd6def1e46ea25ac1cdf9ba13e7d9f33b766325d73
size 1899532384

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:386d2e3b1e360cc224a63d1f63d6323afec5be9e355d9bb45697c58403a6ec22
size 1814376544

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db82b58c9433c779a0611033d048c8692c9cf77bae6b62e8828ed1a79082935b
size 1670189664

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9edda58af4b2cde664ecdb9d53ee15c55649d15e13b1c164ef59a1ce1e3df101
size 2381344864

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b23ed9492c841d350171a54893f8a086e640902919b755da0af4a904faf7dbe1
size 2270752864

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:34a52431759ea614d0fd4109a9dcba5fb7f0679162157f046268d22e8c005d26
size 1669501024

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1b76881b24bcb682e1095b70bb643aed7b0cbec1707654cf20588507b91892c9
size 2239787104

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:990194f0068a05cea362a48a5f784e11cc85f928115f368d1ced4c8c990af75b
size 2075619424

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4fa9682c9722cc0a2c0c22ff7576133d811a46269a0c2e4f405f047c312bd82f
size 1886998624

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d7a80acfd072e20a62b2fc30e1792d4629afbc3eeaf3a7d96701932e55a23d89
size 2375774304

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:73e76145456ef3b0f562e575681b0d4d05356c42b5de86f318bc5315b4d6e0ac
size 2497282144

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:09e9aba8afd768943bb333efc0189f4ab649e49c9eecfb3be1d878c3e68e4086
size 2383310944

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bf4993f1d2672f40406f3560b651c400dc8aeb604a02247cdc1d560c0eb60ab1
size 2829938784

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7370ac5825473620f6278908b12ab01ab69bf89b3f8ac99bb5b28be4fb01c85d
size 2889515104

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:84ff9952883eb1d5268976a628b156dc57173aa9dc6776898266d09927642390
size 2823712864

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:afdbbf137187f0016a23ce7888718be5e537290d9d020f9bca23e70a8224d3fd
size 3306262624

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:991e4cc2c46e4fec1d29eb2ad0de9d1a87058fc1961d6adffe03b1187375a16c
size 4280406624

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d20fea7b0226a265889448d6c52d2ebe3c8604a7ff77d3e2088f0e4a588ffed
size 836180448

224
README.md Normal file
View File

@@ -0,0 +1,224 @@
---
license: apache-2.0
pipeline_tag: image-text-to-text
library_name: transformers
tags:
- heretic
- uncensored
- decensored
- abliterated
---
# This is a decensored version of [Qwen/Qwen3-VL-4B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-4B-Instruct), made using [Heretic](https://github.com/p-e-w/heretic) v1.0.1
Original model: https://huggingface.co/georgehenney/Qwen3-VL-4B-Instruct-heretic-8refusal
## Abliteration parameters
| Parameter | Value |
| :-------- | :---: |
| **direction_index** | 15.17 |
| **attn.o_proj.max_weight** | 1.47 |
| **attn.o_proj.max_weight_position** | 25.63 |
| **attn.o_proj.min_weight** | 1.07 |
| **attn.o_proj.min_weight_distance** | 18.22 |
| **mlp.down_proj.max_weight** | 1.17 |
| **mlp.down_proj.max_weight_position** | 27.14 |
| **mlp.down_proj.min_weight** | 1.07 |
| **mlp.down_proj.min_weight_distance** | 19.55 |
## Performance
| Metric | This model | Original model ([Qwen/Qwen3-VL-4B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-4B-Instruct)) |
| :----- | :--------: | :---------------------------: |
| **KL divergence** | 0.27 | 0 *(by definition)* |
| **Refusals** | 8/100 | 92/100 |
-----
<a href="https://chat.qwenlm.ai/" target="_blank" style="margin: 2px;">
<img alt="Chat" src="https://img.shields.io/badge/%F0%9F%92%9C%EF%B8%8F%20Qwen%20Chat%20-536af5" style="display: inline-block; vertical-align: middle;"/>
</a>
# Qwen3-VL-4B-Instruct
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 reasoningenhanced Thinking editions for flexible, ondemand 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 textvision fusion for lossless, unified comprehension.
#### Model Architecture Updates:
<p align="center">
<img src="https://qianwen-res.oss-accelerate.aliyuncs.com/Qwen3-VL/qwen3vl_arc.jpg" width="80%"/>
<p>
1. **Interleaved-MRoPE**: Fullfrequency allocation over time, width, and height via robust positional embeddings, enhancing longhorizon video reasoning.
2. **DeepStack**: Fuses multilevel ViT features to capture finegrained details and sharpen imagetext alignment.
3. **TextTimestamp Alignment:** Moves beyond TRoPE to precise, timestampgrounded event localization for stronger video temporal modeling.
This is the weight repository for Qwen3-VL-4B-Instruct.
---
## 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)
## Quickstart
Below, we provide simple examples to show how to use Qwen3-VL with 🤖 ModelScope and 🤗 Transformers.
The code of Qwen3-VL has been in the latest Hugging Face transformers and we advise you to build from source with command:
```
pip install git+https://github.com/huggingface/transformers
# pip install transformers==4.57.0 # currently, V4.57.0 is not released
```
### Using 🤗 Transformers to Chat
Here we show a code snippet to show how to use the chat model with `transformers`:
```python
from transformers import Qwen3VLForConditionalGeneration, AutoProcessor
# default: Load the model on the available device(s)
model = Qwen3VLForConditionalGeneration.from_pretrained(
"Qwen/Qwen3-VL-4B-Instruct", dtype="auto", device_map="auto"
)
# We recommend enabling flash_attention_2 for better acceleration and memory saving, especially in multi-image and video scenarios.
# model = Qwen3VLForConditionalGeneration.from_pretrained(
# "Qwen/Qwen3-VL-4B-Instruct",
# dtype=torch.bfloat16,
# attn_implementation="flash_attention_2",
# device_map="auto",
# )
processor = AutoProcessor.from_pretrained("Qwen/Qwen3-VL-4B-Instruct")
messages = [
{
"role": "user",
"content": [
{
"type": "image",
"image": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg",
},
{"type": "text", "text": "Describe this image."},
],
}
]
# Preparation for inference
inputs = processor.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_dict=True,
return_tensors="pt"
)
inputs = inputs.to(model.device)
# Inference: Generation of the output
generated_ids = model.generate(**inputs, max_new_tokens=128)
generated_ids_trimmed = [
out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
]
output_text = processor.batch_decode(
generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
)
print(output_text)
```
### 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}
}
```