Qwen2.5-decompile-14B-r2
fine-tune for decompiling assembly to C++
2 min readupdated
The model is trained on top of Qwen2.5-Coder-14B-Instruct and specializes in matching decompilation. Using x64 assembly listings compiled with MSVC (Visual C++ 2012, x64, /O2), it generates C++ source code that compiles into the exact same bytes. The model is designed to deliver accurate results on the first try and is a great fit for developers, reverse engineers, and security researchers.
Key features
- Specialization in x64 assembly (MSVC 2012 /O2) with the generation of an accurate source code equivalent.
- Superiority over the base model: 41/100 successful byte-for-byte matches on test functions compared to 26 for the original.
- Availability of quantized versions in GGUF format (Q5_K_M and IQ3_XS) for various VRAM capacities.
- Availability of a LoRA adapter (rank 32) for deployment on the full bf16 model.
What you can do
- Restore readable C++ code from assembly listings when analyzing binaries.
- Integrate the model into local workflows via llama.cpp with quantization suited for 8 GB or 16 GB VRAM.
- Explore the capabilities of AI models in reverse engineering and vulnerability research.
Example
Use the model's standard chat template by passing compiler parameters in the system prompt and the function's assembly listing in the user prompt.
Read more
DetailsBenchmarks: 41/100 exact matches on the first response (base model: 26/100).
Hardware: from 8 GB VRAM for IQ3_XS and from 16 GB for Q5_K_M (at 8k–16k context).
Limitations: trained only on MSVC 2012 x64 /O2; code longer than 128 bytes requires refinement loops.
Training: LoRA on full bf16, 2 epochs, 4603 examples (10.4 million tokens).










Comments