-
Notifications
You must be signed in to change notification settings - Fork 693
Open
Description
Bug Description
Hello, I am trying to serve PaddleOCR-VL using the latest version of FastDeploy. However, I encounter the following error during runtime. I would like to understand what might be causing this issue and how it can be resolved.
Environment
fastdeploy-gpu 2.4.0
paddlepaddle-gpu 3.3.0
Error Message
Traceback (most recent call last):
File "/path/to/env/lib/python3.12/site-packages/fastdeploy/worker/worker_process.py", line 1089, in <module>
run_worker_proc()
File "/path/to/env/lib/python3.12/site-packages/fastdeploy/worker/worker_process.py", line 1085, in run_worker_proc
worker_proc.event_loop_normal()
File "/path/to/env/lib/python3.12/site-packages/fastdeploy/worker/worker_process.py", line 522, in event_loop_normal
self.worker.execute_model(req_dicts, max_occupied_batch_index)
File "/path/to/env/lib/python3.12/site-packages/fastdeploy/worker/gpu_worker.py", line 193, in execute_model
output = self.model_runner.execute_model(model_forward_batch, num_running_request)
File "/path/to/env/lib/python3.12/site-packages/fastdeploy/worker/gpu_model_runner.py", line 2238, in execute_model
model_output = self.model(
File "/path/to/env/lib/python3.12/site-packages/paddle/nn/layer/layers.py", line 1833, in __call__
return self.forward(*inputs, **kwargs)
File "/path/to/env/lib/python3.12/site-packages/fastdeploy/model_executor/models/paddleocr_vl/paddleocr_vl.py", line 240, in forward
input_embeddings = self.get_input_embeddings(
File "/path/to/env/lib/python3.12/site-packages/fastdeploy/model_executor/models/paddleocr_vl/paddleocr_vl.py", line 231, in get_input_embeddings
input_embeddings[image_mask] = image_features.cast(self._dtype)
AttributeError: 'NoneType' object has no attribute 'cast'
Metadata
Metadata
Assignees
Labels
No labels