Skip to content

Commit a1baf67

Browse files
committed
Use uv tool for isolate cicd env of each sample from system conda environment, including samples:
IntelTensorFlow_Enabling_Auto_Mixed_Precision_for_TransferLearning IntelPython_GPU_dpnp_Genetic_Algorithm IntelPython_XGBoost_Performance IntelPython_daal4py_DistributedKMeans IntelTensorFlow_for_LLMs Intel_Extension_For_SKLearn_Performance_SVC_Adult
1 parent b817a0d commit a1baf67

File tree

7 files changed

+68
-33
lines changed

7 files changed

+68
-33
lines changed

AI-and-Analytics/Features-and-Functionality/IntelPython_GPU_dpnp_Genetic_Algorithm/sample.json

+12-8
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@
99
"os":["linux"],
1010
"targetDevice": ["GPU"],
1111
"ciTests": {
12-
"linux": [
12+
"linux": [
1313
{
14-
"env": [
14+
"env": [
1515
"source /intel/oneapi/intelpython/bin/activate",
1616
"conda activate base",
17-
"pip install -r requirements.txt"
17+
"pip install uv",
18+
"uv init",
19+
"uv python pin $(which python)",
20+
"uv venv --system-site-packages",
21+
"uv add -r requirements.txt"
1822
],
19-
"id": "idp_ga_dpnp_py",
20-
"steps": [
21-
"python IntelPython_GPU_dpnp_Genetic_Algorithm.py"
22-
]
23-
}
23+
"id": "idp_ga_dpnp_py",
24+
"steps": [
25+
"uv run python IntelPython_GPU_dpnp_Genetic_Algorithm.py"
26+
]
27+
}
2428
]
2529
},
2630
"expertise": "Code Optimization"
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
###### Requirements ######
22
notebook
33
matplot
4-
xgboost==0.81
4+
xgboost==0.82
55
scikit-learn
66
pandas

AI-and-Analytics/Features-and-Functionality/IntelPython_XGBoost_Performance/sample.json

+17-10
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,24 @@
99
"os":["linux"],
1010
"targetDevice": ["CPU"],
1111
"ciTests": {
12-
"linux": [
12+
"linux": [
1313
{
14-
"id": "idp_xgb_performance",
15-
"steps": [
16-
"source /intel/oneapi/intelpython/bin/activate",
17-
"python IntelPython_XGBoost_Performance.py",
18-
"conda remove xgboost --y",
19-
"pip install -r requirements.txt",
20-
"python IntelPython_XGBoost_Performance.py"
21-
]
22-
}
14+
"env": [
15+
"source /intel/oneapi/intelpython/bin/activate",
16+
"conda activate base"
17+
],
18+
"id": "idp_xgb_performance",
19+
"steps": [
20+
"python IntelPython_XGBoost_Performance.py",
21+
"pip install uv",
22+
"uv init",
23+
"uv python pin $(which python)",
24+
"uv venv --system-site-packages",
25+
"uv add -r requirements.txt",
26+
"uv add numpy==1.26.4",
27+
"uv run python IntelPython_XGBoost_Performance.py"
28+
]
29+
}
2330
]
2431
},
2532
"expertise": "Code Optimization"

AI-and-Analytics/Features-and-Functionality/IntelPython_daal4py_DistributedKMeans/sample.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,16 @@
1515
"env": [
1616
"source /intel/oneapi/intelpython/bin/activate",
1717
"conda activate base",
18-
"pip install -r requirements.txt"
18+
"pip install uv",
19+
"uv init",
20+
"uv python pin $(which python)",
21+
"uv venv --system-site-packages",
22+
"uv add -r requirements.txt",
23+
"uv add numpy==1.26.4"
1924
],
2025
"id": "idp_d4p_KM_Dist",
2126
"steps": [
22-
"mpirun -n 4 python ./IntelPython_daal4py_Distributed_Kmeans.py"
27+
"uv run mpirun -n 4 python ./IntelPython_daal4py_Distributed_Kmeans.py"
2328
]
2429
}]
2530
},

AI-and-Analytics/Features-and-Functionality/IntelTensorFlow_Enabling_Auto_Mixed_Precision_for_TransferLearning/sample.json

+9-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@
1717
"apt-get update && apt-get install tensorflow-model-server",
1818
"source /intel/oneapi/intelpython/bin/activate",
1919
"conda activate tensorflow",
20-
"pip install -r requirements.txt --no-deps",
21-
"pip install tensorflow==2.15.0.post1",
22-
"pip install jupyter ipykernel",
23-
"python -m ipykernel install --user --name=tensorflow"
20+
"pip install uv",
21+
"uv init",
22+
"uv python pin $(which python)",
23+
"uv venv --system-site-packages",
24+
"uv add -r requirements.txt",
25+
"uv add numpy==1.26.4",
26+
"uv add --dev ipykernel",
27+
"uv run ipython kernel install --user --name tensorflow",
28+
"pip install notebook"
2429
],
2530
"id": "tensorflow_AMP_transfer_learning",
2631
"steps": [

AI-and-Analytics/Features-and-Functionality/IntelTensorFlow_for_LLMs/sample.json

+15-6
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,23 @@
1010
"cpuInstructionSets": ["AVX512", "AMX"],
1111
"ciTests": {
1212
"linux": [{
13+
"env": [
14+
"source /intel/oneapi/intelpython/bin/activate",
15+
"conda activate tensorflow",
16+
"pip install uv",
17+
"uv init",
18+
"uv python pin $(which python)",
19+
"uv venv --system-site-packages",
20+
"uv add -r requirements.txt",
21+
"uv add py-cpuinfo nbformat nbconvert",
22+
"uv add --dev ipykernel",
23+
"uv run ipython kernel install --user --name tensorflow",
24+
"uv add notebook nbconvert"
25+
],
1326
"id": "intel llm bf16 infrence and fine-tuning",
1427
"steps": [
15-
"source activate tensorflow",
16-
"pip install -r requirements.txt",
17-
"python -m pip install py-cpuinfo",
18-
"python GPTJ_finetuning.py",
19-
"/opt/intel/oneapi/intelpython/latest/envs/tensorflow/bin/python -m ipykernel install --user --name=tensorflow",
20-
"python ci_test.py"
28+
"uv run python GPTJ_finetuning.py",
29+
"uv run python ci_test.py"
2130
]
2231
}]
2332
},

AI-and-Analytics/Features-and-Functionality/Intel_Extension_For_SKLearn_Performance_SVC_Adult/sample.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@
1313
"env": [
1414
"source /intel/oneapi/intelpython/bin/activate",
1515
"conda activate base",
16-
"pip install -r requirements.txt"
16+
"pip install uv",
17+
"uv init",
18+
"uv python pin $(which python)",
19+
"uv venv --system-site-packages",
20+
"uv add -r requirements.txt",
21+
"uv add numpy==1.26.4"
1722
],
1823
"id": "skelarnex_svc",
1924
"steps": [
20-
"python Intel_Extension_for_SKLearn_Performance_SVC_Adult.py"
25+
"uv run python Intel_Extension_for_SKLearn_Performance_SVC_Adult.py"
2126
]
2227
}
2328
]

0 commit comments

Comments
 (0)