Downloads · 30 days
2.1K
22% of all-time downloads
LLM4Binary/sk2decompile-ident-6.7b
sk2decompile-ident-6.7b is a machine learning model from LLM4Binary. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
--- license: mit --- SK²Decompile: LLM-based Two-Phase Binary Decompilation from Skeleton to Skin
Downloads · 30 days
2.1K
22% of all-time downloads
All-time downloads
9.7K
Public
Parameters
6.7B
27 GB on disk
Likes
5
Public
Click a slice to open those files.
.safetensors27 GB · 100%
From the Hugging Face model README
SK²Decompile: LLM-based Two-Phase Binary Decompilation from Skeleton to Skin
SK²Decompile is a novel two-phase framework for binary decompilation using Large Language Models (LLMs). Our approach decomposes the complex decompilation task into two manageable phases:
Phase 1 Structure Recovery (Skeleton): Transform binary/pseudo-code into obfuscated intermediate representations 🤗 HF Link
Phase 2 Identifier Naming (Skin): Generate human-readable source code with meaningful identifiers (current model)
Usage:
0. Install vllm and transformers via pip; install clang-format via apt.
python normalize_pseudo.py --input_json reverse_sample.json --output_json reverse_sample.json
Run inference:
python sk2decompile.py --dataset_path reverse_sample.json \
--model_path LLM4Binary/sk2decompile-struct-6.7b \
--recover_model_path LLM4Binary/sk2decompile-ident-6.7b
Project overview: https://github.com/albertan017/LLM4Decompile/tree/main/sk2decompile
Notes:
vllm to recover function structure (sk2decompile-struct) and variable names (sk2decompile-ident) step by step.