Skip to content

Commit 0917bc8

Browse files
Upgraded the Transformers library for the VIT model to version 4.53.0 (#3842)
* Transformer version upgrade --------- Co-authored-by: Xuan Liao <xuan.liao@intel.com>
1 parent 539f812 commit 0917bc8

File tree

10 files changed

+9367
-6
lines changed

10 files changed

+9367
-6
lines changed

examples/cpu/inference/python/models/bert_large/inference/cpu/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ git clone https://github.com/huggingface/transformers.git
4040
cd transformers
4141
git checkout v4.38.1
4242
git lfs pull
43-
git apply ../../../transformers.diff
43+
git apply ../../transformers.diff
4444
pip install -e ./
4545
cd ..

examples/cpu/inference/python/models/bert_large/training/cpu/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ git clone https://github.com/huggingface/transformers.git
3737
cd transformers
3838
git checkout v4.38.1
3939
git lfs pull
40-
git apply ../../../transformers.diff
40+
git apply ../../transformers.diff
4141
pip install -e ./
4242
cd ..
File renamed without changes.

examples/cpu/inference/python/models/vit/run_model.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ elif [[ "None" == ${DATASET_DIR} ]];then
108108
else
109109
DATASET_ARGS="--train_dir ${DATASET_DIR}/train --validation_dir ${DATASET_DIR}/val"
110110
fi
111-
EVAL_SCRIPT=${EVAL_SCRIPT:-"./transformers/examples/pytorch/image-classification/run_image_classification.py"}
111+
EVAL_SCRIPT=${EVAL_SCRIPT:-"./scripts/run_image_classification.py"}
112112
WORK_SPACE=${WORK_SPACE:-${OUTPUT_DIR}}
113113

114114
rm -rf ${OUTPUT_DIR}/${LOG_PREFIX}*

examples/cpu/inference/python/models/vit/scripts/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)