runtime error

Exit code: 3. Reason: 24e06e8196e8/addgene_trained_dna_tokenizer.json "HTTP/1.1 200 OK" INFO:app:Loading custom tokenizer... INFO:app:Downloading model file (this may take a few minutes)... INFO:httpx:HTTP Request: HEAD https://huggingface.co/lingxusb/PlasmidGPT/resolve/main/pretrained_model.pt "HTTP/1.1 302 Found" INFO:httpx:HTTP Request: GET https://huggingface.co/api/models/lingxusb/PlasmidGPT/xet-read-token/2dc3ab82850fcb9600d9aa021b5224e06e8196e8 "HTTP/1.1 200 OK" INFO:app:Loading custom PyTorch model... ERROR: Traceback (most recent call last): File "/app/app.py", line 159, in load_model model = torch.load(model_path, map_location=device, weights_only=False) File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 1026, in load return _load(opened_zipfile, File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 1438, in _load result = unpickler.load() File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 1431, in find_class return super().find_class(mod_name, name) File "/usr/local/lib/python3.10/site-packages/transformers/models/gpt2/modeling_gpt2.py", line 28, in <module> from ...generation import GenerationMixin ImportError: cannot import name 'GenerationMixin' from 'transformers.generation' (/usr/local/lib/python3.10/site-packages/transformers/generation/__init__.py) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 677, in lifespan async with self.lifespan_context(app) as maybe_state: File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 566, in __aenter__ await self._router.startup() File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 654, in startup await handler() File "/app/app.py", line 181, in load_model encoded = tokenizer.encode(request.prompt) NameError: name 'request' is not defined ERROR: Application startup failed. Exiting.

Container logs:

Fetching error logs...