Skip to content

Commit 9f21807

Browse files
author
Lorenzo Toniazzi
committed
Add assertions
1 parent fbeb5ff commit 9f21807

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/test_lora_conversion_and_inference.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/bin/bash
22
set -e
33

4+
# Array of models to iterate over
5+
declare -a params=(
6+
# "Gemma2ForCausalLM 64"
7+
"LlamaForCausalLM 64"
8+
"Phi3ForCausalLM 64"
9+
)
10+
411
MODELS_REPO=reduce-llms-for-testing
512
MODELS_REPO_URL=https://huggingface.co/ltoniazzi/$MODELS_REPO
613

@@ -108,19 +115,12 @@ run_conversion_and_inference_lora() {
108115
echo "All steps completed for $model_name with size $size_matrix!"
109116
}
110117

111-
# Array of parameters to iterate over
112-
declare -a params=(
113-
# "Gemma2ForCausalLM 64"
114-
"LlamaForCausalLM 64"
115-
"Phi3ForCausalLM 64"
116-
)
117-
118-
# Loop through each set of parameters
118+
# Run test for each model
119119
for param in "${params[@]}"; do
120120
run_conversion_and_inference_lora $param
121121
done
122122

123-
# Print all collected results after the loop completes
123+
# Print all collected results
124124
echo -e "\n\n\033[1mSummary of All Results:\033[0m"
125125
for result in "${results[@]}"; do
126126
echo -e "$result"

0 commit comments

Comments
 (0)