mirror of
https://github.com/albertan017/LLM4Decompile.git
synced 2026-06-17 01:55:50 +00:00
add docker support
This commit is contained in:
parent
3eee3690d4
commit
cf685cdcbb
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
|
@ -169,6 +169,20 @@ print(f'original function:\n{func}')# Note we only decompile one function, where
|
|||
print(f'decompiled function:\n{c_func_decompile}')
|
||||
```
|
||||
|
||||
### Docker setup
|
||||
|
||||
```
|
||||
# build docker
|
||||
docker build -t llm4decompile .
|
||||
|
||||
# run docker with GPU
|
||||
docker run --gpus all -it --name llm4decompile llm4decompile /bin/bash
|
||||
|
||||
# run demo.py (choose a model suitable for your resources before running)
|
||||
cd ghidra
|
||||
python demo.py
|
||||
```
|
||||
|
||||
## HumanEval-Decompile
|
||||
Data are stored in ``llm4decompile/decompile-eval/decompile-eval-executable-gcc-obj.json``, using JSON list format. There are 164*4 (O0, O1, O2, O3) samples, each with five keys:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue