PEFT
szalontaib commited on
Commit
5b0196f
·
verified ·
1 Parent(s): 099ce61

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -22,7 +22,6 @@ This is a model capable of injecting bugs into correct Python programs. It was u
22
  You may use the model in the following way:
23
 
24
  ```python
25
- # %%
26
  import torch
27
  from transformers import AutoTokenizer, AutoModelForCausalLM
28
  from peft import PeftModel
@@ -70,7 +69,10 @@ def bitcount(n):
70
 
71
  corrupted_programs = corrupt(
72
  test_code, model, tokenizer,
73
- do_sample=True, temperature=0.5, max_new_tokens=4096, num_return_sequences=2,
 
 
 
74
  )
75
 
76
  for corrupted_program in corrupted_programs:
 
22
  You may use the model in the following way:
23
 
24
  ```python
 
25
  import torch
26
  from transformers import AutoTokenizer, AutoModelForCausalLM
27
  from peft import PeftModel
 
69
 
70
  corrupted_programs = corrupt(
71
  test_code, model, tokenizer,
72
+ do_sample=True,
73
+ temperature=0.5,
74
+ max_new_tokens=4096,
75
+ num_return_sequences=5,
76
  )
77
 
78
  for corrupted_program in corrupted_programs: