abhisheksan commited on
Commit
a96ed1b
1 Parent(s): 09d9560

Fix logging issues in poetry_generation.log; add warnings for custom vocabulary loading and model file not found errors, and ensure BASE_MODEL_DIR ends with a slash

Browse files
Files changed (2) hide show
  1. logs/poetry_generation.log +4 -0
  2. main.py +1 -1
logs/poetry_generation.log CHANGED
@@ -1 +1,5 @@
1
  2024-11-16 23:21:31,464 - main - INFO - Loading tokenizer...
 
 
 
 
 
1
  2024-11-16 23:21:31,464 - main - INFO - Loading tokenizer...
2
+ 2024-11-16 23:21:32,228 - main - WARNING - Could not load custom vocabulary: property 'vocab' of 'GPT2TokenizerFast' object has no setter
3
+ 2024-11-16 23:21:32,229 - main - INFO - Loading model...
4
+ 2024-11-16 23:21:32,229 - main - ERROR - Model file not found at ./models\poeticagpt-quantized-new.pth
5
+ 2024-11-16 23:21:32,231 - main - ERROR - Failed to initialize model manager
main.py CHANGED
@@ -11,7 +11,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
11
  import json
12
 
13
  # Define base model directory
14
- BASE_MODEL_DIR = "./models"
15
 
16
  # Configure logging with fallback to stdout if file writing fails
17
  def setup_logging():
 
11
  import json
12
 
13
  # Define base model directory
14
+ BASE_MODEL_DIR = "./models/"
15
 
16
  # Configure logging with fallback to stdout if file writing fails
17
  def setup_logging():