Update README.md
Browse files
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 |
|