--- pipeline_tag: image-text-to-text library_name: transformers license: mit base_model: - Qwen/Qwen2.5-VL-7B-Instruct tags: - Multimodal Reward Model - Reward Model --- # Skywork-VL-Reward-7B GGUF Models ## Model Generation Details This model was generated using [llama.cpp](https://github.com/ggerganov/llama.cpp) at commit [`1f63e75f`](https://github.com/ggerganov/llama.cpp/commit/1f63e75f3b5dc7f44dbe63c8a41d23958fe95bc0). --- ## Quantization Beyond the IMatrix I've been experimenting with a new quantization approach that selectively elevates the precision of key layers beyond what the default IMatrix configuration provides. In my testing, standard IMatrix quantization underperforms at lower bit depths, especially with Mixture of Experts (MoE) models. To address this, I'm using the `--tensor-type` option in `llama.cpp` to manually "bump" important layers to higher precision. You can see the implementation here: 👉 [Layer bumping with llama.cpp](https://github.com/Mungert69/GGUFModelBuilder/blob/main/model-converter/tensor_list_builder.py) While this does increase model file size, it significantly improves precision for a given quantization level. ### **I'd love your feedback—have you tried this? How does it perform for you?** --- Click here to learn more about choosing the right GGUF model format ---
Skywork
## 🔥News **May 12, 2025**: Our technical report is now available on arXiv and we welcome citations:[Skywork-VL Reward: An Effective Reward Model for Multimodal Understanding and Reasoning](https://arxiv.org/abs/2505.07263) **April 24, 2025**: We released **Skywork-VL-Reward-7B**, A state-of-the-art multimodal reward model on [VLRewardBench](https://huggingface.co/spaces/MMInstruction/VL-RewardBench), and have released our technical report on the [R1V GitHub](https://github.com/SkyworkAI/Skywork-R1V/blob/main/SkyworkVL_RM.pdf) repository. ## Introduction The lack of multimodal reward models on the market has become a major bottleneck restricting the development of multimodal reinforcement technology. We open source the 7B multimodal reward model Skywork-VL-Reward, injecting new momentum into the industry and opening a new chapter in multimodal reinforcement learning Skywork-VL-Reward is based on the [Qwen2.5-VL-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct) architecture with the addition of a value head structure for training reward model. We obtained SOTA of 73.1 in [VL-RewardBench](https://vl-rewardbench.github.io/) and high score of 90.1 in [RewardBench](https://huggingface.co/spaces/allenai/reward-bench). In addition, our MPO trained on Skywork-R1V-2.0 further validates the effectiveness of the model. We hope that this multimodal reward model will contribute to the open source community! Please refer to our technical report for more details. ## Technical Report [Skywork-VL Reward: An Effective Reward Model for Multimodal Understanding and Reasoning](https://arxiv.org/abs/2505.07263) ## Evaluation

VL-RewardBench

Model NameModel SizeGeneralHallucinationReasoningOverall AccuracyMacro Average
Proprietary Models
Claude-3.5-Sonnet(2024-06-22)-43.455.062.355.353.6
Gemini-1.5-Flash (2024-09-24)-47.859.658.457.655.3
GPT-4o(2024-08-06)-49.167.670.565.862.4
Gemini-1.5-Pro(2024-09-24)-50.872.564.267.262.5
Gemini-2.0-flash-exp(2024-12)-50.872.670.168.864.5
Open-Source Models
Qwen2-VL-7B-Instruct7B31.619.151.128.333.9
MAmmoTH-VL-8B8B36.040.052.042.242.7
Qwen2.5-VL-7B-Instruct7B43.442.063.048.049.5
InternVL3-8B8B60.644.062.357.055.6
IXC-2.5-Reward-7B7B80.365.360.466.368.6
Qwen2-VL-72B-Instruct72B38.132.858.039.543.0
Molmo-72B-092472B33.942.354.944.143.7
QVQ-72B-Preview72B41.846.251.246.446.4
Qwen2.5-VL-72B-Instruct72B47.846.863.551.652.7
InternVL3-78B78B67.852.564.563.361.6
Skywork-VL Reward(Ours)7B66.080.061.073.169.0
---

RewardBench

Model NameChatChat HardSafetyReasoningScore
Language-Only Reward Models
InternLM2-7B-Reward99.269.587.294.587.6
Skywork-Reward-Llama3.1-8B95.887.390.896.292.5
Skywork-Reward-Llama-3.1-8B-v0.294.788.492.796.793.1
QRM-Llama3.1-8B-v296.486.892.696.893.1
Multi-Modal Reward Models
Qwen2-VL-7B-Instruct65.150.955.868.360.0
InternVL3-8B97.250.483.683.978.8
Qwen2.5-VL-7B-Instruct94.363.884.186.282.1
IXC-2.5-Reward-7B90.883.887.890.088.1
Skywork-VL Reward(Ours)90.087.591.191.890.1
--- ## Usage ### Set Up the Environment ```shell conda create -n vl-reward python=3.11 conda activate vl-reward bash setup.sh ``` ### Run the Inference Code ```python import torch from transformers import AutoProcessor, Qwen2_5_VLForConditionalGeneration from trl import AutoModelForCausalLMWithValueHead from qwen_vl_utils import process_vision_info from transformers.utils import cached_file from safetensors import safe_open processor = AutoProcessor.from_pretrained("Skywork/Skywork-VL-Reward-7B") # The default range for the number of visual tokens per image in the model is 4-16384. # You can set min_pixels and max_pixels according to your needs, such as a token range of 256-1280, to balance performance and cost. # min_pixels = 256*28*28 # max_pixels = 1280*28*28 # processor = AutoProcessor.from_pretrained("Skywork/Skywork-VL-Reward-7B", min_pixels=min_pixels, max_pixels=max_pixels) model = Qwen2_5_VLForConditionalGeneration.from_pretrained( "Skywork/Skywork-VL-Reward-7B", device_map="auto", torch_dtype=torch.bfloat16, ) # We recommend enabling flash_attention_2 for better acceleration and memory saving # pip install flash-attn --no-build-isolation # # model = Qwen2_5_VLForConditionalGeneration.from_pretrained( # "Skywork/Skywork-VL-Reward-7B", # device_map="auto", # torch_dtype=torch.bfloat16, # attn_implementation="flash_attention_2", # ) model = AutoModelForCausalLMWithValueHead.from_pretrained(model) vhead_file = cached_file( path_or_repo_id="Skywork/Skywork-VL-Reward-7B", filename="value_head.safetensors" ) with safe_open(vhead_file, framework="pt", device="cpu") as f: vhead_params = {key: f.get_tensor(key) for key in f.keys()} model.load_state_dict(vhead_params, strict=False) model.requires_grad_(False) model.eval() # score: 23.89 # if you use flash_attention_2 the score will be 23.76 demo_image = "demo.jpg" demo_question = "Hint: Please answer the question and provide the correct option letter, e.g., A, B, C, D, at the end.\nQuestion: Is Purple the highest value?\nChoices:\n(A) no\n(B) yes" demo_answer = "The answer is: B" messages = [ { "role": "user", "content": [ { "type": "image", "image": demo_image, }, { "type": "text", "text": demo_question, }, ], }, { "role": "assistant", "content": demo_answer, }, ] text = processor.apply_chat_template( messages, tokenize=False, add_generation_prompt=False ) image_inputs, video_inputs = process_vision_info(messages) inputs = processor( text=[text], images=image_inputs, videos=video_inputs, padding=True, return_tensors="pt", ) inputs = inputs.to("cuda") values = model(**inputs, return_dict=True, use_cache=False)[-1] scores = values.gather( dim=-1, index=(inputs["attention_mask"].sum(dim=-1, keepdim=True) - 1) ) score = scores[0].item() print("Reward Score is: ", score) ``` ## Citation If you use this work in your research, please cite: ``` @misc{wang2025skyworkvlrewardeffectivereward, title={Skywork-VL Reward: An Effective Reward Model for Multimodal Understanding and Reasoning}, author={Xiaokun Wang and Peiyu Wang and Jiangbo Pei and Wei Shen and Yi Peng and Yunzhuo Hao and Weijie Qiu and Ai Jian and Tianyidan Xie and Xuchen Song and Yang Liu and Yahui Zhou}, year={2025}, eprint={2505.07263}, archivePrefix={arXiv}, primaryClass={cs.CV}, url={https://arxiv.org/abs/2505.07263}, } ``` --- # 🚀 If you find these models useful Help me test my **AI-Powered Quantum Network Monitor Assistant** with **quantum-ready security checks**: 👉 [Quantum Network Monitor](https://readyforquantum.com/?assistant=open&utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme) The full Open Source Code for the Quantum Network Monitor Service available at my github repos ( repos with NetworkMonitor in the name) : [Source Code Quantum Network Monitor](https://github.com/Mungert69). You will also find the code I use to quantize the models if you want to do it yourself [GGUFModelBuilder](https://github.com/Mungert69/GGUFModelBuilder) 💬 **How to test**: Choose an **AI assistant type**: - `TurboLLM` (GPT-4.1-mini) - `HugLLM` (Hugginface Open-source models) - `TestLLM` (Experimental CPU-only) ### **What I’m Testing** I’m pushing the limits of **small open-source models for AI network monitoring**, specifically: - **Function calling** against live network services - **How small can a model go** while still handling: - Automated **Nmap security scans** - **Quantum-readiness checks** - **Network Monitoring tasks** 🟡 **TestLLM** – Current experimental model (llama.cpp on 2 CPU threads on huggingface docker space): - ✅ **Zero-configuration setup** - ⏳ 30s load time (slow inference but **no API costs**) . No token limited as the cost is low. - 🔧 **Help wanted!** If you’re into **edge-device AI**, let’s collaborate! ### **Other Assistants** 🟢 **TurboLLM** – Uses **gpt-4.1-mini** : - **It performs very well but unfortunatly OpenAI charges per token. For this reason tokens usage is limited. - **Create custom cmd processors to run .net code on Quantum Network Monitor Agents** - **Real-time network diagnostics and monitoring** - **Security Audits** - **Penetration testing** (Nmap/Metasploit) 🔵 **HugLLM** – Latest Open-source models: - 🌐 Runs on Hugging Face Inference API. Performs pretty well using the lastest models hosted on Novita. ### 💡 **Example commands you could test**: 1. `"Give me info on my websites SSL certificate"` 2. `"Check if my server is using quantum safe encyption for communication"` 3. `"Run a comprehensive security audit on my server"` 4. '"Create a cmd processor to .. (what ever you want)" Note you need to install a Quantum Network Monitor Agent to run the .net code from. This is a very flexible and powerful feature. Use with caution! ### Final Word I fund the servers used to create these model files, run the Quantum Network Monitor service, and pay for inference from Novita and OpenAI—all out of my own pocket. All the code behind the model creation and the Quantum Network Monitor project is [open source](https://github.com/Mungert69). Feel free to use whatever you find helpful. If you appreciate the work, please consider [buying me a coffee](https://www.buymeacoffee.com/mahadeva) ☕. Your support helps cover service costs and allows me to raise token limits for everyone. I'm also open to job opportunities or sponsorship. Thank you! 😊