Skip to content

[Feature] Enhance build script, add pre_wheel logic - #4729

Merged
YuanRisheng merged 19 commits into
PaddlePaddle:developfrom
Echo-Nie:nyx_build
Nov 13, 2025
Merged

YuanRisheng merged 19 commits into
PaddlePaddle:developfrom
Echo-Nie:nyx_build

Conversation

@Echo-Nie

@Echo-Nie Echo-Nie commented Oct 31, 2025

Copy link
Copy Markdown
Contributor

Motivation

Enhances the FastDeploy build system by introducing precompiled wheel support.
The motivation is to:

  • Reduce build time by reusing precompiled GPU operator binaries when available.
  • Improve flexibility by allowing users to toggle between source compilation and wheel-based installation.

Modifications

Added pre_wheel/ logic in build.sh;
Wheel validation;
Fallback to source compilation when the wheel is missing, corrupted, or fails to install.

Usage or Command

# Build wheel from source
bash build.sh 1 python false [90] 0

# Use precompiled wheel if available
bash build.sh 1 python false [90] 1

# Use precompiled wheel from a specific commit
bash build.sh 1 python false [90] 1 7dbd9412b0de47aacad9011e8ace492af7247620

Accuracy Tests

download pre_wheel:

e5a782c2ab73668645a17cd699116a25 eea13764594a96d4ba9b4c90840eaf57

build from source:

3ae500a6966a5901ad4de3b1049b7d1f 5ed1395c3e4244fafbf488b0d9cac3b2 60ed63d2f90da4d1c603a85394c86013

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.

Updated copyright year and added precompiled wheel installation logic.
@paddle-bot

paddle-bot Bot commented Oct 31, 2025

Copy link
Copy Markdown

Thanks for your contribution!

@paddle-bot paddle-bot Bot added the contributor External developers label Oct 31, 2025
Comment thread build.sh Outdated
@Echo-Nie

Echo-Nie commented Nov 4, 2025

Copy link
Copy Markdown
Contributor Author

/re-run all-failed

@Echo-Nie

Echo-Nie commented Nov 5, 2025

Copy link
Copy Markdown
Contributor Author

@YuanRisheng @zoooo0820

Comment thread build.sh Outdated
Comment thread build.sh
@Echo-Nie

Copy link
Copy Markdown
Contributor Author

/re-run all-failed

@Echo-Nie

Copy link
Copy Markdown
Contributor Author

/re-run all-failed

1 similar comment
@Echo-Nie

Copy link
Copy Markdown
Contributor Author

/re-run all-failed

@YuanRisheng
YuanRisheng merged commit a5e949d into PaddlePaddle:develop Nov 13, 2025
13 of 16 checks passed
@Echo-Nie
Echo-Nie deleted the nyx_build branch November 13, 2025 11:31
@Echo-Nie

Copy link
Copy Markdown
Contributor Author

The link has changed, so 7dbd9412b0de47aacad9011e8ace492af7247620 is no longer valid and needs to be updated. #5008

chang-wenbin pushed a commit to chang-wenbin/FastDeploy that referenced this pull request Mar 2, 2026
* Enhance build script, add pre_wheel logic

Updated copyright year and added precompiled wheel installation logic.

* update the nvidia_gpu.md, add pre_wheel description

* fix zh .md

* update the url, automatically detect CUDA and SM

* Fix GPU architecture string formatting in build.sh

* Change default for FD_USE_PRECOMPILED to 0

* fix build.sh

* add ./dist, pre-wheel path

* simplify the process,just save the whl

* del pre_wheel dir

* fix function name, extract_ops_from_precompiled_wheel

* fix docs

* add default commitID in docs

---------

Co-authored-by: plusNew001 <95567040+plusNew001@users.noreply.github.com>
xiaoguoguo626807 pushed a commit to xiaoguoguo626807/FastDeploy that referenced this pull request May 7, 2026
* Enhance build script, add pre_wheel logic

Updated copyright year and added precompiled wheel installation logic.

* update the nvidia_gpu.md, add pre_wheel description

* fix zh .md

* update the url, automatically detect CUDA and SM

* Fix GPU architecture string formatting in build.sh

* Change default for FD_USE_PRECOMPILED to 0

* fix build.sh

* add ./dist, pre-wheel path

* simplify the process,just save the whl

* del pre_wheel dir

* fix function name, extract_ops_from_precompiled_wheel

* fix docs

* add default commitID in docs

---------

Co-authored-by: plusNew001 <95567040+plusNew001@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants