This commit is contained in:
Nicolas Patry 2024-10-02 18:23:17 +02:00
parent 51f07200ce
commit 9866798dfd
No known key found for this signature in database
GPG Key ID: E939E8CC91A1C674

View File

@ -197,7 +197,7 @@ jobs:
# export EXTRA_PYTEST="${{ needs.build-and-push.outputs.extra_pytest }}" # export EXTRA_PYTEST="${{ needs.build-and-push.outputs.extra_pytest }}"
export HF_TOKEN=${{ secrets.HF_TOKEN }} export HF_TOKEN=${{ secrets.HF_TOKEN }}
echo $DOCKER_IMAGE echo $DOCKER_IMAGE
python -c 'import docker; client = docker.from_env(); client.containers.run("registry.internal.huggingface.tech/api-inference/community/text-generation-inference:sha-318bbc7-rocm", devices=["/dev/kfd", "/dev/dri"], env={"MODEL_ID": "gpt2", "HF_TOKEN": ${HF_TOKEN}}, devices=["/dev/kfd", "/dev/dri"])' python -c 'import docker; client = docker.from_env(); client.containers.run("registry.internal.huggingface.tech/api-inference/community/text-generation-inference:sha-318bbc7-rocm", devices=["/dev/kfd", "/dev/dri"], env={"MODEL_ID": "gpt2"}, devices=["/dev/kfd", "/dev/dri"])'
# which pytest # which pytest
pip freeze pip freeze
# pytest -s -vv integration-tests -k flash_llama_grammar_tools_auto # pytest -s -vv integration-tests -k flash_llama_grammar_tools_auto