[XPU][CI] Set pip index URL to Tsinghua mirror#5277
[XPU][CI] Set pip index URL to Tsinghua mirror#5277plusNew001 merged 4 commits intoPaddlePaddle:developfrom
Conversation
|
Thanks for your contribution! |
There was a problem hiding this comment.
Pull request overview
This pull request configures the XPU CI pipeline to use Tsinghua University's PyPI mirror for faster package downloads in China-based CI environments.
- Adds pip configuration to use Tsinghua mirror as the global index URL
- Aims to improve package installation speed during XPU CI runs
| python -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple | ||
| echo "pip requirements" | ||
| python -m pip install -r requirements.txt |
There was a problem hiding this comment.
The pip config set global.index-url command permanently modifies the user's pip configuration file (~/.pip/pip.conf or ~/.config/pip/pip.conf). This can affect pip behavior outside of this CI script. Consider using the -i or --index-url flag directly in the pip install commands instead (e.g., python -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple) to scope the mirror usage to just this script without persisting global configuration changes.
| python -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple | |
| echo "pip requirements" | |
| python -m pip install -r requirements.txt | |
| # Use Tsinghua mirror for this install only | |
| echo "pip requirements" | |
| python -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5277 +/- ##
==========================================
Coverage ? 60.63%
==========================================
Files ? 320
Lines ? 39054
Branches ? 5871
==========================================
Hits ? 23681
Misses ? 13514
Partials ? 1859
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Motivation
Modifications
Usage or Command
Accuracy Tests
Checklist
[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]]pre-commitbefore commit.releasebranch, make sure the PR has been submitted to thedevelopbranch, then cherry-pick it to thereleasebranch with the[Cherry-Pick]PR tag.