File tree 8 files changed +64
-29
lines changed
Features-and-Functionality
IntelPyTorch_TrainingOptimizations_AMX_BF16
IntelTensorFlow_AMX_BF16_Inference
IntelTensorFlow_AMX_BF16_Training
IntelTransformers_Quantization
INC-Quantization-Sample-for-PyTorch
IntelPython_daal4py_GettingStarted
8 files changed +64
-29
lines changed 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" ,
20
- " python pytorch_training_avx512_bf16.py" ,
21
- " python pytorch_training_amx_bf16.py" ,
22
- " jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=pytorch --to notebook IntelPyTorch_TrainingOptimizations_AMX_BF16.ipynb"
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 notebook" ,
24
+ " uv run ipython kernel install --user --name pytorch" ,
25
+ " uv run python pytorch_training_avx512_bf16.py" ,
26
+ " uv run python pytorch_training_amx_bf16.py" ,
27
+ " uv run jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=pytorch --to notebook IntelPyTorch_TrainingOptimizations_AMX_BF16.ipynb"
23
28
]
24
29
}
25
30
]
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 tensorflow" ,
18
- " pip install -r requirements.txt --no-deps" ,
19
- " pip install ipykernel jupyter" ,
20
- " python Intel_TensorFlow_AMX_BF16_Inference.py" ,
21
- " python -m ipykernel install --user --name=tensorflow" ,
22
- " jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=tensorflow --to notebook IntelTensorFlow_AMX_BF16_Inference.ipynb"
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" ,
24
+ " uv add ipykernel jupyter notebook" ,
25
+ " uv run python Intel_TensorFlow_AMX_BF16_Inference.py" ,
26
+ " uv run python -m ipykernel install --user --name=tensorflow" ,
27
+ " uv run jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=tensorflow2 --to notebook IntelTensorFlow_AMX_BF16_Inference.ipynb"
23
28
]
24
29
}
25
30
]
Original file line number Diff line number Diff line change 59
59
" is_tune_model = True # or False\n " ,
60
60
" log_dir = \" logs\"\n " ,
61
61
" profiling_needed = False\n " ,
62
+ " execution_mode_param = os.getenv('execution_mode')\n " ,
62
63
" execution_mode = \" graph\"\n " ,
64
+ " if execution_mode_param == \" eager\" :\n " ,
65
+ " execution_mode = \" eager\"\n " ,
63
66
" load_weights_dir = \" weights\"\n " ,
64
67
" save_weights_dir = \" weights\" "
65
68
]
Original file line number Diff line number Diff line change 14
14
"steps" : [
15
15
" source /intel/oneapi/intelpython/bin/activate" ,
16
16
" conda activate tensorflow" ,
17
- " pip install -r requirements.txt" ,
18
- " pip install jupyter ipykernel" ,
19
- " python Intel_TensorFlow_AMX_BF16_Training.py" ,
20
- " python -m ipykernel install --user --name=tensorflow" ,
21
- " jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=tensorflow --to notebook IntelTensorFlow_AMX_BF16_Training.ipynb"
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" ,
22
+ " uv add --dev ipykernel notebook" ,
23
+ " uv add numpy==1.26.4" ,
24
+ " uv add keras==2.15.0" ,
25
+ " export execution_mode=eager" ,
26
+ " uv run python Intel_TensorFlow_AMX_BF16_Training.py -m eager" ,
27
+ " uv run ipython kernel install --user --name tensorflow" ,
28
+ " uv run jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=tensorflow --to notebook IntelTensorFlow_AMX_BF16_Training.ipynb"
22
29
]
23
30
}]
24
31
},
Original file line number Diff line number Diff line change 1
- accelerate == 0.29.3
2
- datasets == 2.09.0
3
- intel-extension-for-transformers == 1.4.1
4
- neural_speed == 1.0
5
- peft == 0.10.0
1
+ accelerate
2
+ datasets
3
+ intel-extension-for-transformers
4
+ neural_speed
5
+ peft
6
6
sentencepiece
7
- transformers == 4.38.0
7
+ transformers
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" ,
22
+ " uv add neural-compressor==2.6" ,
23
+ " uv add torch==2.5.0 torchvision==0.20.0"
18
24
],
19
25
"id" : " itrex_quantize_transformer_models" ,
20
26
"steps" : [
21
- " python quantize_transformer_models_with_itrex.py --model_name \" Intel/neural-chat-7b-v3-1\" --quantize \" int4\" --max_new_tokens 50"
27
+ " uv run python quantize_transformer_models_with_itrex.py --model_name Intel/neural-chat-7b-v3-1 --quantize int4 --max_new_tokens 50"
22
28
]
23
29
}]
24
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 notebook" ,
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" : [
22
- " jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=pytorch --to notebook quantize_with_inc.ipynb"
26
+ " uv run jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=pytorch --to notebook quantize_with_inc.ipynb"
23
27
]
24
28
}
25
29
]
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