sajattack commited on
Commit
a46d242
1 Parent(s): ca6ac52

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +26 -0
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ https://github.com/albertan017/LLM4Decompile converted to gguf for use with https://github.com/ggerganov/llama.cpp
2
+
3
+ # Usage
4
+ ```sh
5
+ ./main --model ./models/llm4decompile-6.7b-uo-f16.gguf --threads 16 --color -c 2048 -n -1 --repeat-penalty 1.2 -ngl 33 --temp 0.7 -f prompts/llm4decompile.txt
6
+ ```
7
+
8
+ `-ngl` and `--threads` values may be lowered to reduce gpu and cpu usage respectively
9
+
10
+ # Prompt Format
11
+ ```
12
+ # This is the assembly code:
13
+ 0000000000001139 <main>:
14
+ 1139: 55 push %rbp
15
+ 113a: 48 89 e5 mov %rsp,%rbp
16
+ 113d: 48 83 ec 10 sub $0x10,%rsp
17
+ 1141: 89 7d fc mov %edi,-0x4(%rbp)
18
+ 1144: 48 89 75 f0 mov %rsi,-0x10(%rbp)
19
+ 1148: 48 8d 05 b5 0e 00 00 lea 0xeb5(%rip),%rax
20
+ 114f: 48 89 c7 mov %rax,%rdi
21
+ 1152: e8 d9 fe ff ff call 1030 <puts@plt>
22
+ 1157: b8 00 00 00 00 mov $0x0,%eax
23
+ 115c: c9 leave
24
+ 115d: c3 ret
25
+ # What is the source code?
26
+ ```