Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -251,7 +251,7 @@ async def load_models_startup():
|
|
251 |
print(f"Model Config EOS ID: {model.config.eos_token_id}")
|
252 |
print(f"Constant EOS_TOKEN: {EOS_TOKEN}")
|
253 |
if tok.eos_token_id != EOS_TOKEN or model.config.eos_token_id != EOS_TOKEN:
|
254 |
-
|
255 |
# Consider updating EOS_TOKEN if they differ, e.g.:
|
256 |
# EOS_TOKEN = model.config.eos_token_id
|
257 |
|
|
|
251 |
print(f"Model Config EOS ID: {model.config.eos_token_id}")
|
252 |
print(f"Constant EOS_TOKEN: {EOS_TOKEN}")
|
253 |
if tok.eos_token_id != EOS_TOKEN or model.config.eos_token_id != EOS_TOKEN:
|
254 |
+
print("⚠️ WARNING: EOS_TOKEN constant might not match model/tokenizer configuration!")
|
255 |
# Consider updating EOS_TOKEN if they differ, e.g.:
|
256 |
# EOS_TOKEN = model.config.eos_token_id
|
257 |
|