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

[fix] requirements.txt install check testcase #537

Merged
merged 1 commit into from
Mar 8, 2023
Merged
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
7 changes: 4 additions & 3 deletions .github/workflows/llm_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -475,16 +475,17 @@ jobs:
rm -rf models
python3 llm/prepare.py deepspeed_aot opt-6.7b
# To test the requirements.txt download.
echo "dummy_test" >> /opt/ml/model/test/requirements.txt
echo "dummy_test" >> $PWD/models/test/requirements.txt

./launch_container.sh deepjavalibrary/djl-serving:$DJLSERVING_DOCKER_TAG $PWD/models deepspeed \
partition --model-dir /opt/ml/model/test/
partition --model-dir /opt/ml/model/test/ | tee partition_output.log

# checking if pt files are generated.
if ls $PWD/models/partition-test/*.pt &>/dev/null ; then echo "checkpoint files generated"; else exit 1; fi

# checking whether reqirements.txt download is successful
if pip list | grep -F dummy-test &>/dev/null ; then echo "requirements.txt install was successful"; else exit 1; fi
if grep -F "pip install requirements succeed!" partition_output.log &>/dev/null; \
then echo "requirements.txt install was successful"; else exit 1; fi
- name: Test opt-6.7b inference
working-directory: tests/integration
run: |
Expand Down