Skip to content

Commit

Permalink
add cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
goliaro committed Sep 3, 2024
1 parent 08012b0 commit e5785e6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/peft_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# set -x
set -e

cleanup() {
rm -rf ~/.cache/flexflow/debug
}

# Cd into directory holding this script
cd "${BASH_SOURCE[0]%/*}/.."

Expand All @@ -11,6 +15,9 @@ if [[ "$HUGGINGFACE_TOKEN" != "none" ]]; then
huggingface-cli login --token "$HUGGINGFACE_TOKEN"
fi

# Clean up before test (just in case)
cleanup

# Create test prompt file
mkdir -p ./inference/prompt
echo '["Two things are infinite: "]' > ./inference/prompt/peft.json
Expand Down Expand Up @@ -54,3 +61,6 @@ python ./tests/peft/peft_alignment_test.py -tp 2
echo ""
echo "PEFT tests passed!"
echo ""

# Cleanup after the test
cleanup

0 comments on commit e5785e6

Please sign in to comment.