This repository was archived by the owner on Jul 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed
Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 33import math
44
55import torch
6- # import intel_extension_for_pytorch as ipex
76import numpy as np
87from transformers import (
98 AutoModelForCausalLM ,
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ export ONEDNN_VERBOSE=0
1212for i in 1 2 3 4 5 6 7
1313do
1414 CNNS=(resnet50)
15- for COMPILER in dynamo ipex_onednn_graph
15+ for COMPILER in ipex_onednn_graph
1616 do
17- for DTYPE in float32 bfloat16
17+ for DTYPE in bfloat16
1818 do
19- for BS in 0001 0032 0128
19+ for BS in 0001 0016 0032 0064 0128
2020 do
2121 for name in " ${CNNS[@]} "
2222 do
2828 done
2929
3030
31- LLMS=(gptj)
31+ LLMS=(gptj llama2-7b )
3232 for COMPILER in dynamo ipex
3333 do
34- for DTYPE in float32 bfloat16
34+ for BS in 0001 0004 0008
3535 do
36- for name in " ${LLMS[@]} "
36+ for DTYPE in bfloat16
3737 do
38- echo " Benchmark $name with DTYPE=$DTYPE "
39- numactl -N 1 benchmark-run -b llm -p " name='${name} '" --dtype " ${DTYPE} " --benchmark_desc " ${name} _bs$BS " --host " ${HOST} " -c " ${COMPILER} " --skip_verification
38+ for name in " ${LLMS[@]} "
39+ do
40+ echo " Benchmark $name with DTYPE=$DTYPE "
41+ numactl -N 1 benchmark-run -b llm -p " name='${name} ',batch_size=${BS} " --dtype " ${DTYPE} " --benchmark_desc " ${name} _bs$BS " --host " ${HOST} " -c " ${COMPILER} " --skip_verification
42+ done
4043 done
4144 done
4245 done
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ conda activate margin
1616# Install ipex & pytorch
1717python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
1818python -m pip install intel-extension-for-pytorch
19+ python -m pip install transformers==4.35.2
1920python -m pip install oneccl_bind_pt --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/
2021
2122# Install benchmarks
You can’t perform that action at this time.
0 commit comments