Update README.md
Browse files
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 |
-
|
|
|
|
|
|
|
156 |
conversation_history = []
|
157 |
|
158 |
-
|
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: ")
|