Skip to content

Conversation

@DrRyanHuang
Copy link
Collaborator

@DrRyanHuang DrRyanHuang commented Oct 27, 2025

Motivation

text_image_gather_scatter 自定义算子部分未正确声明导致 SOT 转静后图依赖关系错误
该PR优先保证开启SOT后,多模 ERNIE-4.5-VL-28B-A3B-Paddle 能跑通

Modifications

主要是修改自定义算子 text_image_gather_scatter 返回值的逻辑

  • input 返回,(关键问题,否则计算图依赖关系会乱掉)
  • 移除掉只读输入 text_index 和 image_index

Usage or Command

MODEL=/workspace/EB_MODELS/ERNIE-4.5-VL-28B-A3B-Paddle
rm -rf log/*
export FLAGS_cuda_graph_blacklist="custom_op.static_op_append_attention_with_output_"
export CUDA_VISIBLE_DEVICES=0
export PORT=39905

python -m fastdeploy.entrypoints.openai.api_server \
  --model $MODEL \
  --metrics-port 39717 \
  --port $PORT \
  --engine-worker-queue-port 39719 \
  --tensor-parallel-size 1 \
  --max-model-len 32768 \
  --max-num-seqs 128 \
  --quantization wint4 \
  --enable-mm \
  --graph-optimization-config '{"graph_opt_level": 1, "use_cudagraph": true, "full_cuda_graph": false}' \

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

paddle-bot bot commented Oct 27, 2025

Thanks for your contribution!

@DrRyanHuang DrRyanHuang force-pushed the fix_text_image_gather_scatter branch 2 times, most recently from 0ed7cff to 885d89b Compare October 28, 2025 02:06
gongshaotian
gongshaotian previously approved these changes Oct 28, 2025
Copy link
Collaborator

@gongshaotian gongshaotian left a comment

Choose a reason for hiding this comment

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

LGTM

@DrRyanHuang
Copy link
Collaborator Author

这个Commit是修复Code Style,做代码格式化的 0d46d6c

Copy link
Collaborator

@gongshaotian gongshaotian left a comment

Choose a reason for hiding this comment

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

LGTM

@gongshaotian gongshaotian merged commit 07956a8 into PaddlePaddle:develop Oct 28, 2025
15 of 17 checks passed
@SigureMo SigureMo deleted the fix_text_image_gather_scatter branch October 28, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants