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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- swe-bench
|
4 |
+
license: apache-2.0
|
5 |
+
metrics:
|
6 |
+
- pass@1
|
7 |
+
library_name: transformers
|
8 |
+
pipeline_tag: text-generation
|
9 |
+
base_model:
|
10 |
+
- Qwen/Qwen2.5-Coder-32B-Instruct
|
11 |
+
---
|
12 |
+
|
13 |
+
# <span style="color: #7FFF7F;">Skywork-SWE-32B GGUF Models</span>
|
14 |
+
|
15 |
+
|
16 |
+
## <span style="color: #7F7FFF;">Model Generation Details</span>
|
17 |
+
|
18 |
+
This model was generated using [llama.cpp](https://github.com/ggerganov/llama.cpp) at commit [`0142961a`](https://github.com/ggerganov/llama.cpp/commit/0142961a2e67909e33cdf410274b56c08c5dce7a).
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
---
|
25 |
+
|
26 |
+
## <span style="color: #7FFF7F;">Quantization Beyond the IMatrix</span>
|
27 |
+
|
28 |
+
I've been experimenting with a new quantization approach that selectively elevates the precision of key layers beyond what the default IMatrix configuration provides.
|
29 |
+
|
30 |
+
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:
|
31 |
+
👉 [Layer bumping with llama.cpp](https://github.com/Mungert69/GGUFModelBuilder/blob/main/model-converter/tensor_list_builder.py)
|
32 |
+
|
33 |
+
While this does increase model file size, it significantly improves precision for a given quantization level.
|
34 |
+
|
35 |
+
### **I'd love your feedback—have you tried this? How does it perform for you?**
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
|
40 |
+
---
|
41 |
+
|
42 |
+
<a href="https://readyforquantum.com/huggingface_gguf_selection_guide.html" style="color: #7FFF7F;">
|
43 |
+
Click here to get info on choosing the right GGUF model format
|
44 |
+
</a>
|
45 |
+
|
46 |
+
---
|
47 |
+
|
48 |
+
|
49 |
+
|
50 |
+
<!--Begin Original Model Card-->
|
51 |
+
|
52 |
+
|
53 |
+
# Skywork-SWE
|
54 |
+
|
55 |
+
|
56 |
+
|
57 |
+

|
58 |
+
|
59 |
+
📖 [Technical Report](https://huggingface.co/Skywork/Skywork-SWE-32B/resolve/main/assets/Report.pdf) | 📰 [Blog](https://quixotic-sting-239.notion.site/eb17f379610040ceb54da5d5d24065bd)
|
60 |
+
|
61 |
+
## Model Introduction
|
62 |
+
***Skywork-SWE-32B*** is a code agent model developed by [Skywork AI](https://skywork.ai/home), specifically designed for software engineering (SWE) tasks. It demonstrates strong performance across several key metrics:
|
63 |
+
- Skywork-SWE-32B attains 38.0% pass@1 accuracy on the [SWE-bench Verified](https://www.swebench.com) benchmark, outperforming previous open-source SoTA [Qwen2.5-Coder-32B-based](https://huggingface.co/Qwen/Qwen2.5-Coder-32B) LLMs built on the [OpenHands](https://github.com/All-Hands-AI/OpenHands) agent framework.
|
64 |
+
- When incorporated with test-time scaling techniques, the performance further improves to 47.0% accuracy, surpassing the previous SoTA results for sub-32B parameter models.
|
65 |
+
- We clearly demonstrate the data scaling law phenomenon for software engineering capabilities in LLMs, with no signs of saturation at 8209 collected training trajectories.
|
66 |
+
|
67 |
+
We also introduce an efficient and automated pipeline for SWE data collection, culminating in the creation of the Skywork-SWE dataset---a large-scale, high-quality dataset featuring comprehensive executable runtime environments. Detailed descriptions are available on our [technical report](https://huggingface.co/Skywork/Skywork-SWE-32B/resolve/main/assets/Report.pdf).
|
68 |
+
### 🔧 Model Details
|
69 |
+
|
70 |
+
| Model Name | Backbone LLM | HuggingFace Link | Technical Report | Blog |
|
71 |
+
|---|---------------|-----------|-|-|
|
72 |
+
|Skywork-SWE-32B | [🤗 Qwen2.5-Coder-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct) | [🤗 Skywork-SWE-32B](https://huggingface.co/Skywork/Skywork-SWE-32B) | [Technical Report](https://huggingface.co/Skywork/Skywork-SWE-32B/resolve/main/assets/Report.pdf) | [Blog](https://quixotic-sting-239.notion.site/eb17f379610040ceb54da5d5d24065bd)|
|
73 |
+
|
74 |
+
## Evaluation
|
75 |
+
|
76 |
+

|
77 |
+
|
78 |
+
Data Scaling Law for Pass@1 Accuracy on Qwen2.5-Coder-32B-Based LLMs Using the OpenHands v0.32.0 Code Agent Framework. Skywork-SWE-32B significantly outperforms previous Qwen2.5-Coder-32B-based LLMs, achieving the highest pass@1 accuracy without using verifiers or multiple rollouts.
|
79 |
+
|
80 |
+

|
81 |
+
|
82 |
+
With the incorporation of test-time scaling techniques, Skywork-SWE-32B further improves to 47.0% accuracy, surpassing the previous SoTA results for sub-32B parameter models.
|
83 |
+
|
84 |
+
## Performance Summary
|
85 |
+
- Skywork-SWE-32B:
|
86 |
+
```
|
87 |
+
Submission summary on SWE-bench verified split
|
88 |
+
==================================================
|
89 |
+
Resolved 190 instances (38.0%)
|
90 |
+
==================================================
|
91 |
+
Resolved by Repository
|
92 |
+
- astropy/astropy: 4/22 (18.18%)
|
93 |
+
- django/django: 99/231 (42.86%)
|
94 |
+
- matplotlib/matplotlib: 9/34 (26.47%)
|
95 |
+
- mwaskom/seaborn: 0/2 (0.0%)
|
96 |
+
- pallets/flask: 1/1 (100.0%)
|
97 |
+
- psf/requests: 4/8 (50.0%)
|
98 |
+
- pydata/xarray: 7/22 (31.82%)
|
99 |
+
- pylint-dev/pylint: 2/10 (20.0%)
|
100 |
+
- pytest-dev/pytest: 9/19 (47.37%)
|
101 |
+
- scikit-learn/scikit-learn: 17/32 (53.12%)
|
102 |
+
- sphinx-doc/sphinx: 13/44 (29.55%)
|
103 |
+
- sympy/sympy: 25/75 (33.33%)
|
104 |
+
==================================================
|
105 |
+
Resolved by Time
|
106 |
+
- 2013: 2/3 (66.67%)
|
107 |
+
- 2014: 2/2 (100.0%)
|
108 |
+
- 2015: 0/1 (0.0%)
|
109 |
+
- 2016: 2/2 (100.0%)
|
110 |
+
- 2017: 5/16 (31.25%)
|
111 |
+
- 2018: 7/24 (29.17%)
|
112 |
+
- 2019: 46/98 (46.94%)
|
113 |
+
- 2020: 43/108 (39.81%)
|
114 |
+
- 2021: 27/86 (31.4%)
|
115 |
+
- 2022: 35/102 (34.31%)
|
116 |
+
- 2023: 21/58 (36.21%)
|
117 |
+
```
|
118 |
+
- Skywork-SWE-32B + TTS (Bo8):
|
119 |
+
```
|
120 |
+
Submission summary on SWE-bench verified split
|
121 |
+
==================================================
|
122 |
+
Resolved 235 instances (47.0%)
|
123 |
+
==================================================
|
124 |
+
Resolved by Repository
|
125 |
+
- astropy/astropy: 8/22 (36.36%)
|
126 |
+
- django/django: 115/231 (49.78%)
|
127 |
+
- matplotlib/matplotlib: 15/34 (44.12%)
|
128 |
+
- mwaskom/seaborn: 0/2 (0.0%)
|
129 |
+
- pallets/flask: 1/1 (100.0%)
|
130 |
+
- psf/requests: 3/8 (37.5%)
|
131 |
+
- pydata/xarray: 14/22 (63.64%)
|
132 |
+
- pylint-dev/pylint: 4/10 (40.0%)
|
133 |
+
- pytest-dev/pytest: 10/19 (52.63%)
|
134 |
+
- scikit-learn/scikit-learn: 22/32 (68.75%)
|
135 |
+
- sphinx-doc/sphinx: 12/44 (27.27%)
|
136 |
+
- sympy/sympy: 31/75 (41.33%)
|
137 |
+
==================================================
|
138 |
+
Resolved by Time
|
139 |
+
- 2013: 1/3 (33.33%)
|
140 |
+
- 2014: 1/2 (50.0%)
|
141 |
+
- 2015: 0/1 (0.0%)
|
142 |
+
- 2016: 2/2 (100.0%)
|
143 |
+
- 2017: 6/16 (37.5%)
|
144 |
+
- 2018: 9/24 (37.5%)
|
145 |
+
- 2019: 52/98 (53.06%)
|
146 |
+
- 2020: 48/108 (44.44%)
|
147 |
+
- 2021: 40/86 (46.51%)
|
148 |
+
- 2022: 46/102 (45.1%)
|
149 |
+
- 2023: 30/58 (51.72%)
|
150 |
+
```
|
151 |
+
|
152 |
+
## Usage
|
153 |
+
|
154 |
+
### Install vLLM package
|
155 |
+
```
|
156 |
+
# Install vLLM version 0.9.0.1.
|
157 |
+
# For example, if your CUDA version is 12.8, use the following command:
|
158 |
+
pip install vllm==0.9.0.1 --extra-index-url https://download.pytorch.org/whl/cu128
|
159 |
+
```
|
160 |
+
|
161 |
+
### Launch a server to deploy Skywork-SWE-32B
|
162 |
+
|
163 |
+
```
|
164 |
+
vllm serve ${MODEL_PATH} —served-model-name ${SERVED_MODEL_NAME} --host 0.0.0.0 --port 8000 --gpu-memory-utilization 0.95 --tensor-parallel-size 8
|
165 |
+
```
|
166 |
+
|
167 |
+
Since our model has 32 billion parameters and supports a 32K context length, we recommend launching the model server with at least 2 GPUs equipped with sufficient VRAM to ensure efficient inference.
|
168 |
+
### Set up OpenHands framework
|
169 |
+
```
|
170 |
+
git clone https://github.com/All-Hands-AI/OpenHands.git
|
171 |
+
cd OpenHands
|
172 |
+
git checkout tags/0.32.0
|
173 |
+
make build
|
174 |
+
```
|
175 |
+
The official documentation of OpenHands: [SWE-Bench Evaluation with OpenHands SWE-Bench Docker Image](https://github.com/All-Hands-AI/OpenHands/tree/main/evaluation/benchmarks/swe_bench)
|
176 |
+
|
177 |
+
### Create the corresponding config file:
|
178 |
+
```
|
179 |
+
[core]
|
180 |
+
workspace_base="./workspace"
|
181 |
+
|
182 |
+
[llm.my-oss-model]
|
183 |
+
model = "openai/${SERVED_MODEL_NAME}"
|
184 |
+
base_url = "http://0.0.0.0:8000/v1"
|
185 |
+
api_key="vllm"
|
186 |
+
max_message_chars=32768
|
187 |
+
max_input_tokens=32768
|
188 |
+
max_output_tokens=8192
|
189 |
+
log_completions=true
|
190 |
+
temperature=0.0
|
191 |
+
```
|
192 |
+
|
193 |
+
If you want to run the OpenHands agent with test-time scaling techniques (a Best-of-N method based on the critic model), please refer to the [blog](https://www.all-hands.dev/blog/sota-on-swe-bench-verified-with-inference-time-scaling-and-critic-model) for detailed instructions. You will need to switch to the [feature/llm-critic](https://github.com/All-Hands-AI/OpenHands/tree/feature/llm-critic) branch and deploy the [critic model](https://huggingface.co/all-hands/openhands-critic-32b-exp-20250417) accordingly. Additionally, you need to add the following parameters into the configuration file:
|
194 |
+
```
|
195 |
+
use_critic=true
|
196 |
+
critic_model="critic_model"
|
197 |
+
critic_base_url="**********"
|
198 |
+
critic_api_key="************"
|
199 |
+
critic_num_candidates=2
|
200 |
+
```
|
201 |
+
|
202 |
+
### Rollout on SWE-Bench Instances
|
203 |
+
```
|
204 |
+
./evaluation/benchmarks/swe_bench/scripts/run_infer.sh [model_config] [git-version] [agent] [eval_limit] [max_iter] [num_workers] [dataset] [dataset_split]
|
205 |
+
|
206 |
+
# Example
|
207 |
+
./evaluation/benchmarks/swe_bench/scripts/run_infer.sh llm.my-oss-model HEAD CodeActAgent 500 100 1 princeton-nlp/SWE-bench_Verified test
|
208 |
+
```
|
209 |
+
|
210 |
+
### Evaluate generated patches
|
211 |
+
```
|
212 |
+
./evaluation/benchmarks/swe_bench/scripts/eval_infer.sh \
|
213 |
+
./evaluation_outputs/outputs/princeton-nlp__SWE-bench_Lite-test/CodeActAgent/my-oss-model_maxiter_100_N_v0.32.0-no-hint-run_1/output.jsonl
|
214 |
+
```
|
215 |
+
|
216 |
+
## Acknowledgements
|
217 |
+
We would like to thank the contributors of the [OpenHands](https://github.com/All-Hands-AI/OpenHands) and [AllHands Critic](https://huggingface.co/all-hands/openhands-critic-32b-exp-20250417) repositories for their open research and valuable contributions.
|
218 |
+
|
219 |
+
## Citation
|
220 |
+
If you use Skywork-SWE in your research, please consider citing our work using the following BibTeX entry:
|
221 |
+
```
|
222 |
+
@misc{skywork-swe,
|
223 |
+
title={Skywork-SWE: Unveiling Data Scaling Laws for Software Engineering in LLMs},
|
224 |
+
author={Liang Zeng, Yongcong Li, Yuzhen Xiao, Changshi Li, Chris Yuhao Liu, Rui Yan, Tianwen Wei, Jujie He, Xuchen Song, Yang Liu, and Yahui Zhou},
|
225 |
+
howpublished={\url{https://quixotic-sting-239.notion.site/eb17f379610040ceb54da5d5d24065bd}},
|
226 |
+
note={Notion Blog},
|
227 |
+
year={2025},
|
228 |
+
}
|
229 |
+
```
|
230 |
+
|
231 |
+
<!--End Original Model Card-->
|
232 |
+
|
233 |
+
---
|
234 |
+
|
235 |
+
# <span id="testllm" style="color: #7F7FFF;">🚀 If you find these models useful</span>
|
236 |
+
|
237 |
+
Help me test my **AI-Powered Quantum Network Monitor Assistant** with **quantum-ready security checks**:
|
238 |
+
|
239 |
+
👉 [Quantum Network Monitor](https://readyforquantum.com/?assistant=open&utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme)
|
240 |
+
|
241 |
+
|
242 |
+
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)
|
243 |
+
|
244 |
+
💬 **How to test**:
|
245 |
+
Choose an **AI assistant type**:
|
246 |
+
- `TurboLLM` (GPT-4.1-mini)
|
247 |
+
- `HugLLM` (Hugginface Open-source models)
|
248 |
+
- `TestLLM` (Experimental CPU-only)
|
249 |
+
|
250 |
+
### **What I’m Testing**
|
251 |
+
I’m pushing the limits of **small open-source models for AI network monitoring**, specifically:
|
252 |
+
- **Function calling** against live network services
|
253 |
+
- **How small can a model go** while still handling:
|
254 |
+
- Automated **Nmap security scans**
|
255 |
+
- **Quantum-readiness checks**
|
256 |
+
- **Network Monitoring tasks**
|
257 |
+
|
258 |
+
🟡 **TestLLM** – Current experimental model (llama.cpp on 2 CPU threads on huggingface docker space):
|
259 |
+
- ✅ **Zero-configuration setup**
|
260 |
+
- ⏳ 30s load time (slow inference but **no API costs**) . No token limited as the cost is low.
|
261 |
+
- 🔧 **Help wanted!** If you’re into **edge-device AI**, let’s collaborate!
|
262 |
+
|
263 |
+
### **Other Assistants**
|
264 |
+
🟢 **TurboLLM** – Uses **gpt-4.1-mini** :
|
265 |
+
- **It performs very well but unfortunatly OpenAI charges per token. For this reason tokens usage is limited.
|
266 |
+
- **Create custom cmd processors to run .net code on Quantum Network Monitor Agents**
|
267 |
+
- **Real-time network diagnostics and monitoring**
|
268 |
+
- **Security Audits**
|
269 |
+
- **Penetration testing** (Nmap/Metasploit)
|
270 |
+
|
271 |
+
🔵 **HugLLM** – Latest Open-source models:
|
272 |
+
- 🌐 Runs on Hugging Face Inference API. Performs pretty well using the lastest models hosted on Novita.
|
273 |
+
|
274 |
+
### 💡 **Example commands you could test**:
|
275 |
+
1. `"Give me info on my websites SSL certificate"`
|
276 |
+
2. `"Check if my server is using quantum safe encyption for communication"`
|
277 |
+
3. `"Run a comprehensive security audit on my server"`
|
278 |
+
4. '"Create a cmd processor to .. (what ever you want)" Note you need to install a [Quantum Network Monitor Agent](https://readyforquantum.com/Download/?utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme) to run the .net code on. This is a very flexible and powerful feature. Use with caution!
|
279 |
+
|
280 |
+
### Final Word
|
281 |
+
|
282 |
+
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.
|
283 |
+
|
284 |
+
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.
|
285 |
+
|
286 |
+
I'm also open to job opportunities or sponsorship.
|
287 |
+
|
288 |
+
Thank you! 😊
|