Skip to content

[BugFix] PaddleOCR-VL fix FD_DEBUG type and support v1 loader#4605

Merged
Jiang-Jia-Jun merged 5 commits intoPaddlePaddle:developfrom
ming1753:ocr
Oct 28, 2025
Merged

[BugFix] PaddleOCR-VL fix FD_DEBUG type and support v1 loader#4605
Jiang-Jia-Jun merged 5 commits intoPaddlePaddle:developfrom
ming1753:ocr

Conversation

@ming1753
Copy link
Copy Markdown
Collaborator

Motivation

PaddleOCR-VL fix FD_DEBUG type and support v1 loader

Modifications

Usage or Command

python -m fastdeploy.entrypoints.openai.api_server \
        --model /path/to/PaddlePaddle/PaddleOCR-VL \
        --port 8470 \
        --metrics-port 8471 \
        --engine-worker-queue-port 8472 \
        --cache-queue-port 55660 \
        --max-model-len 16384 \
        --max-num-batched-tokens 16384 \
        --gpu-memory-utilization 0.7 \
        --max-num-seqs 256 \
        --workers 2 \
        --graph-optimization-config '{"graph_opt_level":0, "use_cudagraph":true}' \

Accuracy Tests

Checklist

  • Add at least a tag in the PR title.
    • Tag list: [[FDConfig],[APIServer],[Engine], [Scheduler], [PD Disaggregation], [Executor], [Graph Optimization], [Speculative Decoding], [RL], [Models], [Quantization], [Loader], [OP], [KVCache], [DataProcessor], [BugFix], [Docs], [CI], [Optimization], [Feature], [Benchmark], [Others], [XPU], [HPU], [GCU], [DCU], [Iluvatar], [Metax]]
    • You can add new tags based on the PR content, but the semantics must be clear.
  • Format your code, run pre-commit before commit.
  • Add unit tests. Please write the reason in this PR if no unit tests.
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Oct 27, 2025

Thanks for your contribution!

update_fd_config_for_mm(fd_config)
if fd_config.load_config.load_choices == "default_v1" and not v1_loader_support(fd_config):
fd_config.load_config.load_choices = "default"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个为啥要两处都配置呢? 有点冗余

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为前一个在服务层,这个在引擎层。测试的时候发现服务层的设置传不到引擎层,参考775-789行中ENABLE_V1_KVCACHE_SCHEDULER的设置,在引擎层又设置了一遍。

@Jiang-Jia-Jun Jiang-Jia-Jun merged commit 7681375 into PaddlePaddle:develop Oct 28, 2025
23 of 27 checks passed
@ming1753 ming1753 deleted the ocr branch November 3, 2025 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants