nielsr HF Staff commited on
Commit
c14e5eb
·
verified ·
1 Parent(s): 001c02b

Improve model card: Add pipeline tag, library name, paper, and code links

Browse files

This PR enhances the model card for the `sk2decompile-struct-6.7b` model by:

- Adding the `pipeline_tag: text-generation` to help users discover the model under relevant categories.
- Specifying the `library_name: transformers`, enabling the automated "How to use" code snippet on the Hugging Face Hub, as the model's `config.json` and `tokenizer_config.json` confirm `transformers` compatibility (e.g., `LlamaForCausalLM` architecture).
- Including a direct link to the paper: [Decompile-Bench: Million-Scale Binary-Source Function Pairs for Real-World Binary Decompilation](https://huggingface.co/papers/2505.12668).
- Providing a link to the associated GitHub repository: https://github.com/albertan017/LLM4Decompile.

The existing usage section has been retained as it directly refers to this model and its two-phase operation, and no `transformers`-based usage for the specific "structure recovery" task was found without making modifications to prompts, which is against the guidelines.

Files changed (1) hide show
  1. README.md +9 -2
README.md CHANGED
@@ -1,7 +1,14 @@
1
  ---
2
  license: mit
 
 
3
  ---
4
- SK²Decompile: LLM-based Two-Phase Binary Decompilation from Skeleton to Skin
 
 
 
 
 
5
 
6
  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:
7
 
@@ -13,4 +20,4 @@ Usage:
13
  ```
14
  python normalize_pseudo.py --input_json reverse_sample.json --output_json reverse_sample.json
15
  python sk2decompile.py --dataset_path reverse_sample.json --model_path LLM4Binary/sk2decompile-struct-6.7b --recover_model_path LLM4Binary/sk2decompile-ident-6.7
16
- ```
 
1
  ---
2
  license: mit
3
+ pipeline_tag: text-generation
4
+ library_name: transformers
5
  ---
6
+
7
+ # SK²Decompile: Structure Recovery Model
8
+
9
+ This repository contains the `sk2decompile-struct-6.7b` model, which is part of the SK²Decompile framework introduced in the paper [Decompile-Bench: Million-Scale Binary-Source Function Pairs for Real-World Binary Decompilation](https://huggingface.co/papers/2505.12668).
10
+
11
+ The full codebase and more details can be found on the [GitHub repository](https://github.com/albertan017/LLM4Decompile).
12
 
13
  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:
14
 
 
20
  ```
21
  python normalize_pseudo.py --input_json reverse_sample.json --output_json reverse_sample.json
22
  python sk2decompile.py --dataset_path reverse_sample.json --model_path LLM4Binary/sk2decompile-struct-6.7b --recover_model_path LLM4Binary/sk2decompile-ident-6.7
23
+ ```