ayjays132 commited on
Commit
b5c7276
·
1 Parent(s): 6b87329

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -3
README.md CHANGED
@@ -149,13 +149,15 @@ QNetworkGPT2 is an extraordinary AI model that marries Reinforcement Learning (R
149
  from transformers import AutoTokenizer, AutoModelForCausalLM
150
 
151
  tokenizer = AutoTokenizer.from_pretrained("ayjays132/QNetworkGPT2")
152
-
153
  model = AutoModelForCausalLM.from_pretrained("ayjays132/QNetworkGPT2")
154
 
155
- ## Initialize a conversation history
 
 
 
156
  conversation_history = []
157
 
158
- ## Start a conversation loop
159
  while True:
160
  # Get user input
161
  user_input = input("You: ")
 
149
  from transformers import AutoTokenizer, AutoModelForCausalLM
150
 
151
  tokenizer = AutoTokenizer.from_pretrained("ayjays132/QNetworkGPT2")
 
152
  model = AutoModelForCausalLM.from_pretrained("ayjays132/QNetworkGPT2")
153
 
154
+ # Set the EOS token as the padding token
155
+ tokenizer.pad_token = tokenizer.eos_token
156
+
157
+ # Initialize a conversation history
158
  conversation_history = []
159
 
160
+ # Start a conversation loop
161
  while True:
162
  # Get user input
163
  user_input = input("You: ")