Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use uv tool for isolate cicd env, samples include #2595

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@
"os":["linux"],
"targetDevice": ["GPU"],
"ciTests": {
"linux": [
"linux": [
{
"env": [
"env": [
"source /intel/oneapi/intelpython/bin/activate",
"conda activate base",
"pip install -r requirements.txt"
"pip install uv",
"uv init",
"uv python pin $(which python)",
"uv venv --system-site-packages",
"uv add -r requirements.txt"
],
"id": "idp_ga_dpnp_py",
"steps": [
"python IntelPython_GPU_dpnp_Genetic_Algorithm.py"
]
}
"id": "idp_ga_dpnp_py",
"steps": [
"uv run python IntelPython_GPU_dpnp_Genetic_Algorithm.py"
]
}
]
},
"expertise": "Code Optimization"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
###### Requirements ######
notebook
matplot
xgboost==0.81
xgboost==0.82
scikit-learn
pandas
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,24 @@
"os":["linux"],
"targetDevice": ["CPU"],
"ciTests": {
"linux": [
"linux": [
{
"id": "idp_xgb_performance",
"steps": [
"source /intel/oneapi/intelpython/bin/activate",
"python IntelPython_XGBoost_Performance.py",
"conda remove xgboost --y",
"pip install -r requirements.txt",
"python IntelPython_XGBoost_Performance.py"
]
}
"env": [
"source /intel/oneapi/intelpython/bin/activate",
"conda activate base"
],
"id": "idp_xgb_performance",
"steps": [
"python IntelPython_XGBoost_Performance.py",
"pip install uv",
"uv init",
"uv python pin $(which python)",
"uv venv --system-site-packages",
"uv add -r requirements.txt",
"uv add numpy==1.26.4",
"uv run python IntelPython_XGBoost_Performance.py"
]
}
]
},
"expertise": "Code Optimization"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@
"env": [
"source /intel/oneapi/intelpython/bin/activate",
"conda activate base",
"pip install -r requirements.txt"
"pip install uv",
"uv init",
"uv python pin $(which python)",
"uv venv --system-site-packages",
"uv add -r requirements.txt",
"uv add numpy==1.26.4"
],
"id": "idp_d4p_KM_Dist",
"steps": [
"mpirun -n 4 python ./IntelPython_daal4py_Distributed_Kmeans.py"
"uv run mpirun -n 4 python ./IntelPython_daal4py_Distributed_Kmeans.py"
]
}]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@
"apt-get update && apt-get install tensorflow-model-server",
"source /intel/oneapi/intelpython/bin/activate",
"conda activate tensorflow",
"pip install -r requirements.txt --no-deps",
"pip install tensorflow==2.15.0.post1",
"pip install jupyter ipykernel",
"python -m ipykernel install --user --name=tensorflow"
"pip install uv",
"uv init",
"uv python pin $(which python)",
"uv venv --system-site-packages",
"uv add -r requirements.txt",
"uv add numpy==1.26.4",
"uv add --dev ipykernel",
"uv run ipython kernel install --user --name tensorflow",
"pip install notebook"
],
"id": "tensorflow_AMP_transfer_learning",
"steps": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,23 @@
"cpuInstructionSets": ["AVX512", "AMX"],
"ciTests": {
"linux": [{
"env": [
"source /intel/oneapi/intelpython/bin/activate",
"conda activate tensorflow",
"pip install uv",
"uv init",
"uv python pin $(which python)",
"uv venv --system-site-packages",
"uv add -r requirements.txt",
"uv add py-cpuinfo nbformat nbconvert",
"uv add --dev ipykernel",
"uv run ipython kernel install --user --name tensorflow",
"uv add notebook nbconvert"
],
"id": "intel llm bf16 infrence and fine-tuning",
"steps": [
"source activate tensorflow",
"pip install -r requirements.txt",
"python -m pip install py-cpuinfo",
"python GPTJ_finetuning.py",
"/opt/intel/oneapi/intelpython/latest/envs/tensorflow/bin/python -m ipykernel install --user --name=tensorflow",
"python ci_test.py"
"uv run python GPTJ_finetuning.py",
"uv run python ci_test.py"
]
}]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@
"env": [
"source /intel/oneapi/intelpython/bin/activate",
"conda activate base",
"pip install -r requirements.txt"
"pip install uv",
"uv init",
"uv python pin $(which python)",
"uv venv --system-site-packages",
"uv add -r requirements.txt",
"uv add numpy==1.26.4"
],
"id": "skelarnex_svc",
"steps": [
"python Intel_Extension_for_SKLearn_Performance_SVC_Adult.py"
"uv run python Intel_Extension_for_SKLearn_Performance_SVC_Adult.py"
]
}
]
Expand Down