File tree Expand file tree Collapse file tree 5 files changed +35
-12
lines changed
Features-and-Functionality
INC_QuantizationAwareTraining_TextClassification
IntelPyTorch_TrainingOptimizations_AMX_BF16
IntelPython_daal4py_DistributedLinearRegression
INC-Quantization-Sample-for-PyTorch
IntelPython_daal4py_GettingStarted Expand file tree Collapse file tree 5 files changed +35
-12
lines changed Original file line number Diff line number Diff line change 14
14
"env" : [
15
15
" source /intel/oneapi/intelpython/bin/activate" ,
16
16
" 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"
18
22
],
19
23
"id" : " inc_text_classification_quantization_py" ,
20
24
"steps" : [
21
- " python INC_QuantizationAwareTraining_TextClassification.py"
25
+ " uv run python INC_QuantizationAwareTraining_TextClassification.py"
22
26
]
23
27
}
24
28
]
Original file line number Diff line number Diff line change 15
15
"steps" : [
16
16
" source /intel/oneapi/intelpython/bin/activate" ,
17
17
" 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" ,
20
25
" python pytorch_training_avx512_bf16.py" ,
21
26
" python pytorch_training_amx_bf16.py" ,
22
27
" jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=pytorch --to notebook IntelPyTorch_TrainingOptimizations_AMX_BF16.ipynb"
Original file line number Diff line number Diff line change 14
14
"linux" : [{
15
15
"env" : [
16
16
" 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"
18
23
],
19
24
"id" : " idp_d4p_Linear_Regression_Dist" ,
20
25
"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"
23
28
]
24
29
}]
25
30
},
Original file line number Diff line number Diff line change 13
13
"env" : [" apt-get update && apt-get install -y libgl1 libgl1-mesa-glx libglib2.0-0 libsm6 libxrender1 libxext6" ,
14
14
" source /intel/oneapi/intelpython/bin/activate" ,
15
15
" 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"
19
23
],
20
24
"id" : " quantize with inc" ,
21
25
"steps" : [
Original file line number Diff line number Diff line change 15
15
"env" : [
16
16
" source /intel/oneapi/intelpython/bin/activate" ,
17
17
" 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"
19
24
],
20
25
"id" : " idp_d4p_GS_py" ,
21
26
"steps" : [
22
- " python IntelPython_daal4py_GettingStarted.py"
27
+ " uv run python IntelPython_daal4py_GettingStarted.py"
23
28
]
24
29
}]
25
30
},
You can’t perform that action at this time.
0 commit comments