Skip to content

Commit d13605a

Browse files
authored
Merge pull request #2438 from fongjiantan/release/2024.2_AITools
2024.2 AI Tools Release PR
2 parents 1895814 + ccc02e9 commit d13605a

File tree

508 files changed

+26887
-25674
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

508 files changed

+26887
-25674
lines changed

AI-and-Analytics/End-to-end-Workloads/Census/sample.json

+4-7
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@
1414
"env": [],
1515
"id": "Intel_Modin_E2E_py",
1616
"steps": [
17-
"set -e # Terminate the script on first error",
18-
"source /root/intel/oneapi/intelpython/bin/activate",
19-
"conda create -n modin-hdk python=3.9 -y",
20-
"conda activate modin-hdk",
17+
"source /intel/oneapi/intelpython/bin/activate",
2118
"conda install modin-hdk -c conda-forge -y",
22-
"pip install scikit-learn scikit-learn-intelex matplotlib jupyter ipykernel",
23-
"python -m ipykernel install --name modin-hdk",
24-
"jupyter nbconvert --to notebook --execute census_modin.ipynb"
19+
"pip install scikit-learn scikit-learn-intelex matplotlib",
20+
"pip install jupyter",
21+
"jupyter nbconvert --to notebook census_modin.ipynb"
2522
]
2623
}
2724
]

AI-and-Analytics/End-to-end-Workloads/LanguageIdentification/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ This section explains how to train a model for language identification using the
111111

112112
1. Install Jupyter Notebook.
113113
```
114-
conda install jupyter nb_conda_kernels
114+
pip install notebook
115115
```
116116
2. Launch Jupyter Notebook.
117117
```
@@ -241,7 +241,7 @@ To run inference, you must have already run all of the training scripts, generat
241241

242242
1. If you have not already done so, install Jupyter Notebook.
243243
```
244-
conda install jupyter nb_conda_kernels
244+
pip install notebook
245245
```
246246
2. Launch Jupyter Notebook.
247247
```

AI-and-Analytics/Features-and-Functionality/INC_QuantizationAwareTraining_TextClassification/INC_QuantizationAwareTraining_TextClassification.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"source": [
7676
"from datasets import load_dataset\n",
7777
"\n",
78-
"dataset = load_dataset(\"emotion\", name=\"split\")\n",
78+
"dataset = load_dataset(\"emotion\", name=\"split\", trust_remote_code=True)\n",
7979
"dataset['train'][:10]"
8080
]
8181
},

AI-and-Analytics/Features-and-Functionality/INC_QuantizationAwareTraining_TextClassification/INC_QuantizationAwareTraining_TextClassification.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
from datasets import load_dataset
5151

52-
dataset = load_dataset("emotion", name="split")
52+
dataset = load_dataset("emotion", name="split", trust_remote_code=True)
5353
dataset['train'][:10]
5454

5555

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"linux": [{
1313
"id": "intel amx bf16 int8 inference",
1414
"steps": [
15-
"source /root/intel/oneapi/intelpython/bin/activate",
15+
"source /intel/oneapi/intelpython/bin/activate",
1616
"conda activate pytorch",
1717
"python -m pip install -r requirements.txt",
18-
"python -m ipykernel install --user --name=user_pytorch",
18+
"python -m ipykernel install --user --name=pytorch",
1919
"python pytorch_inference_vnni.py",
2020
"python pytorch_inference_amx.py",
21-
"jupyter nbconvert --ExecutePreprocessor.kernel_name=pytorch --to notebook IntelPyTorch_InferenceOptimizations_AMX_BF16_INT8.ipynb"
21+
"jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=pytorch --to notebook IntelPyTorch_InferenceOptimizations_AMX_BF16_INT8.ipynb"
2222
]
2323
}]
2424
},
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
matplotlib
22
py-cpuinfo
3-
notebook
4-
ipykernel
3+
transformers

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
{
1414
"id": "intel amx bf16 training",
1515
"steps": [
16-
"source /root/intel/oneapi/intelpython/bin/activate",
16+
"source /intel/oneapi/intelpython/bin/activate",
1717
"conda activate pytorch",
1818
"python -m pip install -r requirements.txt",
19-
"python -m ipykernel install --user --name=user_pytorch",
19+
"python -m ipykernel install --user --name=pytorch",
2020
"python pytorch_training_avx512_bf16.py",
2121
"python pytorch_training_amx_bf16.py",
22-
"jupyter nbconvert --ExecutePreprocessor.kernel_name=pytorch --to notebook IntelPyTorch_TrainingOptimizations_AMX_BF16.ipynb"
22+
"jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=pytorch --to notebook IntelPyTorch_TrainingOptimizations_AMX_BF16.ipynb"
2323
]
2424
}
2525
]

0 commit comments

Comments
 (0)