arise-sustech commited on
Commit
877f2e7
1 Parent(s): 1ef1c3c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -78,8 +78,8 @@ model = AutoModelForCausalLM.from_pretrained(model_path,torch_dtype=torch.bfloat
78
  with open(fileName +'_' + opt_state +'.asm','r') as f:#original file
79
  asm_func = f.read()
80
  inputs = tokenizer(asm_func, return_tensors="pt").to(model.device)
81
- with torch.no_grad():
82
- outputs = model.generate(**inputs, max_new_tokens=200)
83
  c_func_decompile = tokenizer.decode(outputs[0][len(inputs[0]):-1])
84
  ```
85
 
 
78
  with open(fileName +'_' + opt_state +'.asm','r') as f:#original file
79
  asm_func = f.read()
80
  inputs = tokenizer(asm_func, return_tensors="pt").to(model.device)
81
+ with torch.no_grad():
82
+ outputs = model.generate(**inputs, max_new_tokens=200)
83
  c_func_decompile = tokenizer.decode(outputs[0][len(inputs[0]):-1])
84
  ```
85