Text Generation
PEFT
Safetensors
Eval Results
dfurman commited on
Commit
41ff0d3
1 Parent(s): 79db32c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -2
README.md CHANGED
@@ -158,8 +158,9 @@ with torch.cuda.amp.autocast():
158
  eos_token_id=tokenizer.eos_token_id,
159
  )
160
 
161
- # Inspect outputs
162
- print('\n\n', tokenizer.decode(output_tokens[0], skip_special_tokens=True))
 
163
  ```
164
 
165
  ## Reproducibility
 
158
  eos_token_id=tokenizer.eos_token_id,
159
  )
160
 
161
+ generated_text = tokenizer.decode(output_tokens[0], skip_special_tokens=True)
162
+ # Inspect message response in the outputs
163
+ print(generated_text.split("<human>: ")[1].split("<bot>: ")[-1])
164
  ```
165
 
166
  ## Reproducibility