PaddlePaddle / PaddlePaddle/FastDeploy

PaddleOCR-VL runtime error: image_features is None in FastDeploy 2.4.0

Open
#6,179 7 comments 0 reactions 1 assignee View on GitHub

@Wanglongzhi2001 is already working on this.

Since Jan 23, 2026.

Dominant language
Python
Stars
3.7k
Forks
756
Avg merge
19h 28m
Merged PRs (30d)
4

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'


Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.