Skip to content

Commit 196ced4

Browse files
committed
unfinished modification for sample json
Signed-off-by: Xu, He <[email protected]>
1 parent b817a0d commit 196ced4

File tree

5 files changed

+35
-12
lines changed
  • AI-and-Analytics
    • Features-and-Functionality
      • INC_QuantizationAwareTraining_TextClassification
      • IntelPyTorch_TrainingOptimizations_AMX_BF16
      • IntelPython_daal4py_DistributedLinearRegression
    • Getting-Started-Samples

5 files changed

+35
-12
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@
1414
"env": [
1515
"source /intel/oneapi/intelpython/bin/activate",
1616
"conda activate pytorch",
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
],
1923
"id": "inc_text_classification_quantization_py",
2024
"steps": [
21-
"python INC_QuantizationAwareTraining_TextClassification.py"
25+
"uv run python INC_QuantizationAwareTraining_TextClassification.py"
2226
]
2327
}
2428
]

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@
1515
"steps": [
1616
"source /intel/oneapi/intelpython/bin/activate",
1717
"conda activate pytorch",
18-
"python -m pip install -r requirements.txt",
19-
"python -m ipykernel install --user --name=pytorch",
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 --dev ipykernel",
24+
"uv run ipython kernel install --user --name pytorch",
2025
"python pytorch_training_avx512_bf16.py",
2126
"python pytorch_training_amx_bf16.py",
2227
"jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=pytorch --to notebook IntelPyTorch_TrainingOptimizations_AMX_BF16.ipynb"

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@
1414
"linux": [{
1515
"env": [
1616
"source /intel/oneapi/intelpython/bin/activate",
17-
"pip install -r requirements.txt"
17+
"conda activate base",
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"
1823
],
1924
"id": "idp_d4p_Linear_Regression_Dist",
2025
"steps": [
21-
"python download_data.py",
22-
"mpirun -n 4 python ./IntelPython_daal4py_Distributed_LinearRegression.py"
26+
"uv run python download_data.py",
27+
"uv run mpirun -n 4 python ./IntelPython_daal4py_Distributed_LinearRegression.py"
2328
]
2429
}]
2530
},

AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch/sample.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@
1313
"env": ["apt-get update && apt-get install -y libgl1 libgl1-mesa-glx libglib2.0-0 libsm6 libxrender1 libxext6",
1414
"source /intel/oneapi/intelpython/bin/activate",
1515
"conda activate pytorch",
16-
"pip install -r requirements.txt",
17-
"pip install ipykernel jupyter",
18-
"python -m ipykernel install --user --name=pytorch"
16+
"pip install uv",
17+
"uv init",
18+
"uv add --dev ipykernel",
19+
"uv python pin $(which python)",
20+
"uv venv --system-site-packages",
21+
"uv add -r requirements.txt",
22+
"uv run ipython kernel install --user --name pytorch"
1923
],
2024
"id": "quantize with inc",
2125
"steps": [

AI-and-Analytics/Getting-Started-Samples/IntelPython_daal4py_GettingStarted/sample.json

Lines changed: 7 additions & 2 deletions
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_GS_py",
2126
"steps": [
22-
"python IntelPython_daal4py_GettingStarted.py"
27+
"uv run python IntelPython_daal4py_GettingStarted.py"
2328
]
2429
}]
2530
},

0 commit comments

Comments
 (0)