Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating links for onnx models for ML programs #73

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ -f "$FILE" ]; then
echo "\n$FILE exists. Skip downloading."
else
echo "\n$FILE does not exist. Downloading the model..."
wget https://github.com/onnx/models/raw/main/text/machine_comprehension/bert-squad/model/bertsquad-12.onnx
wget https://github.com/onnx/models/raw/main/validated/text/machine_comprehension/bert-squad/model/bertsquad-12.onnx
fi

printf "\n[Compile Script]: Convert TF model to LLVM IR\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
wget https://github.com/onnx/models/raw/main/text/machine_comprehension/gpt-2/model/gpt2-lm-head-10.onnx
wget https://github.com/onnx/models/raw/main/validated/text/machine_comprehension/gpt-2/model/gpt2-lm-head-10.onnx
fi

printf "\n[Compile Script]: Convert TF model to LLVM IR\n"
Expand Down
2 changes: 1 addition & 1 deletion sample_programs/ml_sample_programs/nlp_models/gpt2/compile.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
wget https://github.com/onnx/models/raw/main/text/machine_comprehension/gpt-2/model/gpt2-10.onnx
wget https://github.com/onnx/models/raw/main/validated/text/machine_comprehension/gpt-2/model/gpt2-10.onnx
fi

printf "\n[Compile Script]: Convert TF model to LLVM IR\n"
Expand Down
2 changes: 1 addition & 1 deletion sample_programs/ml_sample_programs/nlp_models/roberta-base-11/compile.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
wget https://github.com/onnx/models/raw/main/text/machine_comprehension/roberta/model/roberta-base-11.onnx
wget https://github.com/onnx/models/raw/main/validated/text/machine_comprehension/roberta/model/roberta-base-11.onnx
fi

printf "\n[Compile Script]: Convert TF model to LLVM IR\n"
Expand Down
2 changes: 1 addition & 1 deletion sample_programs/ml_sample_programs/nlp_models/roberta-seq-classification-9/compile.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
wget https://github.com/onnx/models/raw/main/text/machine_comprehension/roberta/model/roberta-sequence-classification-9.onnx
wget https://github.com/onnx/models/raw/main/validated/text/machine_comprehension/roberta/model/roberta-sequence-classification-9.onnx
fi

printf "\n[Compile Script]: Convert TF model to LLVM IR\n"
Expand Down
4 changes: 2 additions & 2 deletions sample_programs/ml_sample_programs/nlp_models/t5-decoder/compile.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
wget https://github.com/onnx/models/raw/main/text/machine_comprehension/t5/model/t5-encoder-12.onnx
wget https://github.com/onnx/models/raw/main/validated/text/machine_comprehension/t5/model/t5-encoder-12.onnx
fi

DEC_FILE=t5-decoder-with-lm-head-12.onnx
if [ -f "$DEC_FILE" ]; then
echo "$DEC_FILE exists."
else
echo "$DEC_FILE does not exist."
wget https://github.com/onnx/models/raw/main/text/machine_comprehension/t5/model/t5-decoder-with-lm-head-12.onnx
wget https://github.com/onnx/models/raw/main/validated/text/machine_comprehension/t5/model/t5-decoder-with-lm-head-12.onnx
fi

printf "\n[Compile Script]: Convert TF model to LLVM IR\n"
Expand Down
4 changes: 2 additions & 2 deletions sample_programs/ml_sample_programs/nlp_models/t5-encoder/compile.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
wget https://github.com/onnx/models/raw/main/text/machine_comprehension/t5/model/t5-encoder-12.onnx
wget https://github.com/onnx/models/raw/main/validated/text/machine_comprehension/t5/model/t5-encoder-12.onnx
fi

DEC_FILE=t5-decoder-with-lm-head-12.onnx
if [ -f "$DEC_FILE" ]; then
echo "$DEC_FILE exists."
else
echo "$DEC_FILE does not exist."
wget https://github.com/onnx/models/raw/main/text/machine_comprehension/t5/model/t5-decoder-with-lm-head-12.onnx
wget https://github.com/onnx/models/raw/main/validated/text/machine_comprehension/t5/model/t5-decoder-with-lm-head-12.onnx
fi

printf "\n[Compile Script]: Convert TF model to LLVM IR\n"
Expand Down
2 changes: 1 addition & 1 deletion sample_programs/ml_sample_programs/vision_models/bvlcalexnet-12/compile.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
wget https://github.com/onnx/models/raw/main/vision/classification/alexnet/model/bvlcalexnet-12.onnx
wget https://github.com/onnx/models/raw/main/validated/vision/classification/alexnet/model/bvlcalexnet-12.onnx
fi

printf "\n[Compile Script]: Convert TF model to LLVM IR\n"
Expand Down
2 changes: 1 addition & 1 deletion sample_programs/ml_sample_programs/vision_models/googlenet-12/compile.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
wget https://github.com/onnx/models/raw/main/vision/classification/inception_and_googlenet/googlenet/model/googlenet-12.onnx
wget https://github.com/onnx/models/raw/main/validated/vision/classification/inception_and_googlenet/googlenet/model/googlenet-12.onnx
fi


Expand Down
2 changes: 1 addition & 1 deletion sample_programs/ml_sample_programs/vision_models/inception-v1-12/compile.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
wget https://github.com/onnx/models/raw/main/vision/classification/inception_and_googlenet/inception_v1/model/inception-v1-12.onnx
wget https://github.com/onnx/models/raw/main/validated/vision/classification/inception_and_googlenet/inception_v1/model/inception-v1-12.onnx
fi

printf "\n[Compile Script]: Convert TF model to LLVM IR\n"
Expand Down
2 changes: 1 addition & 1 deletion sample_programs/ml_sample_programs/vision_models/resnet50-v1-12/compile.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
wget https://github.com/onnx/models/raw/main/vision/classification/resnet/model/resnet50-v1-12.onnx
wget https://github.com/onnx/models/raw/main/validated/vision/classification/resnet/model/resnet50-v1-12.onnx
fi

printf "\n[Compile Script]: Convert TF model to LLVM IR\n"
Expand Down
2 changes: 1 addition & 1 deletion sample_programs/ml_sample_programs/vision_models/shufflenetv2_10/compile.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
wget https://github.com/onnx/models/raw/main/vision/classification/shufflenet/model/shufflenet-v2-10.onnx
wget https://github.com/onnx/models/raw/main/validated/vision/classification/shufflenet/model/shufflenet-v2-10.onnx
fi

printf "\n[Compile Script]: Convert TF model to LLVM IR\n"
Expand Down
2 changes: 1 addition & 1 deletion sample_programs/ml_sample_programs/vision_models/squeezenet1.0-12/compile.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
wget https://github.com/onnx/models/raw/main/vision/classification/squeezenet/model/squeezenet1.0-12.onnx
wget https://github.com/onnx/models/raw/main/validated/vision/classification/squeezenet/model/squeezenet1.0-12.onnx
fi

printf "\n[Compile Script]: Convert TF model to LLVM IR\n"
Expand Down
2 changes: 1 addition & 1 deletion sample_programs/ml_sample_programs/vision_models/vgg16-12/compile.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
wget https://github.com/onnx/models/raw/main/vision/classification/vgg/model/vgg16-12.onnx
wget https://github.com/onnx/models/raw/main/validated/vision/classification/vgg/model/vgg16-12.onnx
fi

printf "\n[Compile Script]: Convert TF model to LLVM IR\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
wget https://github.com/onnx/models/raw/main/vision/object_detection_segmentation/yolov3/model/yolov3-10.onnx
wget https://github.com/onnx/models/raw/main/validated/vision/object_detection_segmentation/yolov3/model/yolov3-10.onnx
fi

printf "\n[Compile Script]: Convert TF model to LLVM IR\n"
Expand Down
Loading