forked from oneapi-src/oneAPI-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.json
More file actions
33 lines (33 loc) · 1.31 KB
/
sample.json
File metadata and controls
33 lines (33 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
"guid": "030C6A71-39DA-436E-9644-4FC25C7C5907",
"name": "TensorFlow Training Optimizations with Advanced Matrix Extensions Bfloat16",
"categories": ["Toolkit/oneAPI AI And Analytics/Features and Functionality"],
"description": "This sample illustrates how to train a TensorFlow model using Advanced Matrix Extensions Bfloat16",
"builder": ["cli"],
"languages": [{ "python": {} }],
"os": ["linux"],
"targetDevice": ["CPU"],
"cpuInstructionSets": ["AVX512", "AMX"],
"ciTests": {
"linux": [{
"id": "intel amx bf16 training",
"steps": [
"source /intel/oneapi/intelpython/bin/activate",
"conda activate tensorflow",
"pip install uv",
"uv init",
"uv python pin $(which python)",
"uv venv --system-site-packages",
"uv add -r requirements.txt",
"uv add --dev ipykernel notebook",
"uv add numpy==1.26.4",
"uv add keras==2.15.0",
"export execution_mode=eager",
"uv run python Intel_TensorFlow_AMX_BF16_Training.py -m eager",
"uv run ipython kernel install --user --name tensorflow",
"uv run jupyter nbconvert --ExecutePreprocessor.enabled=True --ExecutePreprocessor.kernel_name=tensorflow --to notebook IntelTensorFlow_AMX_BF16_Training.ipynb"
]
}]
},
"expertise": "Code Optimization"
}