mirror of
https://github.com/albertan017/LLM4Decompile.git
synced 2026-06-17 01:55:50 +00:00
Update README.md
This commit is contained in:
parent
0744e68da9
commit
f763df7ee4
1 changed files with 21 additions and 18 deletions
|
|
@ -2,25 +2,8 @@
|
|||
* [2023-05-16]: Please use ``decompile-eval-executable-gcc-obj.json``. The source codes are compiled into executable binaries and disassembled into assembly instructions.
|
||||
* [2023-04-10]: Add vllm evaluation script.
|
||||
|
||||
---
|
||||
To run the evaluation on single GPU and single process:
|
||||
```bash
|
||||
cd LLM4Decompile
|
||||
python ./evaluation/run_evaluation_llm4decompile_singleGPU.py
|
||||
```
|
||||
---
|
||||
To run the evaluation using TGI (10x faster, support multiple GPUs and multi-process):
|
||||
First, please install the text-generation-inference following the official [link](https://github.com/huggingface/text-generation-inference)
|
||||
```bash
|
||||
git clone https://github.com/albertan017/LLM4Decompile.git
|
||||
cd LLM4Decompile
|
||||
pip install -r requirements.txt
|
||||
|
||||
# Before running the evaluation script, please update the model_path to your local model path.
|
||||
bash ./scripts/run_evaluation_llm4decompile.sh
|
||||
```
|
||||
---
|
||||
To run the evaluation using [vLLM](https://github.com/vllm-project/vllm)
|
||||
To run the evaluation using [vLLM](https://github.com/vllm-project/vllm) (**Recommended**)
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
|
@ -40,3 +23,23 @@ python run_evaluation_llm4decompile_vllm.py \
|
|||
--temperature 0
|
||||
```
|
||||
|
||||
---
|
||||
To run the evaluation on single GPU and single process:
|
||||
```bash
|
||||
cd LLM4Decompile
|
||||
python ./evaluation/run_evaluation_llm4decompile_singleGPU.py
|
||||
```
|
||||
---
|
||||
To run the evaluation using TGI (10x faster, support multiple GPUs and multi-process):
|
||||
First, please install the text-generation-inference following the official [link](https://github.com/huggingface/text-generation-inference)
|
||||
```bash
|
||||
git clone https://github.com/albertan017/LLM4Decompile.git
|
||||
cd LLM4Decompile
|
||||
pip install -r requirements.txt
|
||||
|
||||
# Before running the evaluation script, please update the model_path to your local model path.
|
||||
bash ./scripts/run_evaluation_llm4decompile.sh
|
||||
```
|
||||
---
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue