dkarthikeyan1 commited on
Commit
a85f2ad
·
verified ·
1 Parent(s): a09686f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -77,10 +77,10 @@ num_tcrs = 10
77
  # Define the number of beams to explore (recommended: 3x the number of TCRs)
78
  num_beams = 30
79
 
80
- unconditional_outputs = tcrt5.generate(max_new_tokens=25, num_return_sequences=num_tcrs, num_beams=num_beams)
81
 
82
  # Use regex to get out the [TCR] tag
83
- uncond_cdr3b_sequences = [re.sub(r'\[.*\]', '', x) for x in tokenizer.batch_decode(unconditional_outputs, skip_special_tokens=True)]
84
 
85
  >>> uncond_cdr3b_sequences
86
 
 
77
  # Define the number of beams to explore (recommended: 3x the number of TCRs)
78
  num_beams = 30
79
 
80
+ unconditional_outputs = tcrt5.generate(max_new_tokens=25, num_return_sequences=num_tcrs, num_beams=num_beams, return_dict_in_generate=True)
81
 
82
  # Use regex to get out the [TCR] tag
83
+ uncond_cdr3b_sequences = [re.sub(r'\[.*\]', '', x) for x in tokenizer.batch_decode(unconditional_outputs['sequences'], skip_special_tokens=True)]
84
 
85
  >>> uncond_cdr3b_sequences
86