Skip to content

Commit 368847e

Browse files
authored
Added cpuInstructionSets to sample.json for AI samples (oneapi-src#1481)
* Added cpuInstructionSets to sample.json file for AI samples * Update * Update sample.json * Updated sample.json: * Update sample.json * Update sample.json
1 parent 15cf1a8 commit 368847e

File tree

4 files changed

+82
-89
lines changed
  • AI-and-Analytics/Features-and-Functionality
    • IntelPyTorch_InferenceOptimizations_AMX_BF16_INT8
    • IntelPyTorch_TrainingOptimizations_AMX_BF16
    • IntelTensorFlow_AMX_BF16_Training
    • IntelTensorFlow_Transformer_AMX_bfloat16_MixedPrecision

4 files changed

+82
-89
lines changed
Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
{
2-
"guid": "4AE0B94D-5272-4F81-9D8B-27718072B659",
3-
"name": "PyTorch Inference Optimizations with Advanced Matrix Extensions Bfloat16 and Integer8",
4-
"categories": ["Toolkit/oneAPI AI And Analytics/AI Features and Functionality"],
5-
"description": "This sample illustrates how to do inference with a PyTorch model using Advanced Matrix Extensions Bfloat16 and Integer8",
6-
"builder": ["cli"],
7-
"languages": [{"python":{}}],
8-
"os":["linux"],
9-
"targetDevice": ["CPU"],
10-
"ciTests": {
11-
"linux": [
12-
{
13-
"id": "intel amx bf16 int8 inference",
14-
"steps": [
15-
"source activate pytorch",
16-
"python IntelPyTorch_InferenceOptimizations_AMX_BF16_INT8.py",
17-
"/opt/intel/oneapi/intelpython/latest/envs/pytorch/bin/python -m ipykernel install --user --name=pytorch",
18-
"python ci_test.py"
19-
]
20-
}
21-
]
22-
},
23-
"expertise": "Code Optimization"
24-
}
25-
2+
"guid": "4AE0B94D-5272-4F81-9D8B-27718072B659",
3+
"name": "PyTorch Inference Optimizations with Advanced Matrix Extensions Bfloat16 and Integer8",
4+
"categories": ["Toolkit/oneAPI AI And Analytics/AI Features and Functionality"],
5+
"description": "This sample illustrates how to do inference with a PyTorch model using Advanced Matrix Extensions Bfloat16 and Integer8",
6+
"builder": ["cli"],
7+
"languages": [{ "python": {} }],
8+
"os": ["linux"],
9+
"targetDevice": ["CPU"],
10+
"cpuInstructionSets": ["AVX512", "AMX"],
11+
"ciTests": {
12+
"linux": [{
13+
"id": "intel amx bf16 int8 inference",
14+
"steps": [
15+
"source activate pytorch",
16+
"python IntelPyTorch_InferenceOptimizations_AMX_BF16_INT8.py",
17+
"/opt/intel/oneapi/intelpython/latest/envs/pytorch/bin/python -m ipykernel install --user --name=pytorch",
18+
"python ci_test.py"
19+
]
20+
}]
21+
},
22+
"expertise": "Code Optimization"
23+
}
Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
{
2-
"guid": "A4D97FA0-D515-4944-9970-C6742A85257F",
3-
"name": "PyTorch Training Optimizations with Advanced Matrix Extensions Bfloat16",
4-
"categories": ["Toolkit/oneAPI AI And Analytics/AI Features and Functionality"],
5-
"description": "This sample illustrates how to train a PyTorch model using Advanced Matrix Extensions Bfloat16",
6-
"builder": ["cli"],
7-
"languages": [{"python":{}}],
8-
"os":["linux"],
9-
"targetDevice": ["CPU"],
10-
"ciTests": {
11-
"linux": [
12-
{
13-
"id": "intel amx bf16 training",
14-
"steps": [
15-
"source activate pytorch",
16-
"python IntelPyTorch_TrainingOptimizations_AMX_BF16.py",
17-
"/opt/intel/oneapi/intelpython/latest/envs/pytorch/bin/python -m ipykernel install --user --name=pytorch",
18-
"python ci_test.py"
19-
]
20-
}
21-
]
22-
},
23-
"expertise": "Code Optimization"
24-
}
25-
2+
"guid": "A4D97FA0-D515-4944-9970-C6742A85257F",
3+
"name": "PyTorch Training Optimizations with Advanced Matrix Extensions Bfloat16",
4+
"categories": ["Toolkit/oneAPI AI And Analytics/AI Features and Functionality"],
5+
"description": "This sample illustrates how to train a PyTorch model using Advanced Matrix Extensions Bfloat16",
6+
"builder": ["cli"],
7+
"languages": [{ "python": {} }],
8+
"os": ["linux"],
9+
"targetDevice": ["CPU"],
10+
"cpuInstructionSets": ["AVX512", "AMX"],
11+
"ciTests": {
12+
"linux": [{
13+
"id": "intel amx bf16 training",
14+
"steps": [
15+
"source activate pytorch",
16+
"python IntelPyTorch_TrainingOptimizations_AMX_BF16.py",
17+
"/opt/intel/oneapi/intelpython/latest/envs/pytorch/bin/python -m ipykernel install --user --name=pytorch",
18+
"python ci_test.py"
19+
]
20+
}]
21+
},
22+
"expertise": "Code Optimization"
23+
}
Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
{
2-
"guid": "030C6A71-39DA-436E-9644-4FC25C7C5907",
3-
"name": "TensorFlow Training Optimizations with Advanced Matrix Extensions Bfloat16",
4-
"categories": ["Toolkit/oneAPI AI And Analytics/AI Features and Functionality"],
5-
"description": "This sample illustrates how to train a TensorFlow model using Advanced Matrix Extensions Bfloat16",
6-
"builder": ["cli"],
7-
"languages": [{"python":{}}],
8-
"os":["linux"],
9-
"targetDevice": ["CPU"],
10-
"ciTests": {
11-
"linux": [
12-
{
13-
"id": "intel amx bf16 training",
14-
"steps": [
15-
"source activate tensorflow",
16-
"pip install -r requirements.txt",
17-
"python -m pip install py-cpuinfo",
18-
"python Intel_TensorFlow_AMX_BF16_Training.py",
19-
"/opt/intel/oneapi/intelpython/latest/envs/tensorflow/bin/python -m ipykernel install --user --name=tensorflow",
20-
"python ci_test.py"
21-
]
22-
}
23-
]
24-
},
25-
"expertise": "Code Optimization"
26-
}
27-
2+
"guid": "030C6A71-39DA-436E-9644-4FC25C7C5907",
3+
"name": "TensorFlow Training Optimizations with Advanced Matrix Extensions Bfloat16",
4+
"categories": ["Toolkit/oneAPI AI And Analytics/AI Features and Functionality"],
5+
"description": "This sample illustrates how to train a TensorFlow model using Advanced Matrix Extensions Bfloat16",
6+
"builder": ["cli"],
7+
"languages": [{ "python": {} }],
8+
"os": ["linux"],
9+
"targetDevice": ["CPU"],
10+
"cpuInstructionSets": ["AVX512", "AMX"],
11+
"ciTests": {
12+
"linux": [{
13+
"id": "intel amx bf16 training",
14+
"steps": [
15+
"source activate tensorflow",
16+
"pip install -r requirements.txt",
17+
"python -m pip install py-cpuinfo",
18+
"python Intel_TensorFlow_AMX_BF16_Training.py",
19+
"/opt/intel/oneapi/intelpython/latest/envs/tensorflow/bin/python -m ipykernel install --user --name=tensorflow",
20+
"python ci_test.py"
21+
]
22+
}]
23+
},
24+
"expertise": "Code Optimization"
25+
}

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

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@
44
"categories": ["Toolkit/oneAPI AI And Analytics/AI Getting Started Samples"],
55
"description": "This sample code demonstrates optimizing a TensorFlow model with Intel® Advanced Matrix Extensions (Intel® AMX) using bfloat16 (Brain Floating Point) on Sapphire Rapids",
66
"builder": ["cli"],
7-
"languages": [{"python":{}}],
8-
"os":["linux"],
7+
"languages": [{ "python": {} }],
8+
"os": ["linux"],
99
"targetDevice": ["CPU"],
10+
"cpuInstructionSets": ["AVX512", "AMX"],
1011
"ciTests": {
11-
"linux": [
12-
{
13-
"env": [],
14-
"id": "Transformer_AMX_bfloat16_Mixed_Precision_Learning",
15-
"steps": [
16-
"conda activate tensorflow",
17-
"conda install -y jupyter",
18-
"jupyter nbconvert --execute IntelTensorFlow_Transformer_AMX_bfloat16_MixedPrecision.ipynb"
19-
]
20-
}
21-
]
22-
},
23-
"expertise": "Getting Started"
12+
"linux": [{
13+
"env": [],
14+
"id": "Transformer_AMX_bfloat16_Mixed_Precision_Learning",
15+
"steps": [
16+
"conda activate tensorflow",
17+
"conda install -y jupyter",
18+
"jupyter nbconvert --execute IntelTensorFlow_Transformer_AMX_bfloat16_MixedPrecision.ipynb"
19+
]
20+
}]
21+
},
22+
"expertise": "Getting Started"
2423
}

0 commit comments

Comments
 (0)